Narrativ - Public Data API
  1. YouTube
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. YouTube

Get Trending Videos By Country

Developing
GET
https://api.narrativ.tech/functions/v1/youtube/trending/videos-by-country
Retrieves a list of YouTube's most popular videos by country.

Request

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

Responses

🟢200Success
application/json
Body

🟠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/youtube/trending/videos-by-country?country_code' \
--header 'api-key: <api-key>'
Response Response Example
200 - Example 1
{
    "data": [
        {
            "details": {
                "id": "string",
                "uploadedBy": "string",
                "publishedDate": "2024-01-11 09:52:57",
                "title": "string",
                "description": "string",
                "link": "string",
                "tags": "string",
                "localizedTitle": "string",
                "localizedDescription": "string",
                "defaultAudioLanguage": "string",
                "defaultLanguage": "string",
                "definition": "hd",
                "licensedContent": true,
                "privacyStatus": "private",
                "embeddable": true,
                "thumbnailUrl": "string",
                "isStream": "false",
                "iframe": "string",
                "duration": "00:00:14",
                "hasCaptions": "false",
                "isUnavailable": "false",
                "regionRestriction": [
                    "string"
                ],
                "paidProductPlacement": "false"
            },
            "stats": {
                "viewTotal": -2147483648,
                "likeTotal": -2147483648,
                "commentTotal": -2147483648
            }
        }
    ]
}
Previous
Get Trending Cashtags
Next
Get Video Details
Built with