Search for posts on X by hashtag.
Endpoint
/v1/twitter/hashtags
Query
Hashtag to search for.
Optional section filter for the hashtag feed. Omit to use the default `top` section.
Optional page size. Maximum supported value is 20.
Opaque pagination cursor returned by a previous response.
const response = await fetch( "https://api.socialfetch.dev/v1/twitter/hashtags?hashtag=#trending", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);