YouTube feed

FREEMIUM
Door inUtil Labs | Bijgewerkt il y a 2 mois | Data
Health Check

100%

Terug naar alle tutorials (1)

How to use YouTube feed API

  1. Obtain Channel Name:
    • Open your web browser and navigate to the main page of the desired YouTube channel.
    • Obtain the channel name by extracting everything before the root URL of YouTube. For example, if the channel page is www.youtube.com/@lu4t, the channel name will be “@lu4t”.
  1. Endpoint Usage:

    • Utilize the ytfeed endpoint of the API.
    • Construct a JSON object as payload with the following key-value pair:
    {
        "channel": "@lu4t"
    }
    

    Replace the value with the channel name obtained in step 1.

  1. Send API Request:
    • Send the constructed JSON payload to the API endpoint.
  1. Receive Response:
    • Upon successful request, you will receive a JSON response with the following structure:
{
  "lu4t Tech": {
    "title": "lu4t Tech",
    "videos": [
      {
        "title": "API: fetch number of views and stars of any channel.",
        "link": "https://www.youtube.com/watch?v=4fUEoHbCW04",
        "published": "2024-03-21T03:21:51+00:00",
        "updated": "2024-03-21T03:21:51+00:00",
        "thumbnail": "https://i1.ytimg.com/vi/4fUEoHbCW04/hqdefault.jpg",
        "starRating": "0",
        "views": "1"
      },
      // Other video entries...
    ]
  }
}

You can follow along this video to learn how to use this API:

Picture url