Amazon Data API User Guide
Table of Contents
Last Updated: December 5, 2024
I. Product Introduction
This product primarily provides the latest Amazon webpage data (within 24 hours) through an API interface, receiving customer-specified data types and parameters. The provided data types include: product category data, merchant data, and detailed product information data. Supported sites: US site, UK site, German site, French site, etc.
II. Getting Started
As this product is provided via API, it involves two steps: data task creation and data reception. The time from data task creation to data reception is typically within 3 minutes. We can also add data fields and increase data refresh frequency according to customer requirements.
Brief Description
- Refresh token
Request URL
Request Method
- POST
Header
- Content-Type: application/json
Parameters
Parameter Name | Required | Type | Description |
---|---|---|---|
Yes | string | Registered email | |
password | Yes | string | Password |
Input Example
curl -X POST https://extapi.pangolinfo.com/api/v1/refreshToken \
-H 'Content-Type: application/json' \
-d '{"email": "xxxx@gmail.com", "password": "xxxx"}'
Response Example
{
"code":0,
"subCode":null,
"message":"ok",
"data":"xxxx"
}
Note: The data returned from refreshing the Token will serve as credentials for accessing the API ‘Authorization: Bearer xxxx’ This token is valid long-term. If modification is needed, simply refresh again
Brief Description
- Submit interface
Request URL
Request Method
- GET
Header
- Content-Type: application/x-www-form-urlencoded
Parameters
Parameter Name | Required | Type | Description |
---|---|---|---|
token | Yes | string | API token |
url | Yes | string | Target webpage URL |
callbackUrl | Yes | string | Service address for receiving data |
bizKey | Yes | string | Choose one of the following based on business needs:<br>amzProductOfCategory – Get product list by category<br>amzProductOfSeller – Get product list by seller<br>amzProduct – Get product details<br>amzKeyword – Get product list by keyword<br>bestSellers – Best Sellers list<br>newReleases – New Releases list |
zipcode | No | string | Amazon zipcode information |
rawData | No | bool | Whether to return raw data, default is false |
Input Example
curl -X GET https://dev-extapi.pangolinfo.com/api/v1?token=xxxx\&url=https://www.amazon.com/gp/bestsellers/kitchen/ref=zg_bs_kitchen_sm\&callbackUrl=http://xx.xx.xx.xx:xx/data/receive\&bizKey=bestSellers\&zipcode=10041\&json_response=true -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer xxxx'
Response Example
{
"code":0,
"data":{
"data":"e92b7c52cd98466999bacc8081e7dc12",
"bizMsg":"ok",
"bizCode":0
},
"message":"ok"
}
Brief Description
• Submit Review Task API
Request URL
• https://extapi.pangolinfo.com/api/v1/review
Request Method
• GET
Headers
• Content-Type: application/x-www-form-urlencoded
Parameter Name | Mandatory | Type | Description |
---|---|---|---|
token | Yes | string | API token |
asin | Yes | string | Target product ASIN |
callbackUrl | Yes | string | URL of the service for receiving data |
page | Yes | int | Review page number |
country_code | No | string | Target country code:<br>us United States<br>de Germany<br>uk United Kingdom<br>fr France<br>jp Japan<br>ca Canada<br>it Italy<br>au Australia<br>es Spain |
Example Input
curl -X GET https://extapi.pangolinfo.com/api/v1/review?token=xxxx\&asin= B081T7N948\&callbackUrl=http://xx.xx.xx.xx:xx/data/receive\&country_code=us\&page=1 -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer xxxx'
Note: The request header ‘Authorization: Bearer xxxx’ should contain the token returned in the “data” field by the refresh Token interface.
Response Example
{
"code":0,
"data":{
"data":"e92b7c52cd98466999bacc8081e7dc12",
"bizMsg":"ok",
"bizCode":0
},
"message":"ok"
}
Original Response Example
{
"data":{
"message":"ok",
"result":"["update","#cm-cr-dp-review-list",""]
&&&
["update","#cm-cr-dp-review-header",""]
&&&
["update","#cm-cr-local-reviews-title","\n\n\n\n\n\n\n\n\nFrom the United States\n
"]"
}
}
Example of Parsing Results
{
"data":{
"message":"ok",
"result":"[
{
"reviewer":"DeWanna Rode",
"reviewerLink":"/gp/profile/amzn1.account.AFERHH3Q5OPMIKGWOAGYKJMSDZFQ/ref=cm_cr_othr_d_gw_tr?ie=UTF8",
"star":"4.0",
"title":"It works",
"date":"December 13, 2024",
"purchase":"Verified Purchase",
"content":"Easy on easy off"
},
{
"reviewer":"Amazon Customer",
"reviewerLink":"/gp/profile/amzn1.account.AEWUHDC5ME3ZODAFUAGBYQCVAN7A/ref=cm_cr_othr_d_gw_tr?ie=UTF8",
"star":"5.0",
"title":"This goo works well",
"date":"December 13, 2024",
"purchase":"Verified Purchase",
"content":"Works well, picked up lots of dirt from keyboards, good value for money."
}
]"
}
}
Response Example:
Need help?
We are devoted to your success, don't hestitate to contact us for any kind of questions!
Our team of experts is committed to helping you troubleshoot and fix any issue that you might experience with our products.
If you want to file a bug report or need technical assistance, be sure to reach our support team by sending us an email. Or consult technical documentation.[Amazon Data API User Guide] | [Scrape API User Guide]