Back to Home

X API Integration

Advanced Twitter/X API integration with real-time data processing and analytics dashboard

Overview

The X API Integration project provides a simple and efficient way to retrieve Twitter/X data without authentication requirements. This API supports both twitter.com and x.com URLs, offering comprehensive tweet information including media, engagement metrics, and user details.

API Endpoint

Base URL: https://api.amirrezax.site/x/
Method: GET
Format: GET https://api.amirrezax.site/x/[TWEET_URL]

Key Features

  • No authentication required - Easy access without API keys
  • High-quality media retrieval with original resolution
  • Complete engagement data including likes and retweets
  • Combined media URLs for multiple images
  • Support for both twitter.com and x.com URLs

Usage Examples

cURL Example

curl "https://api.amirrezax.site/x/https://x.com/babak_fatholahi/status/1806753194011209960"

JavaScript Example

fetch('https://api.amirrezax.site/x/https://x.com/babak_fatholahi/status/1806753194011209960')
  .then(response => response.json())
  .then(data => {
    console.log('Tweet text:', data.text);
    console.log('Likes:', data.likes);
    console.log('Media URLs:', data.media_urls);
  })
  .catch(error => console.error('Error:', error));

Python Example

import requests

url = "https://api.amirrezax.site/x/https://x.com/babak_fatholahi/status/1806753194011209960"
response = requests.get(url)

if response.status_code == 200:
    data = response.json()
    print(f"Tweet: {data['text']}")
    print(f"Likes: {data['likes']}")
    print(f"User: {data['user']}")
else:
    print(f"Error: {response.status_code}")

Response Format

The API returns a JSON object with the following structure:

{
  "text": "Tweet content",
  "likes": 707,
  "replies": 15,
  "retweets": 2,
  "media_urls": [
    "https://pbs.twimg.com/media/example1.jpg",
    "https://pbs.twimg.com/media/example2.jpg"
  ],
  "tweet_url": "https://twitter.com/user/status/123456789",
  "user": "username",
  "media_extended": [
    {
      "type": "image",
      "url": "https://pbs.twimg.com/media/example.jpg",
      "size": {
        "width": 1536,
        "height": 2048
      }
    }
  ],
  "raw_data": {
    "date": "Wed Sep 17 18:43:47 +0000 2025",
    "lang": "fa",
    "user_name": "Display Name",
    "combinedMediaUrl": "https://vxtwitter.com/rendercombined.jpg?imgs=..."
  }
}

Use Cases

  • Social media content analysis and engagement pattern research
  • Tweet archiving and backup solutions for important content
  • Media extraction for high-quality images and videos
  • Engagement tracking and analytics monitoring
  • Third-party integration without complex authentication
  • Academic research on social media behavior and trends

Chrome Extension

For downloading media from X (Twitter), use our X Media Downloader extension with Telegram bot integration. Get your license key from our Telegram bot and enjoy seamless media downloading.

X Media Downloader Extension

Download videos, images, and GIFs directly from X posts

  • One-click media downloading
  • Support for videos, images, and GIFs
  • High-quality downloads
  • License-based activation
Download Extension

Download the extension

Get License Key

Visit our Telegram bot to get your license key

Interactive API Tester

Test the X API directly from this page. Enter a Twitter/X URL below and see the response: