YOUTUBE API

Search by Hashtag

Retrieve search by hashtag from YouTube with a single API request.

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

Request parameters

Up to 1 credit

Hashtag to search for

Continuation token to get more videos. Get 'continuationToken' from previous response.

Search for all types of content or only shorts

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/search/hashtag?hashtag=funny' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "videos": [
    {
      "type": "video",
      "id": "jXMISgQq9MM",
      "url": "https://www.youtube.com/watch?v=jXMISgQq9MM",
      "title": "Epic fails 🤣🤣🤣 #shorts #funny #fails",
      "description": "",
      "thumbnail": "https://i.ytimg.com/vi/jXMISgQq9MM/hqdefault.jpg?sqp=-oaymwFBCNACELwBSFryq4qpAzMIARUAAIhCGADYAQHiAQoIGBACGAY4AUAB8AEB-AG2CIACgA-KAgwIABABGGUgXyhVMA8=&rs=AOn4CLC1HXfxzLayoVBdicS5DIUQh9zGcQ",
      "channel": {
        "id": "UCvUzWu1Whyw1FWuLl9GOo_g",
        "title": "ZZang Funny",
        "thumbnail": "https://yt3.ggpht.com/rcZKcfewHTzkauGknat3NeC53rGBofYDbL8AjFkwvsk2fXzM1clht7OTn9-1IIPnmbeZkrNGdxI=s68-c-k-c0x00ffffff-no-rj"
      },
      "viewCountText": "22,668,056 views",
      "viewCountInt": 22668056,
      "publishedTimeText": "4 weeks ago",
      "publishedTime": "2025-01-04T23:12:42.919Z",
      "lengthText": "1:00",
      "lengthSeconds": 60,
      "badges": []
    }
  ],
  "continuationToken": "4qmFsgLtBRIJRkVoYX....",
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current 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"
          },
          "description": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "thumbnail": {
                "type": "string"
              }
            }
          },
          "viewCountText": {
            "type": "string"
          },
          "viewCountInt": {
            "type": "integer"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "publishedTime": {
            "type": "string"
          },
          "lengthText": {
            "type": "string"
          },
          "lengthSeconds": {
            "type": "integer"
          },
          "badges": {
            "type": "array"
          }
        }
      }
    },
    "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."
    }
  }
}