{"id":28170804,"url":"https://github.com/sohamjoshi25/punefarmersmarket-api","last_synced_at":"2026-04-13T22:33:58.147Z","repository":{"id":286629280,"uuid":"962012403","full_name":"SohamJoshi25/PuneFarmersMarket-API","owner":"SohamJoshi25","description":"A API which exposes a quantity and prices of all local farmer's market products daily by scraping a Government Website. Database is daily updated using github actions' cron job scheduler.","archived":false,"fork":false,"pushed_at":"2025-08-11T09:46:46.000Z","size":1244,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T11:37:10.351Z","etag":null,"topics":["cronjob","fastapi","postgresql","webscraper"],"latest_commit_sha":null,"homepage":"https://localfarmermarket.onrender.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SohamJoshi25.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-07T14:10:53.000Z","updated_at":"2025-08-11T09:46:49.000Z","dependencies_parsed_at":"2025-08-11T11:25:16.401Z","dependency_job_id":null,"html_url":"https://github.com/SohamJoshi25/PuneFarmersMarket-API","commit_stats":null,"previous_names":["sohamjoshi25/farmersmarket-webscraper","sohamjoshi25/punefarmersmarket-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SohamJoshi25/PuneFarmersMarket-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SohamJoshi25%2FPuneFarmersMarket-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SohamJoshi25%2FPuneFarmersMarket-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SohamJoshi25%2FPuneFarmersMarket-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SohamJoshi25%2FPuneFarmersMarket-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SohamJoshi25","download_url":"https://codeload.github.com/SohamJoshi25/PuneFarmersMarket-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SohamJoshi25%2FPuneFarmersMarket-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cronjob","fastapi","postgresql","webscraper"],"created_at":"2025-05-15T18:14:59.781Z","updated_at":"2026-04-13T22:33:58.139Z","avatar_url":"https://github.com/SohamJoshi25.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FarmersMarket WebScraper\n\nA simple, daily-updated API that scrapes local farmer market product prices and quantities from a government website and exposes the data via a REST API using FastAPI.\n\n---\n\n## 🌾 Project Overview\n\n- **Automated Scraping**: Collects prices and quantities of products from local pune farmer markets every day.\n- **Live Data Exposure**: Makes fresh data available through a RESTful FastAPI backend.\n- **Open API**: Easily integrate real-time market data into your own applications or dashboards.\n- **Product Translation**: Translated Product Names from local language marathi to english.\n- **Hosted Demo**: [Live API on Render](https://localfarmermarket.onrender.com/)\n\n---\n\n## 🚀 How to Use the API\n\n### Base URL\nhttps://localfarmermarket.onrender.com/\n\n### Example Endpoints\n\n| Endpoint              | Description                                                      |\n|-----------------------|------------------------------------------------------------------|\n| `/docs`               | Interactive API docs (FasiAPI selfmade)                          |\n| `/rates   `           | Get all market products with price \u0026 quantity                    |\n| `/refresh`            | Manually trigger a data refresh (Used for Cron Job)              |\n\n### Sample Usage\n\n**GET https://localfarmermarket.onrender.com/rates/?order_by=code\u0026order=ASC\u0026limit=10\u0026offset=10**\n```\n[\n  {\n    \"code\": 1001,\n    \"quantity\": 11970,\n    \"unit\": \"Quintal\",\n    \"date\": \"2025-04-27\",\n    \"minimum\": 500,\n    \"maximum\": 1500,\n    \"item_name\": \"Onion\"\n  },\n  {\n    \"code\": 1001,\n    \"quantity\": 9607,\n    \"unit\": \"Quintal\",\n    \"date\": \"2025-04-29\",\n    \"minimum\": 500,\n    \"maximum\": 1500,\n    \"item_name\": \"Onion\"\n  },\n  {\n    \"code\": 1001,\n    \"quantity\": 6368,\n    \"unit\": \"Quintal\",\n    \"date\": \"2025-04-23\",\n    \"minimum\": 700,\n    \"maximum\": 1500,\n    \"item_name\": \"Onion\"\n  },\n  {\n    \"code\": 1001,\n    \"quantity\": 7969,\n    \"unit\": \"Quintal\",\n    \"date\": \"2025-04-28\",\n    \"minimum\": 400,\n    \"maximum\": 1400,\n    \"item_name\": \"Onion\"\n  },\n  {\n    \"code\": 1001,\n    \"quantity\": 10534,\n    \"unit\": \"Quintal\",\n    \"date\": \"2025-04-18\",\n    \"minimum\": 700,\n    \"maximum\": 1500,\n    \"item_name\": \"Onion\"\n  }\n]\n```\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/SohamJoshi25/FarmersMarket-WebScraper/refs/heads/main/public/image.png\" alt=\"Farmer market Portal\" width=\"500\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/SohamJoshi25/FarmersMarket-WebScraper/refs/heads/main/public/market1.png\" alt=\"Farmer Market Prices\" width=\"500\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/SohamJoshi25/FarmersMarket-WebScraper/refs/heads/main/public/market2.png\" alt=\"Postman\" width=\"500\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohamjoshi25%2Fpunefarmersmarket-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohamjoshi25%2Fpunefarmersmarket-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohamjoshi25%2Fpunefarmersmarket-api/lists"}