AxioAPI

Twitter (X) Scraper API

X (Twitter) GraphQL user profile and tweet details with oEmbed and rich media extraction.

4 endpoints · 1 credit = $0.001. Each endpoint has its own credit cost, listed below. Calls that fail because of a service error are refunded.

API workspace and documentation

AxioAPI Studio · X (Twitter) Scraper
Free Trial: 10 of 10 left
Quick presets:

What you can build with the Twitter (X) scraper API

The Twitter (X) scraper API reads public X data as JSON: profiles by username, tweets by ID, a user's timeline and trends. Useful when you only need public data and not the full official API.

Monitor an account

Read a profile and its timeline on a schedule to follow what a brand or person posts.

GET /api/v1/social/twitter/users/{username}/timeline

Embed or analyse a tweet

Fetch a tweet by ID to get its text, author and metrics for reports or dashboards.

GET /api/v1/social/twitter/tweets/{id}

Watch what is trending

Read the trends endpoint to see topics that are currently trending.

GET /api/v1/social/twitter/trends

How the Twitter (X) scraper API works

  1. 1

    Use the right input

    Use a username for profiles and timelines, and a tweet ID for a single tweet.

  2. 2

    Call the endpoint

    For example GET /api/v1/social/twitter/profile with the username.

  3. 3

    Read the fields returned

    Inspect text, author and metrics separately. A missing field stays unavailable.

Try the X (Twitter) Scraper API with your own account

New accounts receive 200 credits after verification, enough for about 666 calls to "X (Twitter) trending topics".

Using X (Twitter) Scraper

Use a username for a profile or a tweet ID for a post.

Inspect the returned text, author and metrics separately; a missing field remains unavailable.

Timeline and trends return only the fields provided for that operation; empty results are not replaced with samples.

Twitter (X) scraper API endpoints and pricing

OpenAPI 3.1 JSON

Select an operation above and open API & Docs for parameters and cURL, JavaScript, Python or PHP examples. The web tool uses your signed-in session; external integrations use a Bearer API key.

Method Endpoint Cost
GET X (Twitter) GraphQL profile /api/v1/social/twitter/profile
Helpful?
1 credit / request≈ $0.001
GET X (Twitter) tweet oEmbed /api/v1/social/twitter/tweets/{id}
Helpful?
0.5 credit / request≈ $0.0005
GET X (Twitter) user timeline /api/v1/social/twitter/users/{username}/timeline
Helpful?
1 credit / request≈ $0.001
GET X (Twitter) trending topics /api/v1/social/twitter/trends
Helpful?
0.3 credit / request≈ $0.0003

Twitter (X) scraper API: frequently asked questions

What is the Twitter (X) scraper API?

It returns public X data as JSON and is a practical Twitter API alternative: a profile, a tweet by ID, a timeline and Twitter trends.

Is this the official X API?

No. It returns public data through AxioAPI. You do not need an X developer account.

Can I post or read private messages?

No. The API is read-only and limited to public data.

Why is a trends result empty?

Timeline and trends return only the fields provided for that operation; empty results are not replaced with samples.

How is it billed?

Per request, with different prices per endpoint, shown in the table below. New accounts receive 200 credits after verification.

Before integrating

Live and example data

Check the Live or Sandbox label before running. Examples demonstrate the response structure and do not guarantee live service status.

Credits and limits

Pricing depends on the endpoint and billable units. Failed live requests are not replaced with billable examples. Check your account limits before running repeated requests.

View pricing

Handling errors

Keep the request ID for troubleshooting. For 429, respect Retry-After when provided. If a create or delete request loses its connection, check the resource state before retrying.

Ready to integrate the X (Twitter) Scraper API? Create an account and get your API key in minutes.