X (Twitter) User Mentions

Docs ↗
https://api.sandbase.ai/v1/api/twitter/user-mentions

Recent tweets that mention a user by username, with optional time range and cursor pagination.

Price
$0.003USD / call
Method
POST
Response
JSON
Parameters
1 required · 3 optional

Playground

Input
The user screen name to get mentions for.
The cursor to paginate through the results. First page is empty.
On or after a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. Range: 0 to 9223372036854776000.
Before a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. Range: 0 to 9223372036854776000.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

X (Twitter) User Mentions API

Recent tweets that mention a user by username, with optional time range and cursor pagination.

The result is returned in outputs[0].data as the official X (Twitter) API response, unchanged.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/user-mentions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userName": "NASA"}'

Parameters

NameTypeRequiredDescription
cursorstringNoThe cursor to paginate through the results. First page is empty.
sinceTimeintegerNoOn or after a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.
untilTimeintegerNoBefore a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.
userNamestringNoThe user screen name to get mentions for.

Pricing

Billed at the actual cost of each call, about $0.003 for a typical request; the cost grows with the number of rows returned. Searches with no results are billed at their actual cost. Failed calls are not charged.

Explore more

Related APIs

All APIs
APIPriceResponse
X (Twitter)From $0.003 per callJSON
X (Twitter)From $0.0005 per callJSON
X (Twitter)From $0.0001 per callJSON
X (Twitter)From $0.0036 per callJSON
X (Twitter)From $0.003 per callJSON
X (Twitter)From $0.0004 per callJSON

Questions

FAQ

How do I use the X (Twitter) User Mentions API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/user-mentions with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the X (Twitter) User Mentions API cost?

From $0.003 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

What parameters does the X (Twitter) User Mentions API accept?

Required: userName (string). Optional: cursor (string), sinceTime (integer) and untilTime (integer). The Parameters table and the Playground on this page list every field.

What does the X (Twitter) User Mentions API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a X (Twitter) developer account or API key?

No. X (Twitter) User Mentions runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for X (Twitter) API access separately.