{"id":20709906,"url":"https://github.com/oxylabs/how-to-bypass-amazon-captcha","last_synced_at":"2025-05-16T13:06:41.532Z","repository":{"id":219288241,"uuid":"746735945","full_name":"oxylabs/how-to-bypass-amazon-captcha","owner":"oxylabs","description":"The process of bypassing CAPTCHA when extracting public data from Amazon with Oxylabs Amazon Scraper API.","archived":false,"fork":false,"pushed_at":"2025-02-10T12:49:50.000Z","size":18,"stargazers_count":356,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T18:17:19.977Z","etag":null,"topics":["amazon","amazon-scraper","amazon-scraper-api","captcha","captcha-solver","captcha-solving","scraper-api"],"latest_commit_sha":null,"homepage":"https://oxylabs.io/products/scraper-api/ecommerce/amazon","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/oxylabs.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}},"created_at":"2024-01-22T15:17:11.000Z","updated_at":"2025-03-31T00:56:12.000Z","dependencies_parsed_at":"2024-01-26T14:56:59.593Z","dependency_job_id":"51a0d4d1-a5c4-4033-ba98-92a51c70b05d","html_url":"https://github.com/oxylabs/how-to-bypass-amazon-captcha","commit_stats":null,"previous_names":["oxylabs/how-to-bypass-amazon-captcha"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fhow-to-bypass-amazon-captcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fhow-to-bypass-amazon-captcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fhow-to-bypass-amazon-captcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fhow-to-bypass-amazon-captcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxylabs","download_url":"https://codeload.github.com/oxylabs/how-to-bypass-amazon-captcha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713256,"owners_count":20983683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["amazon","amazon-scraper","amazon-scraper-api","captcha","captcha-solver","captcha-solving","scraper-api"],"created_at":"2024-11-17T02:08:46.296Z","updated_at":"2025-05-16T13:06:41.523Z","avatar_url":"https://github.com/oxylabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Bypass Amazon CAPTCHA When Scraping\n\n[![Oxylabs promo code](https://raw.githubusercontent.com/oxylabs/amazon-scraper/refs/heads/main/Amazon-Scraper-API-1090x275.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7\u0026aff_id=877\u0026url_id=112)\n\n[![](https://dcbadge.vercel.app/api/server/eWsVUJrnG5)](https://discord.gg/Pds3gBmKMH)\n\nTake a look at the process of bypassing CAPTCHAs when collecting public data from Amazon with [Amazon Scraper API](https://oxylabs.io/products/scraper-api/ecommerce/amazon) (**one-week free trial**). You can find the full guide on our [blog](https://oxylabs.io/blog/bypass-amazon-captcha).\n\n## Setting up a simple scraper\n\nThis scraper will likely encounter a CAPTCHA.\n\n```python\nimport requests\n\ncustom_headers = {\n    \"Accept-language\": \"en-GB,en;q=0.9\",\n    \"Accept-Encoding\": \"gzip, deflate, br\",\n    \"Cache-Control\": \"max-age=0\",\n    \"Connection\": \"keep-alive\",\n    \"User-agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15\",\n}\n\nurl = \"https://www.amazon.com/SAMSUNG-Border-Less-Compatible-Adjustable-LS24AG302NNXZA/dp/B096N2MV3H?ref_=Oct_DLandingS_D_fe3953dd_2\"\n\nresponse = requests.get(url, headers=custom_headers)\n\nwith open('with_captcha.html', 'w') as file:\n    file.write(response.text)\n```\n\n## Using Amazon Scraper API\n\nThe API is designed to avoid CAPTCHAs.\n\n```python\nimport requests\nfrom pprint import pprint\n\n\npayload = {\n    'source': 'amazon',\n    'url': 'https://www.amazon.com/dp/B096N2MV3H',\n    'parse': True\n}\n\nresponse = requests.request(\n    'POST',\n    'https://realtime.oxylabs.io/v1/queries',\n    auth=('username', 'password'),\n    json=payload,\n)\n\n\npprint(response.json())\n\nwith open('without_captcha.json', 'w') as file:\n    file.write(response.text)\n```\n\n## Final word\n\nFollow our technical [documentation](https://developers.oxylabs.io/scraper-apis/e-commerce-scraper-api/amazon) for all available API parameters.\n\nIn case of any issues, please contact us at support@oxylabs.io\n\nLooking to scrape more other Amazon data? [Amazon Review Scraper](https://github.com/oxylabs/amazon-review-scraper), [Amazon ASIN Scraper](https://github.com/oxylabs/amazon-asin-scraper), [How to Scrape Amazon Prices](https://github.com/oxylabs/how-to-scrape-amazon-prices), [Scraping Amazon Product Data](https://github.com/oxylabs/how-to-scrape-amazon-product-data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxylabs%2Fhow-to-bypass-amazon-captcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxylabs%2Fhow-to-bypass-amazon-captcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxylabs%2Fhow-to-bypass-amazon-captcha/lists"}