YOUTUBE API

Channel Search

Retrieve channel search from YouTube with a single API request.

GET/api/data/v1/youtube/channel/search
1credit base cost

Request parameters

Up to 1 credit

YouTube channel handle, with or without @.

Keywords to search within this channel.

Token from the previous response. Keep the same handle and query; stop when the token is null.

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/youtube/channel/search?handle=NASA&query=artemis' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "videos": [
    {
      "type": "video",
      "id": "_eeZQw9PBc0",
      "url": "https://www.youtube.com/watch?v=_eeZQw9PBc0",
      "title": "Artemis II Launches Astronauts to the Moon (Official NASA Recap)",
      "thumbnail": "https://i.ytimg.com/vi/_eeZQw9PBc0/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLC59RvmXk61RYq4qq4Wv2WFDDJQcA",
      "channel": {
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "handle": "NASA",
        "thumbnail": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
      },
      "viewCountText": "1,649,926 views",
      "viewCountInt": 1649926,
      "publishedTimeText": "6mo ago",
      "publishedTime": null,
      "lengthText": "2:24",
      "lengthSeconds": 144,
      "badges": [
        "CC"
      ]
    }
  ],
  "channels": [],
  "playlists": [
    {
      "type": "playlist",
      "id": "PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
      "title": "Artemis II Mission Coverage",
      "thumbnail": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAi1OCwehE4YN4-jFbe-SlII4gyyw",
      "channel": {
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA · Playlist"
      },
      "videoCount": "23 videos"
    }
  ],
  "shorts": [
    {
      "type": "short",
      "id": "vMGuObY8_sw",
      "url": "https://www.youtube.com/watch?v=vMGuObY8_sw",
      "title": "Relive NASA's Artemis II Launch",
      "thumbnail": "https://i.ytimg.com/vi/vMGuObY8_sw/hq2.jpg?sqp=-oaymwFBCNACELwBSFryq4qpAzMIARUAAIhCGADYAQHiAQoIGBACGAY4AUAB8AEB-AG2CIACgA-KAgwIABABGHIgWyg-MA8=&rs=AOn4CLDHJ3063Ni7HpCRBtgzI6qn9OYC6g",
      "channel": {
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "handle": "NASA",
        "thumbnail": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
      },
      "viewCountText": "2,724,313 views",
      "viewCountInt": 2724313,
      "publishedTimeText": "6mo ago",
      "publishedTime": null,
      "lengthText": "0:33",
      "lengthSeconds": 33,
      "badges": [
        "CC"
      ]
    }
  ],
  "shelves": [],
  "lives": [
    {
      "type": "live",
      "id": "nfhDuOHMp0A",
      "url": "https://www.youtube.com/watch?v=nfhDuOHMp0A",
      "title": "NASA’s Artemis II Crew Comes Home (Official Broadcast)",
      "thumbnail": "https://i.ytimg.com/vi/nfhDuOHMp0A/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAjOO178lfqwhZPRUo8SdcXZDfO8w",
      "channel": {
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "handle": "NASA",
        "thumbnail": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
      },
      "viewCountText": "27,771,040 views",
      "viewCountInt": 27771040,
      "publishedTimeText": "Streamed 6mo ago",
      "publishedTime": null,
      "lengthText": "3:53:41",
      "lengthSeconds": 14021,
      "badges": [
        "CC"
      ]
    }
  ],
  "continuationToken": "CONTINUATION_TOKEN_FROM_RESPONSE",
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Illustrative response with example values adapted for FetchGoblin. Run a request to retrieve current platform data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              },
              "thumbnail": {
                "type": "string"
              }
            }
          },
          "viewCountText": {
            "type": "string"
          },
          "viewCountInt": {
            "type": "integer"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "publishedTime": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "lengthText": {
            "type": "string"
          },
          "lengthSeconds": {
            "type": "integer"
          },
          "badges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "channels": {
      "type": "array"
    },
    "playlists": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            }
          },
          "videoCount": {
            "type": "string"
          }
        }
      }
    },
    "shorts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              },
              "thumbnail": {
                "type": "string"
              }
            }
          },
          "viewCountText": {
            "type": "string"
          },
          "viewCountInt": {
            "type": "integer"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "publishedTime": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "lengthText": {
            "type": "string"
          },
          "lengthSeconds": {
            "type": "integer"
          },
          "badges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "shelves": {
      "type": "array"
    },
    "lives": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              },
              "thumbnail": {
                "type": "string"
              }
            }
          },
          "viewCountText": {
            "type": "string"
          },
          "viewCountInt": {
            "type": "integer"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "publishedTime": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "lengthText": {
            "type": "string"
          },
          "lengthSeconds": {
            "type": "integer"
          },
          "badges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "continuationToken": {
      "type": "string"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}
YouTube Channel Search API | FetchGoblin