Hotline.ua price history
A product's price history on Hotline.ua twice a month since it appeared: average, lowest and highest price in UAH and USD, the number of offers and popularity over time, the current lowest price, seller count and price change over 14 and 30 days, 3 and 6 months, a year and all time.
Every response includes credits_used: the credits this call cost.
Part of the Hotline.ua API: 13 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
pathrequired | string | Product link or path. Example: /mobile-mobilnye-telefony-i-smartfony/google-pixel-9-12128gb-obsidian/ |
city | string | City (default kyiv). |
lang | uk | ru | Language (default uk). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/hotline/v1/price-history?path=%2Fmobile-mobilnye-telefony-i-smartfony%2Fgoogle-pixel-9-12128gb-obsidian%2F" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/hotline/v1/price-history",
params={"path": "/mobile-mobilnye-telefony-i-smartfony/google-pixel-9-12128gb-obsidian/"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/hotline/v1/price-history");
url.searchParams.set("path", "/mobile-mobilnye-telefony-i-smartfony/google-pixel-9-12128gb-obsidian/");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"path": "/mobile-mobilnye-telefony-i-smartfony/google-pixel-9-12128gb-obsidian/","city": "kyiv","current_min_uah": 24007,"current_min_usd": 527.16,"sellers": 24,"sellers_change_percent": -31,"demand_change_percent": -12,"dynamics": {"d14": 4,"d30": 7,"m3": 9,"m6": 11,"y1": 11,"all": -29},"dynamics_usd": {"d14": 4,"d30": 5,"m3": 7,"m6": 7,"y1": 3,"all": -36},"popularity": [{"date": "2024-08-15","value": 1410},{"date": "2024-09-01","value": 9306},"… 398 more"],"offers_count_history": [{"date": "2024-08-15","value": 2},{"date": "2024-09-01","value": 13},"… 398 more"],"count": 400,"history": [{"date": "2024-08-15","avg_uah": 42482,"min_uah": 0,"max_uah": 0,"avg_usd": 1028.37,"min_usd": 0,"max_usd": 0},{"date": "2024-09-01","avg_uah": 40590,"min_uah": 0,"max_uah": 0,"avg_usd": 983.52,"min_usd": 0,"max_usd": 0},"… 398 more"],"cached": false,"credits_used": 1}