X (Twitter) Hashtag Search API
Tag-led discovery on X — hashtag in, structured tweet (and people) rows out, same envelope as the rest of the Twitter tag.
GET /v1/twitter/hashtags2 credits per successful request.
About this endpoint
Campaign monitors and trend jobs often track a specific X tag (#productlaunch, #earnings, a conference slug), not a free-text phrase. Keyword search with a leading # in the query can work, but the hashtag feed is a separate surface with its own section tabs. Scraping that feed yourself means cookies, opaque cursors, and empty pages that look like "no posts" when the client actually failed.
`GET /v1/twitter/hashtags` takes a required `hashtag` query param and returns matching public posts in the shared Social Fetch envelope. Optional `section` (`top`, `latest`, `people`, `photos`, `videos`) picks the feed style; omit it for the default `top` feed. Optional `limit` caps the page (max 20). When `data.page.hasMore` is true, pass `data.page.nextCursor` as `cursor` on the next call. Read `data.tweets` for post rows and `data.people` when the people section returns profiles. Bill from `meta.creditsCharged`.
This route is hashtag-focused discovery. Free-text keyword search is `GET /v1/twitter/search`. Profile cards are `GET /v1/twitter/profiles/{handle}`. All sit on one Social Fetch API key — no X developer app required for these public lookups.
X (Twitter) Hashtag Search API FAQ
What does the X / Twitter Hashtag Search API return?
A page of public posts under data.tweets for the requested hashtag, plus data.people when the people section returns profiles, and pagination under data.page (hasMore, nextCursor). Each response uses the shared Social Fetch envelope with meta.requestId and meta.creditsCharged.
How do I call Twitter hashtag search?
Send GET /v1/twitter/hashtags with x-api-key and a required hashtag parameter. Optionally add section (top, latest, people, photos, videos), limit (max 20), and cursor. Full parameters and examples are in the API docs.
How much does Twitter hashtag search cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged — that field is the billing source of truth. Each paginated page is a separate billed request.
Is this the same as Twitter keyword search?
No. GET /v1/twitter/hashtags is hashtag-focused discovery. Free-text keyword search (operators, quotes, date and engagement floors) is GET /v1/twitter/search. Use the Twitter hub docs if your job needs both.
What is the difference between section=latest and section=top?
section picks the hashtag feed style. Use latest for frequent polls and crisis watches; use top for recap-style dashboards. Other values include people, photos, and videos. Omit section to use the default top feed.
How does pagination work on Twitter hashtag search?
When data.page.hasMore is true, pass data.page.nextCursor as the cursor query param on the next request. Keep the same hashtag and section across pages. The cursor is opaque — do not invent or parse it.
Do I need an X developer app or Bearer token?
No. You authenticate to Social Fetch with an API key. The route reads public hashtag results; it does not act on behalf of a logged-in X user or require elevated X API access.
Other X (Twitter) endpoints
- ProfileGET /v1/twitter/profiles/{handle}
- Profile tweetsGET /v1/twitter/profiles/{handle}/tweets
- TweetGET /v1/twitter/tweets
- Tweet repliesGET /v1/twitter/tweets/replies
- TranscriptGET /v1/twitter/tweets/transcript
- SearchGET /v1/twitter/search
- CommunityGET /v1/twitter/communities
- Community tweetsGET /v1/twitter/communities/tweets