1. Home
  2. Docs
  3. Amzpecty Documentation
  4. Amzpecty API Specifications
  5. Get ASINS By URL

Get ASINS By URL

Amzpecty API can scan all ASINs of a particular Amazon search result URL through this API module.

ADD URL TO GET ASINS BY URL QUERY QUEUE

The request to add a URL to Get Asins By URL query queue. URL is an Amazon search result URL.

Warning: Amzpecty API can only get up to maximum of 2,400 Asins.

Limitations: Retrieved ASIN count may vary from the actual Amazon ASIN count due to various factors such as search location, dynamics of Amazon listings etc.

CREDIT DEDUCTION

1 (one) credit deduction after successful retrieval of 1 page Asin data.Asin count per page may vary.

REQUEST
URI /api/query/getasinsbyurl?secretKey={secretKey}
Method POST
POST Param searchurl={url} where {url} – required – the target URL e.g https://www.amazon.com/s?k=funko&i=warehouse-deals
Http Header (optional) AMZPECTY_CALLBACK_URL={Your callback URL}
Example /api/query/getasinsbyurl
RESPONSE
Headers
MediaType application/json
JSON Data
JSON
{
     "status": "OK",
     "responsefor": "getasinsbyurl",
     "allowed": 4992,
     "dailyAllowed": 4992,
     "messageId": null,
     "message": null,
     "data": null,
     "rid": "60f126e20cf24280ed03b000",
     "dateProcessed": null,
     "domain": null
}

Note: During callback, the rid can be used to link the callback data to the original request call.

GET ASINS BY URL QUERY CALLBACK JSON SAMPLE DATA
Headers
MediaType application/json
JSON Data
JSON
{
  "status": "OK",
  "responsefor": "getasinsbyurl",
  "allowed": 4986,
  "dailyAllowed": 4986,
  "messageId": null,
  "message": null,
  "data": {
    "statusInt": 2,
    "status": "Completed",
    "searchUrl": " https://www.amazon.com/s?k=funko&i=warehouse-deals ",
    "expectedTotalAsins": 732,
    "actualAsinsRetrieved": 732,
    "asins": [
      {
        "asin": "B07JLCLVRJ",
        "itemName": "Funko PoP! MArvel",
        "price": 9.99,
        "customerStarRating": "4.5 out of 5 stars",
        "customerReview": "5,006 ratings",
        "linkUrl": "http://www.amazon.com/gp/product/B07JLCLVRJ/ref=silver_xx_cont_revecalc",
        "imageUrl": "https://m.media-amazon.com/images/I/61Y6N4hBjDL._SL120_.jpg",
        "otherDetails": [
          "Get it as soon as Tue, Mar 29",
          "$3.99 shipping",
          "Only 1 left in stock - order soon."
        ]
      },
      {
        "asin": "B08XMY2DWM",
        "itemName": "Party House Masters of The Universe Mini Figurines Cake Toppers ",
        "price": 7.4,
        "priceShipping": 0,
        "inventoryWarning": "",
        "customerStarRating": "5 out of 5 stars",
        "customerReview": "1,105 ratings",
        "linkUrl": "http://www.amazon.com/gp/product/B08XMY2DWM/ref=silver_xx_cont_revecalc",
        "imageUrl": "https://m.media-amazon.com/images/I/61Y6N4hBjDL._SL120_.jpg",
        "otherDetails": [
          "Get it as soon as Tue, Mar 29",
          "$2.99 shipping",
          "Only 10 left in stock - order soon."
        ]
      }
    ]
  },
  "rid": "60f12c1a0cf24280ed03be5e",
  "dateProcessed": 1626418203388,
  "domain": "www.amazon.com",
  "totalCreditsDeducted": 1
}
GET SELLER ASINS BY URL QUERY CALLBACK RESPONSE JSON ATTRIBUTES

Attribute NameDetails
statusThe status of the request.
responsefor“getasinsbyurl” value for Get Asins By URL query result.
allowedThe current allowed request count. Resets monthly.
dailyAllowedThe current allowed daily request count. Resets daily.
messageIdThe id of the message (if any).
messageThe actual message (if any). Please refer to Error Messages.
ridThe request id. This can be used in the Get query as a key.
domainThe corresponding Amazon domain for the Seller.
totalCreditsDeductedThis field indicates how many Amzpecty API credits were used to fulfill this request.
dateProcessedThe date the request was processed unix time format.
data.sellerIdThe seller id.
data.statusIntThe search status in int form. 0 for “On Queue”, 1 for “Processing”, 2 for “Completed” or 3 for “Error”
data.statusThe search status. “On Queue”, “Processing”, “Completed” or “Error”
data.actualAsinsRetrievedThe number of Asins retrieved. Maximum limit of 2,400 Asins only even if URL has more than 2,400 Asins. Note that actualAsinsRetrieved might not be equal to expectedTotalAsins for various reasons. Please refer to the status field for search state.
data.expectedTotalAsinsThe total number of Asins this URL has.
data.asins[]The list of Asins this seller has.
asins[n].asinThe Asin of the item
asins[n].itemNameThe item name of the Asin
asins[n].priceThe displayed price of the Asin
asins[n].customerStarRatingThe customer star rating of the Asin
asins[n].customerReviewThe customer review count of the Asin
asins[n].linkUrlThe link of the Asin
asins[n].imageUrlThe image url of the Asin
asins[n].otherDetails[n]List of other details such as Shipping Information, Shipping Fees, Stock Warning etc.

GET ASINS BY URL RESULT BY REQUEST ID

The request to get the Get Asins By URL result by Request Id (rid).

Note that you can call this to retrieve results data even if Amzpecty is still looking up data and not 100% complete. You can refer to the status field for search status.

Note: Please avoid making very short interval successive calls. Every at least 30 seconds is our recommended call interval.

CREDIT DEDUCTION

0 (zero) credit deduction for the Get call.

REQUEST
URI /api/query/ getasinsbyurl/rid/{rid}?secretKey={secretKey} {rid} – request id from the /api/query/getasinsbyurl/ response
Example /api/query/ getasinsbyurl/rid/60f12c1a0cf24280ed03c122?secretKey=XXXXXXXXXX
RESPONSE

See GET ASINS BY URL QUERY CALLBACK JSON SAMPLE DATA

Was this article helpful to you? Yes No
How can we help?