TweetAPI Documentation

Everything you need to integrate X/Twitter data into your application

Quick Start

Get up and running with TweetAPI in under 5 minutes. No approval process required.

// Fetch user data by username
const params = {
  username: 'elonmusk'
};

const queryString = new URLSearchParams(params).toString();

const response = await fetch(`https://api.tweetapi.com/2/user/by-username?${queryString}`, {
  method: 'GET',
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data);

// Search tweets example
const searchResponse = await fetch('https://api.tweetapi.com/2/tweets/search?query=AI&count=100', {
  method: 'GET',
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const tweets = await searchResponse.json();

Sample API Request

curl -X GET "https://api.tweetapi.com/2/user/by-username?username=elonmusk" \
  -H "x-api-key: YOUR_API_KEY"

# Response
{
  "data": {
    "id": "44196397",
    "username": "elonmusk",
    "name": "Elon Musk",
    "followers_count": 150000000,
    "following_count": 500,
    "tweet_count": 25000,
    "verified": true,
    "created_at": "2009-06-02T20:12:29.000Z"
  }
}

Ready to Get Started?

Sign up now to get instant API access. Full documentation available after registration.

Note: Complete API documentation with all endpoints, parameters, and code examples is available in your dashboard after signing up. This ensures our documentation stays secure and up-to-date for active users.