# extract-youtube-ids-from-page

> extract-youtube-ids-from-page is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Fetches a web page URL and returns all YouTube video IDs found in the page text and markup, deduplicated with counts (up to 300 items).

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/extract/youtube-ids?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-youtube-ids-from-page-982a14ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MOzoK4KoGul52JAQXDeWN

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 extract-youtube-ids-from-page-982a14ea
```

Example prompt: Can you pull all the YouTube video IDs from this page for me — https://example.com/videos — and tell me how many times each one appears?

## When to prefer this

Choose this endpoint when you need to quickly discover all YouTube video IDs embedded or linked on a specific web page without writing your own HTML parser. It is ideal for auditing content, researching video usage, or feeding downstream YouTube API lookups. Prefer it over generic scraping tools when the specific extraction target is YouTube IDs and you want deduplication and counts out of the box.

## Known failure modes

- Page URL is unreachable or returns a non-200 HTTP status — no IDs returned
- Page has no YouTube IDs in text or markup — returns empty list
- Page is behind authentication or a JavaScript-only render wall — IDs in dynamic content may be missed
- Rate limiting or timeout on the target URL — fetch may fail
- More than 300 unique YouTube IDs on a page — only first 300 returned

## How this service works

Extract youtube ids from a web page: fetches the URL and returns every youtube ids found in the page text and markup (deduplicated, with counts and up to 300 items), so an agent gets the values without parsing HTML. $0.01 per page.

## Output

A deduplicated list of up to 300 YouTube video IDs found in the page text and HTML markup, each accompanied by an occurrence count indicating how many times it appeared on the page.

## 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",
     "properties": {}
    }
   },
   "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/extract-youtube-ids-from-page-982a14ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from page.intel.rallylive.ca](https://www.zero.xyz/host/page.intel.rallylive.ca/llms.txt)
