{"id":38509694,"url":"https://github.com/sergioteula/python-amazon-paapi","last_synced_at":"2026-01-17T06:19:59.253Z","repository":{"id":37517903,"uuid":"226712374","full_name":"sergioteula/python-amazon-paapi","owner":"sergioteula","description":"Amazon Product Advertising API 5.0 wrapper for Python 💰","archived":false,"fork":false,"pushed_at":"2026-01-09T23:41:02.000Z","size":586,"stargazers_count":269,"open_issues_count":16,"forks_count":47,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-01-10T20:10:57.049Z","etag":null,"topics":["affiliate","amazon","amazon-product-advertising","hacktoberfest","paapi5","product","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergioteula.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-08T18:28:19.000Z","updated_at":"2026-01-10T15:27:45.000Z","dependencies_parsed_at":"2022-07-25T20:18:35.180Z","dependency_job_id":null,"html_url":"https://github.com/sergioteula/python-amazon-paapi","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/sergioteula/python-amazon-paapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergioteula%2Fpython-amazon-paapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergioteula%2Fpython-amazon-paapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergioteula%2Fpython-amazon-paapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergioteula%2Fpython-amazon-paapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergioteula","download_url":"https://codeload.github.com/sergioteula/python-amazon-paapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergioteula%2Fpython-amazon-paapi/sbom","scorecard":{"id":812540,"data":{"date":"2025-08-11","repo":{"name":"github.com/sergioteula/python-amazon-paapi","commit":"4d088f209440923e897366eac6eb7689244fe550"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/lint-and-test.yml:9","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-and-test.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/lint-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sergioteula/python-amazon-paapi/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/lint-and-test.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/lint-and-test.yml:46","Warn: pipCommand not pinned by hash: .github/workflows/lint-and-test.yml:58","Warn: pipCommand not pinned by hash: .github/workflows/lint-and-test.yml:70","Warn: pipCommand not pinned by hash: .github/workflows/lint-and-test.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:21","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T13:30:27.605Z","repository_id":37517903,"created_at":"2025-08-23T13:30:27.605Z","updated_at":"2025-08-23T13:30:27.605Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["affiliate","amazon","amazon-product-advertising","hacktoberfest","paapi5","product","python"],"created_at":"2026-01-17T06:19:59.071Z","updated_at":"2026-01-17T06:19:59.214Z","avatar_url":"https://github.com/sergioteula.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Amazon PAAPI\n\nA simple Python wrapper for the [Amazon Product Advertising API 5.0](https://webservices.amazon.com/paapi5/documentation/). Easily interact with Amazon's official API to retrieve product information, search for items, and more.\n\n[![PyPI](https://img.shields.io/pypi/v/python-amazon-paapi?color=%231182C2\u0026label=PyPI)](https://pypi.org/project/python-amazon-paapi/)\n[![Python](https://img.shields.io/badge/Python-≥3.9-%23FFD140)](https://www.python.org/)\n[![License](https://img.shields.io/badge/License-MIT-%23e83633)](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE)\n[![Amazon API](https://img.shields.io/badge/Amazon%20API-5.0-%23FD9B15)](https://webservices.amazon.com/paapi5/documentation/)\n[![Downloads](https://img.shields.io/pypi/dm/python-amazon-paapi?label=Downloads)](https://pypi.org/project/python-amazon-paapi/)\n\n## Features\n\n- 🎯 **Simple object-oriented interface** for easy integration\n- 🔍 **Product search** by keywords, categories, or browse nodes\n- 📦 **Product details** via ASIN or Amazon URL\n- 🔄 **Item variations** support (size, color, etc.)\n- 💰 **OffersV2 support** for enhanced pricing and offer details\n- 🌍 **20+ countries** supported ([full list](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon_paapi/models/regions.py))\n- ⚡ **Batch requests** to get multiple items without the 10-item limit\n- 🛡️ **Built-in throttling** to avoid API rate limits\n- 📝 **Full type hints** for better IDE support\n\n## Installation\n\n```bash\npip install python-amazon-paapi --upgrade\n```\n\n## Quick Start\n\n```python\nfrom amazon_paapi import AmazonApi\n\n# Initialize the API (get credentials from Amazon Associates)\namazon = AmazonApi(KEY, SECRET, TAG, COUNTRY)\n\n# Get product information by ASIN\nitem = amazon.get_items('B01N5IB20Q')[0]\nprint(item.item_info.title.display_value)\n```\n\n## Usage Examples\n\n### Using OffersV2 resources\n\nOffersV2 provides enhanced pricing and offer details. All resources are included by default, so OffersV2 data is available without any additional configuration:\n\n```python\nitem = amazon.get_items('B01N5IB20Q')[0]\nif item.offers_v2 and item.offers_v2.listings:\n    listing = item.offers_v2.listings[0]\n    print(listing.price.money.amount)  # Price amount\n    print(listing.merchant_info.name)  # Merchant name\n```\n\n### Get Multiple Products\n\n```python\nitems = amazon.get_items(['B01N5IB20Q', 'B01F9G43WU'])\nfor item in items:\n    print(item.images.primary.large.url)\n    print(item.offers.listings[0].price.amount)\n```\n\n### Use Amazon URL Instead of ASIN\n\n```python\nitem = amazon.get_items('https://www.amazon.com/dp/B01N5IB20Q')\n```\n\n### Search Products\n\n```python\nresults = amazon.search_items(keywords='nintendo switch')\nfor item in results.items:\n    print(item.item_info.title.display_value)\n```\n\n### Get Product Variations\n\n```python\nvariations = amazon.get_variations('B01N5IB20Q')\nfor item in variations.items:\n    print(item.detail_page_url)\n```\n\n### Get Browse Node Information\n\n```python\nnodes = amazon.get_browse_nodes(['667049031', '599385031'])\nfor node in nodes:\n    print(node.display_name)\n```\n\n### Extract ASIN from URL\n\n```python\nfrom amazon_paapi import get_asin\n\nasin = get_asin('https://www.amazon.com/dp/B01N5IB20Q')\n# Returns: 'B01N5IB20Q'\n```\n\n### Configure Throttling\n\nControl the wait time between API calls to avoid rate limits:\n\n```python\n# Wait 4 seconds between requests\namazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=4)\n\n# No throttling (use with caution)\namazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0)\n```\n\n## Documentation\n\n- 📖 [Full Documentation](https://python-amazon-paapi.readthedocs.io/)\n- 📋 [Changelog](https://github.com/sergioteula/python-amazon-paapi/blob/master/CHANGELOG.md)\n- 💬 [Telegram Support Group](https://t.me/PythonAmazonPAAPI)\n\n## Contributing\n\nContributions are welcome! To get started:\n\n1. Install [uv](https://docs.astral.sh/uv/) package manager\n2. Clone and set up the project:\n\n```bash\ngit clone https://github.com/sergioteula/python-amazon-paapi.git\ncd python-amazon-paapi\nuv sync\nuv run pre-commit install\n```\n\n3. Copy `.env.template` to `.env` and add your Amazon API credentials for integration tests.\n\nPre-commit hooks will automatically run Ruff, mypy, and tests before each commit.\n\n## License\n\nMIT License © 2026 [Sergio Abad](https://github.com/sergioteula)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergioteula%2Fpython-amazon-paapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergioteula%2Fpython-amazon-paapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergioteula%2Fpython-amazon-paapi/lists"}