Get trending hashtags, topics, and discussions on X (Twitter) by country or worldwide.
No credit card required · Pay only for what you use
curl -X POST "https://api.dataguru.cc/api/v1/x/trends" \
-H "Authorization: Api-Key YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"include_tweets": "False", "limit": "50", "location": "worldwide", "tweets_limit": "3"}'{
"x_trends": {
"location": "string",
"location_slug": "string",
"source_url": "https://example.com/...",
"scraped_at": "2026-01-01T12:00:00Z",
"total_trends": 0,
"total_hashtags": 0,
"total_topics": 0,
"top_hashtags": [
{
"rank": 0,
"name": "string",
"type": "hashtag",
"clean_name": "string",
"description": "string",
"post_url": "https://example.com/...",
"current_rank": 0,
"peak_rank": 0,
"hours_trending": 0,
"rank_change": "string",
"status": "NEW",
"tweet_count": "string",
"sample_tweets": [
{
"post_id": "1234567890",
"post_url": "https://example.com/...",
"author_username": "string",
"author_name": "string",
"author_id": "1234567890",
"author_profile_image": "string",
"text": "string",
"embedded_hashtags": [
"string"
],
"create_time": "string",
"reply_count": 0,
"retweet_count": 0,
"like_count": 0,
"quote_count": 0,
"view_count": 0,
"save_count": 0,
"is_retweet": false,
"is_pinned": false
}
],
"hashtag": "string",
"overall_rank": 0
}
],
"popular_topics": [
{
"rank": 0,
"name": "string",
"type": "hashtag",
"clean_name": "string",
"description": "string",
"post_url": "https://example.com/...",
"current_rank": 0,
"peak_rank": 0,
"hours_trending": 0,
"rank_change": "string",
"status": "NEW",
"tweet_count": "string",
"sample_tweets": [
{
"post_id": "1234567890",
"post_url": "https://example.com/...",
"author_username": "string",
"author_name": "string",
"author_id": "1234567890",
"author_profile_image": "string",
"text": "string",
"embedded_hashtags": [
"string"
],
"create_time": "string",
"reply_count": 0,
"retweet_count": 0,
"like_count": 0,
"quote_count": 0,
"view_count": 0,
"save_count": 0,
"is_retweet": false,
"is_pinned": false
}
],
"topic": "string",
"overall_rank": 0
}
],
"all_trends": [
{
"rank": 0,
"name": "string",
"type": "hashtag",
"clean_name": "string",
"description": "string",
"post_url": "https://example.com/...",
"current_rank": 0,
"peak_rank": 0,
"hours_trending": 0,
"rank_change": "string",
"status": "NEW",
"tweet_count": "string",
"sample_tweets": [
{
"post_id": "1234567890",
"post_url": "https://example.com/...",
"author_username": "string",
"author_name": "string",
"author_id": "1234567890",
"author_profile_image": "string",
"text": "string",
"embedded_hashtags": [
"string"
],
"create_time": "string",
"reply_count": 0,
"retweet_count": 0,
"like_count": 0,
"quote_count": 0,
"view_count": 0,
"save_count": 0,
"is_retweet": false,
"is_pinned": false
}
]
}
],
"longest_trending": [
{
"rank": 0,
"name": "string",
"type": "hashtag",
"clean_name": "string",
"description": "string",
"post_url": "https://example.com/...",
"current_rank": 0,
"peak_rank": 0,
"hours_trending": 0,
"rank_change": "string",
"status": "NEW",
"tweet_count": "string",
"sample_tweets": [
{
"post_id": "1234567890",
"post_url": "https://example.com/...",
"author_username": "string",
"author_name": "string",
"author_id": "1234567890",
"author_profile_image": "string",
"text": "string",
"embedded_hashtags": [
"string"
],
"create_time": "string",
"reply_count": 0,
"retweet_count": 0,
"like_count": 0,
"quote_count": 0,
"view_count": 0,
"save_count": 0,
"is_retweet": false,
"is_pinned": false
}
]
}
],
"new_trends": [
{
"name": "string",
"rank": 0,
"type": "hashtag",
"post_url": "https://example.com/..."
}
],
"hourly_timeline": [
{
"time": "string",
"top_trends": [
"string"
]
}
]
},
"_metadata": {
"request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
"execution_time_ms": 842,
"endpoint": "X (Twitter) Trends",
"mode": "live",
"format": "json",
"timestamp": "2026-01-01T12:00:00+00:00"
}
}Data
Every response follows the same schema, so you can map it once and rely on it.
Features
DataGuru handles proxies, retries and anti-bot measures for you. You just send a request.
Every response uses the same 13 fields, so your parser never breaks.
Call the endpoint and get results back. No browser automation or HTML parsing on your side.
Use cases
Find creators by audience, topic and engagement to build better campaigns.
Follow mentions and conversations about your brand as they happen.
Understand who engages with you and your competitors.
Who it's for
Get started
Sign up in seconds and get $1.00 of free balance to test with.
Generate a key in the Developer Portal and send it in the Authorization header.
Call POST /api/v1/x/trends with your parameters.
FAQ
More APIs
Get a public Instagram profile: name, bio, link, follower and following counts and more.
Social MediaGet the details of a public Instagram post or reel: caption, hashtags, tagged users, media and engagement.
Social MediaGet the public comments on an Instagram post or reel.
| Name | Type | Description |
|---|---|---|
| include_tweets | boolean | Whether to include sample tweets for the top trends. |
| limit | integer | Maximum number of trending items to return (1-100). |
| location | string | Country name, country code, or "worldwide" (e.g. us, uk, worldwide). |
| tweets_limit | integer | Number of sample tweets per trend if include_tweets is true (1-10). |
Get the data in the response, or add ?async=true and poll the job for long-running requests.
Up to 60 requests per minute and 10,000 per day on this endpoint.
No subscription or monthly minimum. Usage is deducted from your prepaid balance.
Add public profile details to the leads already in your CRM.
Spot rising topics and formats before they peak.
Compare follower growth and engagement against competitors.
Use the response straight away in your app, spreadsheet or pipeline.
Get a public TikTok profile: username, name, bio, follower and following counts, likes, verification, stats and profile photo.