{"id":18524781,"url":"https://github.com/prashant-chaurasia/pricefinder","last_synced_at":"2026-04-30T11:32:11.687Z","repository":{"id":104921628,"uuid":"366027454","full_name":"Prashant-Chaurasia/priceFinder","owner":"Prashant-Chaurasia","description":"A spring boot service that has various APIs that can help crawl Amazon(.com) and extract the SKU details","archived":false,"fork":false,"pushed_at":"2023-04-22T07:02:57.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T06:24:35.442Z","etag":null,"topics":["maven","postgresql","rest-api","spring-boot","strategy-design-pattern"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Prashant-Chaurasia.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":"2021-05-10T12:00:29.000Z","updated_at":"2023-04-22T07:04:32.000Z","dependencies_parsed_at":"2025-05-14T19:42:25.575Z","dependency_job_id":"71947c6d-bbe8-4cec-8f65-a5bd0e7234ef","html_url":"https://github.com/Prashant-Chaurasia/priceFinder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Prashant-Chaurasia/priceFinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2FpriceFinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2FpriceFinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2FpriceFinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2FpriceFinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prashant-Chaurasia","download_url":"https://codeload.github.com/Prashant-Chaurasia/priceFinder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2FpriceFinder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["maven","postgresql","rest-api","spring-boot","strategy-design-pattern"],"created_at":"2024-11-06T17:43:17.897Z","updated_at":"2026-04-30T11:32:06.677Z","avatar_url":"https://github.com/Prashant-Chaurasia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## priceCrawler\n\nThis is a spring boot service. The service has various APIs that can help crawl Amazon(.com) and extract the SKU details. It uses PostgreSQL as database for storing data. The code uses Strategy Pattern inorder to support adding algorithms for new retailer like Walmart, Instacart etc.   \n\n### How to run?\n\n- Database used is PostgreSql. Install it in your machine.\n- Create a database `commerce` with user `postgres` and password `postgres`\n- Alternatively, you can change the configuration in `application.properties`\n- In the terminal run `mvn spring-boot:run`.\n- The server will be up and running. \n\n\n### APIs \n\n#### GetHtml\n/products/html - GET\n\nQuery Params -\n- sku = string\n- url = string\n\n```Response\n{\n   \"timeTaken\": \"81 ms\",\n   \"data\": {html}\n}\n```\n\nExample - http://localhost:7007/products/html?sku=B07Q7L6SRG \n\n---\n\n#### GetProductDetails\n/products - GET\n\nQuery Params -\n\n- sku = string\n- url = string\n\n```\n\tResponse\n{\n   \"timeTaken\": \"81 ms\",\n   \"data\": {\n       \"id\": \"cd8ef413-6203-4dd7-b537-8bbcd0eeed7f\",\n       \"sku\": \"B07Q7L6SRG\",\n       \"title\": \"Sunfeast Mom's Magic Cashew and Almond, 600g\",\n       \"description\": \"Mom's…..\",\n       \"offerPrice\": 72.0,\n       \"createdAt\": \"2021-05-09T22:22:33.803+00:00\",\n       \"ratings\": {\n           \"3star\": \"9%\",\n           \"2star\": \"2%\",\n           \"4star\": \"25%\",\n           \"overallCount\": \"12,945\",\n           \"5star\": \"60%\",\n           \"1star\": \"3%\"\n       }\n   }\n}\n```\n\nExample - http://localhost:7007/products?sku=B07Q7L6SRG \n\n---\n\n#### GetProductDetailsHistory\n/products - GET\n\nQuery Params -\n- sku = string\n- url = string\n- date=dd/MM/yyyy\n\t**Note** - you need to pass date \n\n```\n\tResponse -\n\t{\n   \"id\": \"a5d62e3b-9c77-41bb-9cef-149ed816043f\",\n   \"sku\": \"B07XMLWH7J\",\n   \"title\": \"Kellogg's Corn Flakes Original, High in Iron, High in B Group Vitamins, Breakfast Cereals, 1.2 kg Pack\",\n   \"description\": \"Don't compromise on morning nourishment when you have a balanced, great-tasting breakfast that is high in iron, vitamin b1, b2, b3, b6 and vitamin c, it is quick to eat and gives you energy even after 3 hours.\",\n   \"offerPrice\": 298.0,\n   \"createdAt\": \"2021-05-09T15:56:26.758+00:00\",\n   \"ratings\": {\n           \"3star\": \"9%\",\n           \"2star\": \"2%\",\n           \"4star\": \"25%\",\n           \"overallCount\": \"12,945\",\n           \"5star\": \"60%\",\n           \"1star\": \"3%\"\n       }\n}\n```\n\nExample - http://localhost:7007/products?sku=B07XMLWH7J\u0026date=10/05/2021\n\n---\n\n#### List All crawled Products and details till now.\n/products - GET\n\n```\nResponse\n{\n   \"timeTaken\": \"275 ms\",\n   \"data\": [\n       {\n           \"id\": \"cd8ef413-6203-4dd7-b537-8bbcd0eeed7f\",\n           \"sku\": \"B07Q7L6SRG\",\n           \"title\": \"Sunfeast Mom's Magic Cashew and Almond, 600g\",\n           \"description\": \"Mom's....\",\n           \"offerPrice\": 72.0,\n           \"createdAt\": \"2021-05-09T22:22:33.803+00:00\",\n           \"ratings\": {\n               \"3star\": \"9%\",\n               \"2star\": \"2%\",\n               \"4star\": \"25%\",\n               \"overallCount\": \"12,945\",\n               \"5star\": \"60%\",\n               \"1star\": \"3%\"\n           }\n       },\n       {\n           \"id\": \"0b7d8f2f-d0b9-4573-a84d-1322b8a281de\",\n           \"sku\": \"B07Q7L6SRG\",\n           \"title\": \"Sunfeast Mom's Magic Cashew and Almond, 600g\",\n           \"description\": \"Mom's....\",\n           \"offerPrice\": 72.0,\n           \"createdAt\": \"2021-05-09T22:57:30.968+00:00\",\n           \"ratings\": {\n               \"3star\": \"9%\",\n               \"2star\": \"2%\",\n               \"4star\": \"25%\",\n               \"overallCount\": \"12,945\",\n               \"5star\": \"60%\",\n               \"1star\": \"3%\"\n           }\n       }\n   ]\n}\n```\n\nExample - http://localhost:7007/products\n\n---\n\n#### PriceTrend\n/products/trends\n\n```\nResponse \n{\n   \"timeTaken\": \"85 ms\",\n   \"data\": [\n       {\n           \"sku\": \"B07Q7L6SRG\",\n           \"timestampPrices\": [\n               {\n                   \"timestamp\": \"2021-05-09T22:57:30.968+00:00\",\n                   \"price\": 72.0\n               },\n               {\n                   \"timestamp\": \"2021-05-09T22:22:33.803+00:00\",\n                   \"price\": 72.0\n               }\n           ]\n       }\n   ]\n}\n```\n\nExample - http://localhost:7007/products/trends\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashant-chaurasia%2Fpricefinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashant-chaurasia%2Fpricefinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashant-chaurasia%2Fpricefinder/lists"}