Our X (Twitter) Scraper is a cutting-edge tool designed to extract valuable data from the popular social media platform. It offers businesses, researchers, and marketers a window into the public conversations shaping our world.
The X Scraper efficiently collects and organizes public data from X, including:
Gather extensive information from user profiles, including biographies, follower counts, and verified status.
Access up-to-the-minute data on trending topics, hashtags, and user engagement.
Retrieve past posts and conversations to analyze long-term trends and user behavior.
Tailor your data collection to focus on specific users, keywords, or date ranges.
Industry | Use Cases |
---|---|
Marketing & PR | Campaign analysis, brand monitoring, influencer identification |
Finance | Market sentiment analysis, stock trend prediction |
Politics | Public opinion tracking, election trend analysis |
Journalism | Story research, source identification, breaking news detection |
Academia | Social behavior studies, linguistic analysis, trend research |
The X Twitter Scraper API allows you to extract various types of information from Twitter, including posts and profiles. This powerful tool enables developers to integrate Twitter data into their applications for social media analysis, trend monitoring, and more.
To use the X Twitter Scraper API, you'll need to authenticate your requests using your API key. The API provides several endpoints for retrieving different types of information:
Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
The request body should be a JSON object with the following structure:
{
"url": "https://twitter.com/username/status/tweet_id"
}
Please note that usage is subject to rate limiting. Refer to your plan details for specific limits.
import requests
import json
# Your API Key
api_key = 'YOUR_API_KEY'
# API Endpoint for posts
url = 'https://taskagi.net/api/social-media/twitter-scraper/posts'
# Headers
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json'
}
# Request Body
data = {
'url': 'https://twitter.com/username/status/tweet_id'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
post_data = response.json()
# Print the post information
print(json.dumps(post_data, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)