# Post Reef > JSON REST API that turns any public URL — a social-media video (YouTube incl. Shorts, TikTok, Instagram Reels and more), a photo post or carousel, or an ordinary article/webpage — into media files, metadata, transcript and comments, plus an optional JSON object conforming to a JSON Schema you provide. It runs the fetch layer that breaks self-hosted yt-dlp (bot-walls, PO tokens, rotating proxies, TLS impersonation) so cloud IPs are not a problem. Built and run by Francisco Macedo. A web app runs the same pipeline for hands-on testing. ## Facts - Base URL https://postreef.com; every endpoint lives under /v1. Auth: `x-api-key: pr_…` or `Authorization: Bearer pr_…`. Create keys at https://postreef.com/developers/api-keys. - The loop: POST /v1/probe (free, returns title, duration, hasSubtitles, hasComments and the exact price) → POST /v1/extractions (credits debited up-front, refunded in full on failure) → GET /v1/extractions/{id}/result (202 while running, 200 when done). The result's `artifacts` object gives ready-to-fetch URLs for every file (also under GET /v1/extractions/{id}/files/{name}, accepting the api key or a signed-in browser session). Or register a webhook (HMAC-signed) and skip polling. - Pricing: 1 credit = $0.0001. Fresh run = 50-credit base fee + download rates per requested artifact (transcript 10 flat, comments 20 flat, audio 0.2/s, video 0.5/s) + when a schema is set, AI rates per second of video (text 0.5/s, audio 1/s, video 2/s; text is charged once for transcript and/or comments; video includes audio). Article/webpage runs are flat: 100 credits with a schema, 50 without. Photo posts/carousels are flat and per-slide instead of per-second — their reported "duration" is the background track, never billed: 50-credit base + 50 credits flat + 10 credits/slide with a schema; comments still bill at their normal flat rate; transcript/audio/video aren't offered. Identical runs within 30 days are served from cache for free. Unavailable artifacts are refunded. First top-up earns 1000 bonus credits. - Limits: videos longer than 60 minutes are rejected before any debit; at most 2 extractions run per account at once (extra submissions queue); per-endpoint per-minute rate limits are listed in the errors page below. When the platform hides a duration, 300s is debited and the difference refunded. - Inputs for an AI run: any of transcript, comments, audio, video (metadata, thumbnail and description always included). Download-only runs pick artifacts with `parts` and pay no AI rate. - Schemas: 32 predefined (postreef.predefined.recipe.v1, postreef.predefined.workout.v1, postreef.predefined.product_review.v1, …; full list at https://postreef.com/docs/schemas.md) or an inline JSON Schema: top-level object, no type unions, string-only enums, optional = not in `required`. - The result carries `outcome: ok | no_match | uncertain` with a `verdictReason`: the model does not invent data for content that doesn't match the schema. Failed runs (`status: failed`) are refunded; `no_match` is a completed run and is not. ## API - [API overview](https://postreef.com/docs/api.md): Base URL, authentication and the submit → wait → collect loop. - [API quickstart](https://postreef.com/docs/api/quickstart.md): Copy-paste curl, JavaScript and Python examples. - [API reference](https://postreef.com/docs/api/reference.md): Every v1 endpoint, generated from the OpenAPI 3.1 spec. - [Errors & limits](https://postreef.com/docs/api/errors.md): Error envelope, codes, rate limits, idempotency and pagination. - [Webhooks](https://postreef.com/docs/api/webhooks.md): Events, payloads, signature verification, retries. - [MCP server](https://postreef.com/docs/api/mcp.md): Connect Claude, ChatGPT, Cursor or VS Code to Post Reef over MCP. - [API pricing](https://postreef.com/docs/api/pricing.md): Additive pricing for API runs, with a worked example. ## Documentation - [Quickstart](https://postreef.com/docs/index.md): Paste a video URL, pick what to extract, get structured data back. - [What you can extract](https://postreef.com/docs/extractions.md): Inputs, download-only vs AI runs, and what you get back. - [Pricing](https://postreef.com/docs/pricing.md): Credits, base fee, download and AI rates, with worked examples. - [Schemas](https://postreef.com/docs/schemas.md): Ready-made schemas and how to write a custom JSON Schema. - [FAQ](https://postreef.com/docs/faq.md): Short answers to the questions we get most. ## Machine-readable - [OpenAPI 3.1 spec](https://postreef.com/v1/openapi.json): the complete v1 API definition, no auth required. - [llms-full.txt](https://postreef.com/llms-full.txt): every docs page concatenated as one document. ## MCP server - Remote MCP server at https://postreef.com/mcp (Streamable HTTP). OAuth sign-in, or `Authorization: Bearer pr_…` with an API key. Tools: quote, extract, get_extraction, list_extractions, list_schemas, get_profile; same prices, cache and credits as /v1. - Claude Code: `claude mcp add --transport http postreef https://postreef.com/mcp` (add `--header "Authorization: Bearer pr_..."` to use a key). Cursor / VS Code: an http server entry with url https://postreef.com/mcp. Setup: https://postreef.com/docs/api/mcp.md ## Agent skills - [Skills for Claude Code, Cursor and Codex](https://github.com/franciscobmacedo/postreef-skills): transcripts, comments, video-to-JSON and yt-dlp troubleshooting. Install with `npx skills add franciscobmacedo/postreef-skills`.