Hotline.ua product questions
User questions about a product on Hotline.ua with their answers (brand representatives by name; users by first name and initial in author and by the name the page shows in author_name), dates and helpful votes. Pass next_offset back as offset; null on the last page.
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/ |
limit | integer | Questions per page (default 20, max 50). |
offset | integer | Questions to skip. |
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/questions?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/questions",
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/questions");
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)
{"id": 25688444,"title": "Pixel 9 12/128GB Obsidian","path": "/mobile-mobilnye-telefony-i-smartfony/google-pixel-9-12128gb-obsidian/","lang": "uk","total": 1,"offset": 0,"limit": 20,"next_offset": null,"count": 1,"questions": [{"id": 256255,"author": "Руслан","author_name": "Руслан","brand_representative": false,"date": "2024-12-01 22:43:24","subject": "чи впаде цина на pixel 9 за 1-2 мисяци, вірто ще трішки почикати","text": "чи впаде цина на pixel 9 за 1-2 мисяци, вірто ще трішки почекати","helpful": 0,"answers": [{"id": 256256,"author": "Peppy_Capy","author_name": "Peppy_Capy","brand_representative": false,"date": "2024-12-01 22:45:00","subject": "Так, обов'язково впаде, варто почекати","text": "Так, обов'язково впаде, варто почекати","helpful": 0,"answers": []},{"id": 256303,"author": "Руслан","author_name": "Руслан","brand_representative": false,"date": "2024-12-02 12:53:28","subject": "а за яку ціну краще купляти Google Pixel 9 12/128GB ?","text": "а за яку ціну краще купляти Google Pixel 9 12/128GB ?","helpful": 0,"answers": []},"… 6 more"]}],"cached": false,"credits_used": 1}