Skip to content
Endless Documentation
Social

Get trending topics

GET
/social/trends

What's trending on X for a location — the Radar feed. Requires the Radar feature; not charged.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: social:read

Query Parameters

organization_id*string
Match^org_
woeid?number

Yahoo WOEID of the location. Omitted: the caller's country, else worldwide.

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
woeid*integer
Range-9007199254740991 <= value <= 9007199254740991
trends*array<>
Example Request
curl -X GET 'https://api.endless.app/social/trends?organization_id=string'
Example Response
{  "woeid": -9007199254740991,  "trends": [    {      "name": "string",      "url": "string",      "tweet_volume": 0    }  ]}

TikTok user posts POST

Get a TikTok account's videos with engagement counts (plays, likes, comments, shares, saves), hashtags, and the sound each video uses (`music.id` feeds `tiktok_music_posts`). For a date range, pass `since` and the walk pages back until it reaches that date — do NOT try to cover a range with a big `max_items`. For a date range pass `since` and `until` rather than a large item cap — plus `tz`, the user's timezone, so the days are cut on THEIR calendar. The walk pages back until it reaches that date, and the tool returns a `totals` block (posts, views, likes, comments, engagement_rate) computed over exactly that window. Quote those numbers; never add up the rows yourself. Before reporting a total, read these four fields — each one exists because ignoring it produced a wrong report: - `partial: true` — the walk stopped early, so this is a FLOOR, not a measurement. Say so, or re-run; never present it as the period's total. - `overlaps` — names a sibling feed returning the SAME pieces. Report one feed or the other; adding both counts every piece twice. - `views_metric` — which upstream number `views` came from. Two feeds on one platform can report different values for the same piece, so only compare or combine totals whose `views_metric` matches. - `measured_at` — when it was read. Live counts move fast; state it whenever you report a total, and never explain a difference between two runs as a mistake before checking whether the pieces simply gained views between them. COVERING MORE THAN ONE ACCOUNT OR FEED: never add these totals in your head. Each result carries a `receipt` — a TSV block with the same five columns on every platform. Paste the receipts into `run_code` and total them there: dedupe on (platform, id) so a piece returned by two feeds is counted once, keep an empty field as missing rather than 0, and only add views across receipts whose `views_metric` matches. Report the code's number, not a retyped one, and hand back the per-piece list so the total can be checked by hand. For comparing several accounts at once, prefer `tiktok_trend_scan`.

X post comments POST

Get the replies (comments) on an X (Twitter) post by URL. Use when the user asks about replies, reactions, or sentiment on a specific post.