Skip to main content
GET
/
v1
/
twitter
/
trends
Get trending topics
curl --request GET \
  --url https://scrapebadger.com/v1/twitter/trends/ \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "name": "#AI",
      "url": "<string>",
      "query": "<string>",
      "tweet_count": 123,
      "domain_context": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your ScrapeBadger API key. You can find this in your dashboard at https://scrapebadger.com/dashboard/api-keys.

Query Parameters

category
enum<string>
default:trending

Category to filter trends by.

Available options:
trending,
for-you,
news,
sports,
entertainment
count
integer
default:20

Number of trends to return.

Required range: 1 <= x <= 100

Response

Successfully retrieved trends.

List of trending topics.

data
object[] | null

Array of trend objects.