No output yet. Submit the form to generate content.
Transparent pricing with no hidden fees. Pay as you go.
| Rule & Modality | Channel | Credits | Price (USD) | Official / Reference Price | Daily Savings |
|---|---|---|---|---|---|
ai-trend-by-rest-id otherTwitter | Starter | 0.01per post | $0.00005 | - | - |
Competitor pricing costs $45.450 more
ApiPass is 90.90% lower, estimated at multiple calls returning 10,000 returned posts total
ai-trend-by-rest-id
ApiPass Price
$0.0005
0.1 credits per post
Competitor Prices
Complete guide to using twitter-api-graphql
Retrieve AI-generated summaries, article content, and post timelines for any trending topic on X (Twitter) using its unique trend ID.

The Twitter Graphql AI Trend By Rest Id API on ApiPass is a powerful endpoint that lets developers fetch structured, AI-summarized information about trending topics on X (formerly Twitter). By passing a specific trendId, the API returns Grok-generated article titles, concise narrative summaries, associated post timelines (Top and Latest), and metadata such as last update timestamps. It effectively transforms raw trend data into ready-to-use, human-readable content — ideal for developers who want to integrate real-time trend intelligence into their apps without building complex scraping or summarization pipelines.
Get Grok-generated article-style summaries of trending events instead of raw, noisy tweet data.
Interact with a clean JSON-based endpoint via ApiPass's unified job system — no OAuth headaches or GraphQL query construction required.
Pay per successful request with transparent pricing, avoiding the high monthly fees of Twitter's official enterprise tiers.
Requests typically complete in around 12 seconds, backed by ApiPass's stable infrastructure and auto-channel routing.
Use callBackUrl to receive results asynchronously, perfect for large-scale monitoring pipelines.
Beyond the summary, receive linked post timeline IDs so you can drill deeper into supporting tweets when needed.
Returns a Grok-composed title and full narrative text explaining the trend's context, actors, and developments.
Provides both "Top" and "Latest" post timeline IDs, enabling flexible follow-up queries for related tweets.
Toggle includePromotedContent, withBirdwatchNotes, withVoice, and withCommunity flags to tailor the response to your use case.
Auto-generate news briefs from trending topics without manually writing summaries.
Monitor emerging conversations and events with AI-crafted context around each trend.
Surface the most relevant, contextualized trending stories for readers, creators, or marketing teams.
Trigger notifications when specific trends develop, complete with a ready-to-send narrative summary.
Twitter's official API (v2 Trends endpoints) only exposes trend names and volumes. ApiPass's AI Trend By Rest Id endpoint additionally returns Grok's AI-composed article text — a feature otherwise locked inside the X consumer app.
The official Twitter API restricts advanced trend and GraphQL-level data behind expensive Pro/Enterprise plans. ApiPass makes this data accessible with pay-as-you-go pricing and a single Bearer token, drastically lowering the barrier to entry.
Reporters can quickly get AI-summarized context around breaking stories like "Waymo Self-Driving Car Kills Beloved San Francisco Bodega Cat KitKat" for faster editorial workflows.
Detect when your brand is entangled in a trending discussion and instantly understand the narrative.
Track sentiment-shaping events (product launches, crises, viral moments) that could move stock prices or consumer perception.
Study how public discourse evolves around specific events using structured, AI-condensed trend data.
Send a POST request to https://api.apipass.dev/api/v1/jobs/createTask with your Bearer token, specifying the model as twitter/graphql/ai-trend-by-rest-id and including the target trendId along with your desired flags (includePromotedContent, withBirdwatchNotes, withVoice, withCommunity). You'll receive a taskId in the response.
Either wait for the asynchronous callback at your configured callBackUrl, or poll the endpoint https://api.apipass.dev/api/v1/jobs/recordInfo with your taskId to fetch the completed job payload once its state turns to "success".
Extract the AI-generated article title, article_text, and post_timelines from the returned JSON payload and integrate them into your product — whether that's a news feed, a dashboard, or an automated alert system.
All APIs require authentication via Bearer Token.
Authorization: Bearer
Get AI trend details by trendId
The API accepts a JSON payload with the following structure:
1{
2 "model": "string",
3 "callBackUrl": "string (optional)",
4 "channel": "auto",
5 "input": {
6 "variables": {
7 "trendId": "string",
8 "includePromotedContent": "boolean",
9 "withBirdwatchNotes": "boolean",
10 "withVoice": "boolean",
11 "withCommunity": "boolean",
12 }
13 }
14}modelRequiredstringThe model name to use for generation
"twitter/graphql/ai-trend-by-rest-id"
callBackUrlOptionalstringCallback URL for task completion notifications. If omitted, no callback will be sent.
"https://your-domain.com/api/callback"
channelOptionalstringYou may specify the corresponding provider within APIPASS via the channel parameter; these providers handle the actual image and video generation tasks. APIPASS currently offers three provider options:
The default value for the channel parameter is auto. When enabled, APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics to balance minimal cost and reliable performance. Retain the default auto value unless you have custom routing requirements.
Available options:
auto
The input object contains the following parameters:
input.variables.trendIdRequiredstring1983681844601069653
input.variables.includePromotedContentOptionalbooleanfalse
input.variables.withBirdwatchNotesOptionalbooleanfalse
input.variables.withVoiceOptionalbooleanfalse
input.variables.withCommunityOptionalbooleanfalse
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Content-Type: application/json" \
3 -H "Authorization: Bearer YOUR_API_KEY" \
4 -d '{
5 "model": "twitter/graphql/user-by-screen-name",
6 "callBackUrl": "https://your-domain.com/api/callback",
7 "input": {
8 "variables": {
9 "trendId": "1983681844601069653",
10 "includePromotedContent": false,
11 "withBirdwatchNotes": false,
12 "withVoice": false,
13 "withCommunity": false,
14 }
15 }
16 }'1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "taskId": "task_12345678"
6 }
7}codeStatus code, 200 for success, others for failure
messageResponse message, error description when failed
data.taskIdTask ID for querying task status and results