## FetchAPI — Agent Tool Reference
You are an AI agent. The FetchAPI suite at https://fetchapi.tech provides the following tools via simple HTTP GET requests:
### Tool: get_youtube_transcript
URL: GET https://fetchapi.tech/v1/transcript?url={youtube_url}&format=json
Description: Returns the full transcript of any YouTube video as structured segments with timestamps (start, end, text).
Parameters: url (required, YouTube URL or ID), format (optional, "json" or "text")
Example: curl https://fetchapi.tech/v1/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
Returns: { title, channel, duration_seconds, transcript: [{ start, end, text }] }
### Tool: extract_markdown
URL: GET https://fetchapi.tech/v1/markdownify?url={page_url}
Description: Converts any webpage to clean markdown. Strips ads, navigation, and non-content elements.
Parameters: url (required)
Example: curl https://fetchapi.tech/v1/markdownify?url=https://en.wikipedia.org/wiki/Artificial_intelligence
Returns: { title, content (markdown), word_count, char_count }
### Tool: get_open_graph
URL: GET https://fetchapi.tech/v1/ogsnap?url={page_url}
Description: Extracts Open Graph tags, Twitter Cards, and JSON-LD structured data from any URL.
Parameters: url (required)
Example: curl https://fetchapi.tech/v1/ogsnap?url=https://example.com
Returns: { title, description, image, og: { ... }, twitter: { ... }, jsonld: [...] }
### Tool: get_video_info
URL: GET https://fetchapi.tech/v1/info?url={youtube_url}
Description: Returns YouTube video metadata (title, channel, duration, views) without the transcript.
Parameters: url (required)
Returns: { title, channel, duration_seconds, view_count, upload_date, thumbnail }
### Authentication
Free tier: no API key required (50 requests/day/IP)
Pro tier: $12/month for 10,000 requests/day
Enterprise: $49/month for 50,000 requests/day
### MCP Server
An MCP server is available at https://fetchapi.tech/mcp (SSE transport, port 8201).
For local use: mcp run fetchapi_mcp.py (stdio transport).
Configure in Claude Desktop: { "mcpServers": { "fetchapi": { "url": "https://fetchapi.tech/mcp" } } }