Skip to content
Scrappa Get API key
X (Twitter) API 1 credit/request

X (Twitter) Trends

GET https://scrappa.co/api/x-twitter/trends

The currently trending topics for a place.

X (Twitter) Trends 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/x-twitter/trends
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "count": 2,
    "place": "United States",
    "cursor": null,
    "results": [
        {
            "name": "#SpaceLaunch",
            "post_count": 18400
        },
        {
            "name": "Election2026",
            "post_count": 91200
        }
    ]
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

2 optional filters available.

type string Optional

Place to return trends for, such as a country or city.

Example value example
count integer Optional

Requested page size. Advisory only: the upstream sets the page size, so the returned result count is what matters.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

count place cursor results

Common results fields

name post_count
JSON Response
200 OK
{
    "count": 2,
    "place": "United States",
    "cursor": null,
    "results": [
        {
            "name": "#SpaceLaunch",
            "post_count": 18400
        },
        {
            "name": "Election2026",
            "post_count": 91200
        }
    ]
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.