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

X (Twitter) Typeahead

GET https://scrappa.co/api/x-twitter/search/typeahead

Search typeahead suggestions for a partial query.

X (Twitter) Typeahead 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/x-twitter/search/typeahead
Auth header
x-api-key
Cost
1 credit/request
q = coffee shops
Response preview
200 OK
{
    "count": 1,
    "query": "nasa",
    "cursor": null,
    "results": [
        {
            "name": "NASA",
            "screen_name": "NASA"
        }
    ]
}

Parameters

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

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

q string Required

Search query.

Example value coffee shops
result_type string Optional

Result type filter.

Example value example

Response Schema

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

Example response fields

Scan these fields before integrating.

count query cursor results

Common results fields

name screen_name
JSON Response
200 OK
{
    "count": 1,
    "query": "nasa",
    "cursor": null,
    "results": [
        {
            "name": "NASA",
            "screen_name": "NASA"
        }
    ]
}

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.