Similar asins
Using our SalesOptimizer API, you can call our API to retrieve similar amazon ASINs based on a given ASIN. This can help in finding similar products or finding competition.
Requirements
Calling this API endpoint requires a valid API key that you can generated on the SalesOptimizer dashboard (SOON). Furthermore, each API call requires a valid ASIN code, the maximum amount of similar ASINs you would like to receive and a valid extension.
Parameters
Calling the http://salesoptimizer.assitantslab.com/api/asin/similarasin endpoint requires a total of 4 parameters:
key→ This is your API keyasin→ A valid ASIN codenumber_of_suggestions→ A number ranging from 1 to 1000 that represents how many keywords you would like to be suggested.extension→ What marketplace extension you would like to target (such ascom,de,co.uk)
Example API call
Python
import requests
# API endpoint URL
url = "http://salesoptimizer.assistantslab.com/api/asin/similarasin"
# Parameters
payload = {
"key": "your_api_key",
"asin": "B01ABCDEF",
"number_of_suggestions": 5,
"extension": "com"
}
# Send the POST request
response = requests.post(url, json=payload)
# Check the response status code
if response.status_code == 200:
# Successful response
data = response.json()
status = data.get("status")
if status == "success":
suggestions = data.get("response")[0]
sources = data.get("sources")
print("Suggestions:", suggestions)
print("Sources:", sources)
else:
print("Error: Something went wrong")
else:
# Error response
error_message = response.json().get("error")
print("Error:", error_message)
API-response
The response of the API can look like this:
{
"response": [
[
"B01MRRPPQS",
"B07Q11QQCM",
"B01MZZJ1P0"
],
1151
],
"sources": [
"google",
"generated"
],
"status": "success"
}
The response contains the suggestions in response. Here you can also find the number of similar asins we managed to find, in the example this is '1151'. Furthermore, we list the sources used in sources.
Issues
Are you experiencing any issues calling our API? Feel free to contact our support team.