> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch a YouTube channel's profile and About details

> Get a YouTube channel's profile from its link, handle or channel ID: name, handle, full description, avatar and banner, verified badge, subscriber, video and total view counts, joined date, country, the links it lists and its keywords. Costs 1 credit per request.



## OpenAPI

````yaml /openapi.json post /youtube/get-channel
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter), Reddit, GitHub, Instagram and
    TikTok. Authenticated endpoints accept a Bridgly API key (`bgly_…`) via
    `Authorization: Bearer <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
security: []
tags:
  - name: LinkedIn
    description: Scrape LinkedIn profiles, companies, posts, and search.
  - name: Reddit
    description: Scrape Reddit posts, subreddits, users, and search.
  - name: X (Twitter)
    description: Scrape tweets and search X.
  - name: GitHub
    description: >-
      Fetch GitHub profiles, pinned repos, contributions, repositories, stars,
      and projects via GitHub's GraphQL API.
  - name: Instagram
    description: Scrape Instagram profiles, posts, followers, and search.
  - name: TikTok
    description: Fetch TikTok profiles.
  - name: Meta Ads
    description: >-
      Search the Meta Ad Library: ads, ad details, and advertisers on Facebook
      and Instagram.
  - name: Facebook
    description: >-
      Scrape Facebook profiles, Pages, posts, comments, groups, Marketplace, and
      search.
paths:
  /youtube/get-channel:
    post:
      tags:
        - YouTube
      summary: Fetch a YouTube channel's profile and About details
      description: >-
        Get a YouTube channel's profile from its link, handle or channel ID:
        name, handle, full description, avatar and banner, verified badge,
        subscriber, video and total view counts, joined date, country, the links
        it lists and its keywords. Costs 1 credit per request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                channel:
                  type: string
                  minLength: 1
                  description: >-
                    The channel: its link, its handle, or its channel ID, e.g.
                    "https://www.youtube.com/@RickAstleyYT", "@RickAstleyYT" or
                    "UCuAXFkgsw1L7xaCfnd5JJOw".
                cacheMaxAgeHours:
                  description: >-
                    Accept a cached result up to this many hours old, at no
                    cost; its `cachedAt` says when it was fetched. Without one
                    that recent, fresh data is fetched at the normal price.
                    Leave it out to always get fresh data, e.g. 24.
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                cacheOnly:
                  description: >-
                    Return only a cached result, never fresh data. With
                    `cacheMaxAgeHours`, only one that recent; without it, the
                    latest of any age. Responds 404, at no cost, when there is
                    none, e.g. true.
                  type: boolean
              required:
                - channel
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeMs:
                    type: number
                    description: >-
                      Wall-clock time the request took to complete, in
                      milliseconds.
                  creditsCost:
                    type: number
                    description: Number of account credits this request consumed.
                  cachedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      - type: 'null'
                    description: >-
                      When the returned data was fetched, if it came from the
                      cache. Null when it was fetched fresh for this request.
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Channel ID, e.g. "UCuAXFkgsw1L7xaCfnd5JJOw".
                      url:
                        type: string
                        description: >-
                          Channel page URL, e.g.
                          "https://www.youtube.com/@RickAstleyYT".
                      handle:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Channel handle without the "@", e.g. "RickAstleyYT".
                      name:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Channel display name, e.g. "Rick Astley".
                      description:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Full channel description, with line breaks preserved.
                      artistBio:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: >-
                          The artist biography shown on official artist
                          channels. Null for other channels.
                      avatars:
                        anyOf:
                          - type: array
                            items:
                              type: object
                              properties:
                                url:
                                  type: string
                                  description: Direct image URL for this thumbnail size.
                                width:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Thumbnail width in pixels.
                                height:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Thumbnail height in pixels.
                              required:
                                - url
                                - width
                                - height
                              additionalProperties: false
                          - type: 'null'
                        description: Channel profile picture sizes, smallest first.
                      banners:
                        anyOf:
                          - type: array
                            items:
                              type: object
                              properties:
                                url:
                                  type: string
                                  description: Direct image URL for this thumbnail size.
                                width:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Thumbnail width in pixels.
                                height:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Thumbnail height in pixels.
                              required:
                                - url
                                - width
                                - height
                              additionalProperties: false
                          - type: 'null'
                        description: Channel banner image sizes, smallest first.
                      isVerified:
                        anyOf:
                          - type: boolean
                          - type: 'null'
                        description: >-
                          True when the channel has a verified or official
                          artist badge.
                      subscriberCount:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: >-
                          Subscriber count, rounded as YouTube shows it, e.g.
                          4560000 for "4.56M subscribers". Null when the channel
                          hides it.
                      videoCount:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: Number of public videos on the channel.
                      viewCount:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: Total views across all of the channel’s videos.
                      joinedDate:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Date the channel was created, as YYYY-MM-DD.
                      country:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Country the channel lists, e.g. "United Kingdom".
                      links:
                        anyOf:
                          - type: array
                            items:
                              type: object
                              properties:
                                title:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: >-
                                    The label the channel gave the link, e.g.
                                    "Website".
                                url:
                                  type: string
                                  description: >-
                                    Where the link points, e.g.
                                    "https://example.com".
                              required:
                                - title
                                - url
                              additionalProperties: false
                          - type: 'null'
                        description: Links the channel lists on its profile, in its order.
                      keywords:
                        anyOf:
                          - type: array
                            items:
                              type: string
                          - type: 'null'
                        description: Keywords the channel set for itself.
                      isFamilySafe:
                        anyOf:
                          - type: boolean
                          - type: 'null'
                        description: True when YouTube marks the channel as family safe.
                      hasBusinessEmail:
                        anyOf:
                          - type: boolean
                          - type: 'null'
                        description: >-
                          True when the channel lists an email address for
                          business inquiries on its About panel. YouTube shows
                          the address only to signed-in viewers.
                    required:
                      - id
                      - url
                      - handle
                      - name
                      - description
                      - artistBio
                      - avatars
                      - banners
                      - isVerified
                      - subscriberCount
                      - videoCount
                      - viewCount
                      - joinedDate
                      - country
                      - links
                      - keywords
                      - isFamilySafe
                      - hasBusinessEmail
                    additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - cachedAt
                  - data
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: typescript
          label: Bridgly SDK
          source: |-
            import { Bridgly } from '@bridgly/sdk';

            const client = new Bridgly({ apiKey: process.env.BRIDGLY_API_KEY });

            const res = await client.youtube.getChannel({
              channel: "string",
            });
            if (res.type === 'success') console.log(res.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.