Platforms/YouTube/Post

YouTube Post API

GET ยท 1 credit

Send a post's id or link, and get its text, images, likes, channel and the video it shares.

GET /v1/youtube/posts

Example request

const url = `${process.env.API_URL}/v1/youtube/posts?post_id=Ugkxvj2KoApYAXoqLWnKVr6zZe5JjeHrQeP8`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
post_idNoA post's id: the part after /post/ in its link. Give post_id or url.
urlNoA post's link: youtube.com/post/<id>, or a channel's posts tab with ?lb=<id>. Give post_id or url.

Example response

{
  "data": {
    "id": "Ugkxvj2KoApYAXoqLWnKVr6zZe5JjeHrQeP8",
    "url": "https://www.youtube.com/post/Ugkxvj2KoApYAXoqLWnKVr6zZe5JjeHrQeP8",
    "text": "New video in 2 hours, who's watching?",
    "channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "channel_name": "MrBeast",
    "channel_handle": "MrBeast",
    "published": "2 weeks ago",
    "likes": 310000,
    "images": [
      "https://yt3.ggpht.com/post-image.jpg"
    ],
    "video_id": "0e3GPea1Tyg"
  },
  "page": null,
  "meta": {
    "platform": "youtube",
    "endpoint": "post",
    "params": {
      "post_id": "Ugkxvj2KoApYAXoqLWnKVr6zZe5JjeHrQeP8"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which links does it take?

youtube.com/post/<id>, or a channel's posts tab with ?lb=<id>. The id alone works too.

Where do post ids come from?

From Channel posts, which lists a channel's posts with their ids.

What if the post was deleted?

It answers 404 NOT_FOUND.

Works with

On other platforms

YouTube guides

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required