Analyze Amazon research evidence
curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"analysis": "price_history",
"token": "<string>",
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z",
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 2,
"unavailable_break_hours": 2
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze"
payload = {
"analysis": "price_history",
"token": "<string>",
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z",
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 2,
"unavailable_break_hours": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
analysis: 'price_history',
token: '<string>',
from_at: '2023-11-07T05:31:56Z',
to_at: '2023-11-07T05:31:56Z',
minimum_change_percent: '<string>',
minimum_change_amount: '<string>',
group_tolerance_amount: '<string>',
minimum_available_hours: 2,
unavailable_break_hours: 2
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze', 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.glasser.ai/v1/solutions/gtm/amazon_research/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analysis' => 'price_history',
'token' => '<string>',
'from_at' => '2023-11-07T05:31:56Z',
'to_at' => '2023-11-07T05:31:56Z',
'minimum_change_percent' => '<string>',
'minimum_change_amount' => '<string>',
'group_tolerance_amount' => '<string>',
'minimum_available_hours' => 2,
'unavailable_break_hours' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze"
payload := strings.NewReader("{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}"
response = http.request(request)
puts response.read_body{
"analysis": "price_history",
"result_status": "success",
"output": {
"asin": "<string>",
"amazon_domain": "<string>",
"currency": "<string>",
"price_type": "AMAZON",
"from_at": "<string>",
"to_at": "<string>",
"provider_updated_at": "<string>",
"definition_break_at": "<string>",
"thresholds": {
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 123,
"unavailable_break_hours": 123
},
"median_method": "lower_time_weighted_median",
"percent_rounding": "toward_zero_6_decimals",
"segments_evaluated": 123,
"limitations": [
"<string>"
],
"episodes": [
{
"direction": "increase",
"first_observed_at": "<string>",
"end_at": "<string>",
"end_reason": "price_changed",
"open_at_observation_end": true,
"start_before_window": true,
"price": "<string>",
"price_min": "<string>",
"price_max": "<string>",
"baseline_price": "<string>",
"previous_available_price": "<string>",
"amount_vs_baseline": "<string>",
"percent_vs_baseline": "<string>",
"amount_vs_previous": "<string>",
"percent_vs_previous": "<string>",
"baseline_from_at": "<string>",
"baseline_available_duration_ms": 123,
"calendar_duration_ms": 123,
"available_duration_ms": 123,
"window_available_duration_ms": 123,
"has_unavailable_gaps": true,
"reverted_at": "<string>"
}
]
},
"charge_usd": "0.00",
"source_charge_usd": "<string>",
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"source_result_urls": [
"<string>"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "forbidden",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}Solutions
Analyze Amazon research evidence
Run free deterministic price, economics, tagged-review and opportunity-gate analyses.
POST
/
v1
/
solutions
/
gtm
/
amazon_research
/
analyze
Analyze Amazon research evidence
curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"analysis": "price_history",
"token": "<string>",
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z",
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 2,
"unavailable_break_hours": 2
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze"
payload = {
"analysis": "price_history",
"token": "<string>",
"from_at": "2023-11-07T05:31:56Z",
"to_at": "2023-11-07T05:31:56Z",
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 2,
"unavailable_break_hours": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
analysis: 'price_history',
token: '<string>',
from_at: '2023-11-07T05:31:56Z',
to_at: '2023-11-07T05:31:56Z',
minimum_change_percent: '<string>',
minimum_change_amount: '<string>',
group_tolerance_amount: '<string>',
minimum_available_hours: 2,
unavailable_break_hours: 2
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze', 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.glasser.ai/v1/solutions/gtm/amazon_research/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analysis' => 'price_history',
'token' => '<string>',
'from_at' => '2023-11-07T05:31:56Z',
'to_at' => '2023-11-07T05:31:56Z',
'minimum_change_percent' => '<string>',
'minimum_change_amount' => '<string>',
'group_tolerance_amount' => '<string>',
'minimum_available_hours' => 2,
'unavailable_break_hours' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze"
payload := strings.NewReader("{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/amazon_research/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis\": \"price_history\",\n \"token\": \"<string>\",\n \"from_at\": \"2023-11-07T05:31:56Z\",\n \"to_at\": \"2023-11-07T05:31:56Z\",\n \"minimum_change_percent\": \"<string>\",\n \"minimum_change_amount\": \"<string>\",\n \"group_tolerance_amount\": \"<string>\",\n \"minimum_available_hours\": 2,\n \"unavailable_break_hours\": 2\n}"
response = http.request(request)
puts response.read_body{
"analysis": "price_history",
"result_status": "success",
"output": {
"asin": "<string>",
"amazon_domain": "<string>",
"currency": "<string>",
"price_type": "AMAZON",
"from_at": "<string>",
"to_at": "<string>",
"provider_updated_at": "<string>",
"definition_break_at": "<string>",
"thresholds": {
"minimum_change_percent": "<string>",
"minimum_change_amount": "<string>",
"group_tolerance_amount": "<string>",
"minimum_available_hours": 123,
"unavailable_break_hours": 123
},
"median_method": "lower_time_weighted_median",
"percent_rounding": "toward_zero_6_decimals",
"segments_evaluated": 123,
"limitations": [
"<string>"
],
"episodes": [
{
"direction": "increase",
"first_observed_at": "<string>",
"end_at": "<string>",
"end_reason": "price_changed",
"open_at_observation_end": true,
"start_before_window": true,
"price": "<string>",
"price_min": "<string>",
"price_max": "<string>",
"baseline_price": "<string>",
"previous_available_price": "<string>",
"amount_vs_baseline": "<string>",
"percent_vs_baseline": "<string>",
"amount_vs_previous": "<string>",
"percent_vs_previous": "<string>",
"baseline_from_at": "<string>",
"baseline_available_duration_ms": 123,
"calendar_duration_ms": 123,
"available_duration_ms": 123,
"window_available_duration_ms": 123,
"has_unavailable_gaps": true,
"reverted_at": "<string>"
}
]
},
"charge_usd": "0.00",
"source_charge_usd": "<string>",
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"source_result_urls": [
"<string>"
],
"error": {
"code": "<string>",
"message": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "forbidden",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}This operation creates no Run and makes no Provider call. Source tokens are checked against the current Workspace and Key policy. Prices use one time-weighted series with explicit gaps, thresholds and definition boundaries. Costs remain supplied assumptions; unknown costs stay null. Review counts describe only the deduplicated sample. Opportunity ratings are analyst judgments subject to evidence gates, including comparable price series. source_charge_usd reports existing data costs separately from the free analysis.
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
Response
AmazonAnalysisResult