Twitter Post Information API
Get detailed Twitter post analytics including likes, retweets, quotes, replies, and impression figures for campaign reporting and performance analysis.
| 1 | import requests |
| 2 | |
| 3 | root = "https://ensembledata.com/apis" |
| 4 | endpoint = "/twitter/post/info" |
| 5 | params = { |
| 6 | "id": 1694791112567967849, |
| 7 | "token": "YOUR-TOKEN-HERE" |
| 8 | } |
| 9 | |
| 10 | res = requests.get(root+endpoint, params=params) |
| 11 | print(res.json()) |
| 12 |
Why Developer Teams Use Our API
Single Tweet Deep Dive
Query one tweet by ID and get every engagement metric tied to that specific post.
Track Campaign Tweets
Monitor likes, retweets, and replies on a sponsored tweet to measure real performance.
Benchmark Against Competitors
Pull the same metrics for a rival's tweet to compare performance on equal footing.
Real-Time Metrics
Stats are pulled live from the platform, reflecting the tweet's current standing.
No Paid API Tier Needed
Skip Twitter/X's paid tier requirements just to check a single tweet's stats.
Simple ID-Based Lookup
No scraping the tweet page yourself, just pass an ID and get structured stats back.
Scrape Twitter Data Effortlessly
Our post details API gives you granular engagement data for individual tweets, useful for ROI reporting, content performance reviews, and campaign analysis.
Tweet ID or URL Input
Query a single tweet by ID or URL and get full engagement metrics back.
Amplification Tracking
Track quote tweet volume to measure how far a post spreads beyond retweets.
Report-Ready Metrics
Drop per-tweet engagement numbers straight into a campaign report.
Twitter Scraping Features
Extract tweet-level analytics and use the data to optimize your Twitter strategy, track campaign results, and benchmark content performance.
- Query a single tweet by ID or URL and get likes, retweets, quotes, and replies together.
- See quote tweet counts as a distinct field from simple retweets to measure amplification.
- Check attached media type and URLs alongside the tweet's core engagement numbers.
- Monitor a competitor's or sponsored tweet's performance over time with repeated lookups.
- Get real-time engagement figures without subscribing to X's paid developer tiers.
Starting crawling Twitter now!
Get Your API Key in Minutes
Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.
Get started freeDeveloper Support
Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.
Contact usFrequently Asked Questions
It returns detailed engagement data for one tweet, including likes, retweets, quote tweets, replies, and impression figures.
You provide the tweet's ID or URL, and the endpoint returns full engagement metrics for that specific post.
Yes, pulling granular engagement and impression data for individual campaign tweets is a common way to build performance reports.
Yes, quote tweet counts are included alongside likes, retweets, and replies for a complete engagement picture.
Yes, both the full tweet URL and the standalone numeric tweet ID are accepted as input.
Yes, retweet count and quote tweet count are returned as separate fields, so simple reshares can be told apart from quote-amplified reach.
Yes, attached media type and URLs are included in the response alongside the engagement metrics.
Reply, like, and retweet counts are pulled at request time directly from the public tweet page, so figures reflect the current state rather than a cached snapshot.
Yes, as long as the tweet is public, you can pull its engagement stats on a schedule to track how a competitor's content performs over time.