# SocialFetch YouTube Hashtag Search

> SocialFetch YouTube Hashtag Search is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-14).

Search YouTube for videos associated with a given hashtag, with optional filtering by content type and pagination support.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/youtube/search/hashtags
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-youtube-hashtag-search-9355d95a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iEzr4NpHy3IMNs7b5aW6i

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability socialfetch-youtube-hashtag-search-9355d95a
```

Example prompt: Can you search YouTube for videos tagged with #AIart and show me the results — include both regular videos and Shorts?

## When to prefer this

Use this endpoint when you need to discover YouTube videos associated with a specific hashtag, especially for trend monitoring, content research, or social listening on YouTube. Prefer this over generic YouTube search APIs when hashtag-based filtering is the primary axis. Use the 'shorts' type filter when you specifically want short-form content.

## Known failure modes

- Invalid or empty hashtag returns an error
- Expired or invalid pagination cursor returns an error or empty results
- Rate limiting or payment failure returns 402 or 429 status
- Hashtag with no YouTube results returns an empty list
- Overly long hashtag (exceeding 256 chars) is rejected with a validation error

## How this service works

Search YouTube content by hashtag.

## Output

A list of YouTube videos matching the specified hashtag, including video metadata such as titles, thumbnails, view counts, channel info, and URLs. A pagination cursor may be returned to fetch additional pages of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "hashtag"
     ],
     "properties": {
      "type": {
       "enum": [
        "all",
        "shorts"
       ],
       "type": "string",
       "description": "Optional content filter."
      },
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Opaque pagination cursor returned by a previous response."
      },
      "hashtag": {
       "type": "string",
       "maxLength": 256,
       "minLength": 1,
       "description": "Hashtag to search for. A leading # is optional."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/socialfetch-youtube-hashtag-search-9355d95a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
