OpenGraph.io

Extract Tweet Metadata Instantly — No Twitter API Required

Get tweet text, author name, engagement stats, images, and card data with a single request.

No credit card required.

API Response Preview
Macaulay Culkin
Macaulay Culkin@IncredibleCulk

Hey guys, wanna feel old? I'm 40. You're welcome.

Aug 26, 2020637K80K
X (formerly Twitter)·article
x.com/IncredibleCulk/status/1298730289737293824

Why Use Our Twitter/X Card API?

Skip the Twitter developer portal. Get structured tweet metadata with a single GET request.

No OAuth or Dev Portal

No Twitter developer account, no OAuth tokens, no app review process. Just your OpenGraph.io app_id and a tweet URL.

Zero setup friction

Fast & Reliable Extraction

Extract card data and tweet text from any public tweet in seconds. Cached responses return in milliseconds.

Built for speed

Policy-Change Proof

Twitter/X's developer policies and pricing change constantly. Our API keeps working regardless of their latest restrictions.

Always available

Works With Any URL

Not just Twitter — the same API works with YouTube, Reddit, Instagram, and any other URL. One integration, every platform.

Universal coverage

What You Can Extract

A single API call returns rich, structured metadata for any public tweet.

FieldDescription
Tweet TextFull content of the tweet
Author NameDisplay name of the account
Handle@username of the tweet author
TimestampWhen the tweet was published
Image/Media URLsImage or preview cards (if available)
Engagement DataLike count, retweets, replies (if present)
Site/Favicontwitter.com / x.com and card metadata
Embedded Link InfoIf the tweet links to external content

Built for Real-World Use Cases

Whether you're building a social dashboard, a messaging app, or a content aggregator — our Twitter/X metadata API fits right in.

  • Link unfurling: Show rich tweet previews in chat apps, messaging platforms, and social feeds.
  • Social sentiment: Build dashboards that track tweet performance, engagement trends, and brand mentions.
  • Content aggregation: Curate and display viral or trending tweets in custom platforms without embedding iframes.
  • Marketing research: Analyze tweet performance and author reach for influencer and campaign tracking.
  • Thread embedding: Extract metadata from individual tweets to render custom thread views in your app.

Social Dashboard

Content Aggregator

How It Works

Drop a Twitter/X URL into our endpoint. We return structured data — no tokens, no scraping logic to maintain.

  • 1Send your request: Pass any tweet URL (twitter.com or x.com) to our site API endpoint with your app_id.
  • 2We extract the data: Our infrastructure fetches and parses the tweet page, extracting card data, text, author info, and engagement metrics.
  • 3Get structured JSON: Receive a clean JSON response with tweet text, author, image, and metadata — ready for your app.
Simple API Request
https://opengraph.io/api/1.1/site/
:tweetUrl?app_id=xxxxxx
// Returns tweet text, author, image...
// Works with twitter.com and x.com

Why Not Use Twitter's Official API?

The official API adds cost and complexity you don't need for metadata extraction.

Twitter/X API

  • Requires OAuth and developer portal registration
  • Strict rate limits — even on the paid tiers
  • Basic access starts at $100/month, Pro at $5,000/month
  • Unpredictable policy changes and API deprecations
  • Strict commercial terms and app review process
  • Card data often incomplete via official endpoints
  • Only works with Twitter — need separate APIs for other platforms

OpenGraph.io

  • Just an app_id — no developer portal or app review
  • No OAuth, no tokens, no scopes
  • Simple, predictable request-based pricing
  • Start free — upgrade only when you need to
  • Tweet text, author, image, card data — all in one response
  • Survives X's policy changes — we keep extracting
  • Not just Twitter — works with any URL across any platform
Developer Friendly

Integrate in Minutes

Use the language you love

import fetch from 'node:fetch';

// Site Unfurling API
const unfurlLink = async () => {
// Replace xxxxxx with your app_id or access_key
const url = "https://opengraph.io/api/1.1/site/https://example.com?app_id=xxxxxx";

try {
  const response = await fetch(url);
  const data = await response.json();
  console.log('Link preview:', data);
} catch (error) {
  console.error('Error unfurling link:', error);
}
};

unfurlLink();
Our Clients

Trusted by Thousands

Over 1B Site Previews!

Try it for free today

Get started with 100 free API requests per month. No credit card required. Experience the power of our API with zero commitment.

FAQ

A Twitter/X Card API lets you programmatically extract metadata from any public tweet — including the tweet text, author name, handle, images, and engagement metrics — without using Twitter's official API or dealing with OAuth.
No. OpenGraph.io extracts metadata directly from the page, so you only need an OpenGraph.io app_id. There's no Twitter developer portal, OAuth flow, or app review process required.
You can extract the tweet text, author display name, @handle, timestamp, image/media URLs, engagement data (likes, retweets, replies when available), card metadata, and site-level info like favicon and canonical URL.
Yes. Our API works with both twitter.com and x.com URLs. Regardless of how the platform brands itself, we extract the same structured metadata.
Twitter's official API has become increasingly restrictive and expensive. OpenGraph.io offers simple, predictable pricing based on your request volume — no surprise overages or tiered access levels.
Cached responses return in milliseconds. Fresh requests typically complete in 1–3 seconds. We use global edge caching to ensure fast response times worldwide.
Absolutely. This is one of the most common use cases. Send us a tweet URL and we return the author, text, and image — exactly what you need for a rich link preview.

Still have Questions? 🤔

Can't find the answer you're looking for? Please chat to our friendly team. We usually respond within 24 hours.