Narrativ - Public Data API
  1. X
Narrativ - Public Data API
  • Overview
  • YouTube
    • Get Channel Details
      GET
    • Get Followers Chart
      GET
    • Get Channels by Country
      GET
    • Get Social Volume
      GET
    • Get Channel Hashtags
      GET
    • Get Channel Cashtags
      GET
    • Get Trending Hashtags
      GET
    • Get Trending Cashtags
      GET
    • Get Trending Videos By Country
      GET
    • Get Video Details
      GET
    • Get Live Streamers
      GET
    • Get Video Comments
      GET
  • Telegram
    • Get Channel Details
      GET
    • Get Social Volume
      GET
    • Get Followers Chart
      GET
    • Get Post Details
      GET
    • Get Channel Cashtags
      GET
    • Get Channel Hashtags
      GET
  • X
    • Get Profile Details
      GET
    • Get Followers Chart
      GET
    • Get Social Volume
      GET
    • Get Post Details
      GET
    • Get Profile Cashtags
      GET
    • Get Profile Hashtags
      GET
    • Get Trends by Country
      GET
    • Get Top Tweets
      GET
  • Universal
  1. X

Get Trends by Country

Developing
GET
https://api.narrativ.tech/functions/v1/x/trending/topics
Retrieves trending topics for a specified country.

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Query Params

Responses

🟢200Success
application/json
Body

🟠400Missing Query Parameter
🟠400Wrong Params
🟠401Unauthorized - Missing Auth Token
🟠401Unauthorized - Invalid Key
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.narrativ.tech/functions/v1/x/trending/topics?country_code' \
--header 'api-key: <api-key>'
Response Response Example
200 - Success - Trending Topics
{
    "data": [
        {
            "trend": "eu",
            "tweetCount": 62316136
        },
        {
            "trend": "cupidatat amet non in nostrud",
            "tweetCount": -55045520
        },
        {
            "trend": "veniam",
            "tweetCount": 51868111
        }
    ]
}
Previous
Get Profile Hashtags
Next
Get Top Tweets
Built with