---
title: "Fetch YouTube channel info and videos"
method: POST
path: "/v1/youtube/channel"
tags: ["YouTube"]
---

# Fetch YouTube channel info and videos

`POST /v1/youtube/channel`

Fetches metadata and videos for a YouTube channel. Returns subscriber count, description, video count, total views, and a paginated list of videos. Use `nextPageToken` from the response to paginate through additional video pages.

<span>⚡ <strong>Rate limit:</strong> 60 requests per 1 minute</span>

<span>💰 <strong>Cost:</strong> 2 credits per page of results&nbsp;<span title="Pricing shown is default pricing. Actual pricing may vary.">ⓘ</span></span>

## Request body

- object
  - `apiKey` string, required — Your Fiber API key
  - `channelIdentifier` string, required — YouTube channel @handle, channel ID, or full channel URL. Accepts a @handle (e.g. '@veritasium'), a channel ID (e.g. 'UCBcRF18a7Qf58cCRy5xuWwQ'), or a URL (e.g. 'https://www.youtube.com/@veritasium').
  - `nextPageToken` string, nullable — Pagination token from a previous response to retrieve the next page of channel videos. Omit for the first page.

## Response `200`

Default Response

- object
  - `output` object, required
    - `channel` object, required — Channel metadata.
      - `id` string, required — YouTube channel ID.
      - `name` string, required — Channel display name.
      - `url` string, nullable — URL to the channel page.
      - `subscriberCount` number, nullable — Number of subscribers.
      - `description` string, nullable — Channel description.
      - `countryCode` string, nullable — Country associated with the channel (may be a full name or an ISO code).
      - `videoCount` number, nullable — Total number of videos on the channel.
      - `viewCount` number, nullable — Total view count across all videos.
    - `videos` object[], required — Videos on this page.
      - `id` string, required — YouTube video ID — the unique identifier found in the URL. For example, in 'https://www.youtube.com/watch?v=094y1Z2wpJg', the video ID is '094y1Z2wpJg'.
      - `title` string, required — Video title.
      - `url` string, nullable — URL to the video.
      - `publishedAt` object, nullable — Publication date. When YouTube only provides approximate time (e.g. '2 years ago'), we estimate the date and set `estimated: true`.
        - `date` string, required — ISO 8601 date string (e.g. '2024-03-15T00:00:00.000Z').
        - `estimated` boolean, required — True when the date was estimated from an approximate time string (e.g. '2 years ago'). False when an exact date was available.
      - `viewCount` number, nullable — Number of views.
      - `durationSeconds` number, nullable — Video duration in seconds.
      - `thumbnailUrl` string, nullable — URL of the video thumbnail.
    - `nextPageToken` string, nullable — Token to retrieve the next page of channel videos. Pass this as `nextPageToken` in the next request. Null if there are no more pages.
  - `chargeInfo` union, required
    - object — Credits were charged immediately for this operation
      - `method` 'charged-now', required
      - `creditsCharged` number, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits will be charged after the operation completes
      - `method` 'charging-later', required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits that were charged for an asynchronous operation
      - `method` 'charged-for-async-process', required
      - `creditsCharged` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — No credits were charged for this operation
      - `method` 'free', required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits were refunded for this operation
      - `method` 'credits-refunded', required
      - `creditsRefunded` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
  - `warnings` object[], nullable — Warnings about extraneous fields in request
    - `field` string, required — Full path to extraneous field (e.g., 'searchParams.ExtraField')
    - `message` string, required — Warning message
  - `advice` string[], nullable — Tips, recommendations, and suggestions for using this API effectively.

## Other responses

- `400` — Default Response
- `401` — Default Response
- `402` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `429` — Default Response
- `500` — Default Response
- `503` — Default Response

---

[API](https://skmtc.net/fiber/apis/fiber-ai-api.md) · [All operations](https://skmtc.net/fiber/apis/fiber-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fiber/fiber-ai-api/versions/0c537984b99f/schema)
