curl --request GET \
--url https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"fields": {
"buybox_price_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"amount": "<string>",
"shipping_amount": "<string>",
"time": "<string>"
}
],
"value_type": "<string>",
"verified": true
},
"price_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"amount": "<string>",
"shipping_amount": "<string>",
"time": "<string>"
}
],
"value_type": "<string>",
"verified": true
},
"sales_rank_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"category_id": "<string>",
"category_name": "<string>",
"points": [
{
"rank": 123,
"time": "<string>"
}
]
}
],
"value_type": "<string>",
"verified": true
},
"subcategory_sales_rank_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"category_id": "<string>",
"category_name": "<string>",
"points": [
{
"rank": 123,
"time": "<string>"
}
]
}
],
"value_type": "<string>",
"verified": true
}
},
"key": "<string>",
"kind": "<string>",
"meta": {
"sources": {}
},
"missing": [
{
"field": "<string>",
"reason": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "<string>",
"retryable": true,
"type": "<string>",
"details": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "<string>",
"retryable": true,
"type": "<string>",
"details": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}
}Amazon: Get listing price and rank history
curl --request GET \
--url https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"fields": {
"buybox_price_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"amount": "<string>",
"shipping_amount": "<string>",
"time": "<string>"
}
],
"value_type": "<string>",
"verified": true
},
"price_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"amount": "<string>",
"shipping_amount": "<string>",
"time": "<string>"
}
],
"value_type": "<string>",
"verified": true
},
"sales_rank_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"category_id": "<string>",
"category_name": "<string>",
"points": [
{
"rank": 123,
"time": "<string>"
}
]
}
],
"value_type": "<string>",
"verified": true
},
"subcategory_sales_rank_history": {
"confidence": 123,
"dims": {},
"fetched_at": "2023-11-07T05:31:56Z",
"license": "<string>",
"metric": "<string>",
"origin": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"precision": "<string>",
"source": "<string>",
"sources": [
"<string>"
],
"value": [
{
"category_id": "<string>",
"category_name": "<string>",
"points": [
{
"rank": 123,
"time": "<string>"
}
]
}
],
"value_type": "<string>",
"verified": true
}
},
"key": "<string>",
"kind": "<string>",
"meta": {
"sources": {}
},
"missing": [
{
"field": "<string>",
"reason": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "<string>",
"retryable": true,
"type": "<string>",
"details": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "<string>",
"retryable": true,
"type": "<string>",
"details": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}
}Request contract
- Method and path: GET /apis/v1/commerce/amazon/listings/{country}/{listing_id}/history
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history - country: path; required
- listing_id: path; required
- days: query; optional
- fields: query; optional
- provenance: query; optional
- Runtime facts: e4ea23246d148272326d4d18f79f43b8fa99cd58edd96f4f3759a860c1c99cf8
{
"operationId": "get_aisa_commerce_apis_v1_commerce_amazon_listing_b31e1f",
"method": "GET",
"path": "/apis/v1/commerce/amazon/listings/{country}/{listing_id}/history",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Marketplace country as an uppercase ISO 3166-1 alpha-2 code (GB, not UK). See the enum for supported countries.",
"in": "path",
"name": "country",
"required": true,
"schema": {
"description": "Marketplace country as an uppercase ISO 3166-1 alpha-2 code (GB, not UK). See the enum for supported countries.",
"enum": [
"DE",
"GB",
"US"
],
"type": [
"string",
"null"
]
}
},
{
"description": "Native product ID on the platform.",
"in": "path",
"name": "listing_id",
"required": true,
"schema": {
"description": "Native product ID on the platform.",
"type": [
"string",
"null"
]
}
},
{
"description": "Number of days to look back. 1-365; default 90.",
"in": "query",
"name": "days",
"required": false,
"schema": {
"description": "Number of days to look back. 1-365; default 90.",
"type": [
"string",
"null"
]
}
},
{
"description": "Comma-separated business field paths to return. Omit to use this operation's default field selection. Only fields mapped by this operation are accepted. Field selection determines which sources are requested. Default fields may exclude optional data, such as inventory probes, which must be explicitly selected.",
"explode": false,
"in": "query",
"name": "fields",
"required": false,
"schema": {
"description": "Comma-separated business field paths to return. Omit to use this operation's default field selection. Only fields mapped by this operation are accepted. Field selection determines which sources are requested. Default fields may exclude optional data, such as inventory probes, which must be explicitly selected.",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"style": "form"
},
{
"description": "compact (default) returns value and source per field. Shared collection time, license, origin, and value_type are grouped in meta.sources; differing values retain their own metadata. full returns complete per-value provenance, including precision and confidence.",
"in": "query",
"name": "provenance",
"required": false,
"schema": {
"default": "compact",
"description": "compact (default) returns value and source per field. Shared collection time, license, origin, and value_type are grouped in meta.sources; differing values retain their own metadata. full returns complete per-value provenance, including precision and confidence.",
"enum": [
"compact",
"full"
],
"type": [
"string",
"null"
]
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cache_hit_share_bps": 10000,
"customer_micros_usd": 10000,
"customer_pricing_ref": "commerce.amazon.listing_history.get.v1.pricing@1",
"description": "Charged once per delivered read: an entity with at least one requested field, or one page of a result set. A read that delivers nothing is not charged. A read answered from stored values is charged the cache-hit share of the price. Variants are priced by the route parameters they fix.",
"kind": "fixed_request"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Marketplace country as an uppercase ISO 3166-1 alpha-2 code (GB, not UK). See the enum for supported countries.
DE, GB, US Native product ID on the platform.
Query Parameters
Number of days to look back. 1-365; default 90.
Comma-separated business field paths to return. Omit to use this operation's default field selection. Only fields mapped by this operation are accepted. Field selection determines which sources are requested. Default fields may exclude optional data, such as inventory probes, which must be explicitly selected.
compact (default) returns value and source per field. Shared collection time, license, origin, and value_type are grouped in meta.sources; differing values retain their own metadata. full returns complete per-value provenance, including precision and confidence.
compact, full