List metrics + valid operators for one platform.
/api/v1/tracking/metrics/{platform}Free.platformselect·pathrequired | Platform key. |
scripts/dump_doc_samples.py on the server to populate real samples.{
"platform": "amazon",
"metrics": [
{
"id": "product.price",
"kind": "number",
"label": "Price",
"operators": [
"lt",
"lte",
"gt",
"gte",
"drops_by_pct",
"rises_by_pct"
]
},
{
"id": "product.availability",
"kind": "text",
"label": "Availability",
"operators": [
"eq",
"contains",
"changes"
]
},
{
"id": "product.rating",
"kind": "number",
"label": "Rating (out of 5)",
"operators": [
"lt",
"lte",
"gt",
"gte",
"drops_by_pct"
]
}
]
}Paste your full key once — cached in this browser for 7 days, then cleared.
const res = await fetch("https://api.logposervices.com/api/v1/tracking/metrics/", {
method: "GET",
headers: {
"X-API-Key": "<YOUR_API_KEY>",
},
});
const data = await res.json();Click Send Request above to try this endpoint.