API Docs

Technical guide for developers

Build applications using Minifetch

Overview

Minifetch provides composable extraction APIs for humans and AI Agents-- making web pages simple to access. Typically for SEO research and AI projects such as AI Agents, RAG pipelines, and building training datasets. The API follows ethical scraping practices, respecting robots.txt and using rate limiting to avoid overloading target websites.

This documentation covers the the main endpoints available for developers. It also covers details about accessing the Minifetch API as well as example data. All API endpoints return responses in JSON format.

The Minifetch API Client has a Quickstart for Javascript/ TypeScript if you're looking to add it to your project quickly.

Features
Use Cases

Payment

This service uses micropayments. Prices for a "fetch" are listed on each API endpoint below. There are two ways to pay. Both of these payment methods work on the homepage or with the Minifetch API client.

1. Credit Card

You can sign up for an account and get started with free credits by visiting the dashboard. Click the "Sign up" button and verify your email address to create your account. Once you are signed in to your account, each successful "Go Fetch!" will be deducted from your credit balance. After that, top up for as little as $2 with your credit card.

2. USDC via x402 on Base or Solana

If you do not wish to sign up for an account or you just prefer to pay with USDC stablecoin on Base or Solana network, you can pay with your crypto wallet. For payment implementation details, see the x402 protocol documentation.

Either way, you always pay as you go. There is no Minifetch account setup fee or monthly fee. We do not charge for explicitly blocked pages or pages that error.

Ways To Access

Minifetch can be accessed from a browser, the Minifetch API client, curl, or AI tools. Pick one that fits your setup.

Browser

Visit the Minifetch homepage or hit any API endpoint URL directly in your browser.

Minifetch API Client NEW

For developers: the minifetch-api client is an NPM package purpose-built for Javascript/ TypeScript. It handles payments automatically. It's the simplest way to integrate Minifetch into your Node.js application.

Curl + API Key

For developers: you can sign up for an account, create an API key and query the API endpoints via curl from your CLI.

curl "https://minifetch.com/api/v1/extract/url-preview?url=https://anthropic.com" \
  -H "Authorization: Bearer [your_api_key]"
Coinbase Agents Wallet (awal)

Agentic Wallets (awal) is Coinbase's dedicated wallet infrastructure for autonomous AI agents. It's the recommended approach for programmatic and agent-to-agent x402 usage: non-custodial, secured in a TEE, with programmable spending limits and gasless trading on Base. Get started:

npx awal

Once your wallet is funded with USDC on Base, your agent can call Minifetch endpoints directly using any x402-compatible client (e.g. @x402/fetch) or via the built-in pay-for-service skill.

npx skills add coinbase/agentic-wallet-skills
Coinbase Payments MCP

The Coinbase Payments MCP gives AI assistants like Claude Desktop a built-in wallet so they can discover and pay for x402 services โ€” including Minifetch โ€” without any code. Install it with one command and sign in with your email; no private key needed.

npx @coinbase/payments-mcp

The installer will walk you through configuring your MCP client (Claude Desktop, Claude Code, Gemini CLI, etc). Once installed, ask your AI assistant: "What x402 services are available?" and it will discover Minifetch on the x402 Bazaar automatically.

๐Ÿค– Agent Skills (SKILL.md)

Task-specific step-by-step guides for AI agents using the Minifetch API:

View all skills →

Base URL

The Minifetch API client will handle this for you. All API requests will be made to:

https://minifetch.com

Endpoint: URL Check (Free)

GET/api/v1/free/preflight/url-check
Price

Free

Use Case

Call this endpoint before the /extract/ endpoints.

Description

This free endpoint checks if a URL is allowed to be crawled according to the website's robots.txt file. Use this before making paid requests to the /extract/ endpoints to avoid spending credits on uncrawlable URLs.

Request Parameters:
Parameter Type Required Description
url string Yes The target URL to check against robots.txt
Example Request:
GET https://minifetch.com/api/v1/free/preflight/url-check?url=https://example.com
Success Response:
{
  "success": true,
  "results": [
    {
      "data": {
        "url": "https://example.com",
        "allowed": true,
        "message": "robots.txt not found, defaulting to allowed",
        "crawlDelay": 1
      }
    }
  ]
}
Status Codes:

Endpoint: Extract URL Preview (Paid)

GET/api/v1/extract/url-preview
GET/api/v1/x402/extract/url-preview
Price

$0.001

Use Cases

AI Agents & RAG Pipelines

Description

This endpoint fetches and extracts a light, token-efficient preview of a URL: title, description, and image (only).

Request Parameters:
Parameter Type Required Description
url string Yes The target URL from which to extract the preview
Example Request:
GET https://minifetch.com/api/v1/extract/url-preview?url=https://github.com
Success Response:
{
  "success": true,
  "results": [
    {
      "data": {
        "requestUrl": "https://github.com", // URL you requested
        "url": "https://github.com/", // Last URL in request chain, if there were redirects
        "title": "GitHub ยท Change is constant. GitHub keeps you ahead. ยท GitHub",
        "description": "Join the world's most widely adopted, AI-powered developer platform where millions of developers, businesses, and the largest open source community build software that advances humanity.",
        "image": "https://images.ctfassets.net/8aevphvgewt8/4pe4eOtUJ0ARpZRE4fNekf/f52b1f9c52f059a33170229883731ed0/GH-Homepage-Universe-img.png",
        "minifetchCache": {
          "hit": "false",
          "cachedAt": "2026-01-26T00:13:43.490Z",
          "expiresAt": "2026-01-26T00:15:43.490Z"
        }
      }
    }
  ]
}
Status Codes:

Endpoint: Extract URL Content (Paid)

GET/api/v1/extract/url-content
GET/api/v1/x402/extract/url-content
Price

$0.002

Use Cases

AI Agents & RAG Pipelines

Description

Extracts a clean, LLM-ready, token-efficient content summary as markdown from a URL. Removes ads, nav, scripts. Much more efficient than raw HTML fetches.

Request Parameters:
Parameter Type Required Description
url string Yes The target URL from which to extract content
includeMediaUrls boolean No If set to "true", includes image and video URLs in the result
Example Request:
GET https://minifetch.com/api/v1/extract/url-content?url=https://apnews.com/article/time-person-of-year-2025-77ec65c6792bc99ec2ce1919c5f421ea&includeMediaUrls=true
Success Response:
{
  "success": true,
  "queryParameters": {
    "includeMediaUrls": "true"
  },
  "results": [
    {
      "data": {
        "requestUrl": "https://apnews.com/article/time- ...etc", // URL you requested
        "url": "https://apnews.com/article/time- ...etc", // Last URL in request chain, if there were redirects
        "summary": "# Time magazine names 'Architects of AI' as its person of the year... etc"
        "mediaUrls": [
          {
            "url": "https://assets.apnews.com/19/66/bc546486408c8595f01753a9fbeb/ap-logo-176-by-208.svg",
            "alt": "AP Logo"
          },
          ...etc
        ],
        "minifetchCache": {
          "hit": "false",
          "cachedAt": "2026-01-26T05:01:37.248Z",
          "expiresAt": "2026-01-26T05:03:37.248Z"
        }
      }
    }
  ]
}
Status Codes:

Endpoint: Extract URL Metadata (Paid)

GET/api/v1/extract/url-metadata
GET/api/v1/x402/extract/url-metadata
Price

$0.002

Use Cases

SEO Research, Content Indexing, Ad Enhancement, Building AI Training Datasets

Description

This endpoint fetches and extracts rich structured metadata from a URL: title, description, meta tags, open graph tags, twitter tags, hreflang, json-ld, citations, images, headings, response headers, and more. The structured output doubles as an instant SEO audit โ€” every field maps directly to a ranking signal or competitive intelligence data point.

Request Parameters:
Parameter Type Required Description
url string Yes The target URL from which to extract metadata
verbosity string No Defaults to "standard". Set to "full" for larger response.
includeResponseBody boolean No If set to true, includes the full HTML response body as string in result.
Example Request:
GET https://minifetch.com/api/v1/extract/url-metadata?url=https://example.com&includeResponseBody=true
Success Response:
{
  "success": true,
  "queryParameters": {
    "verbosity": "standard",
    "includeResponseBody": true
  },
  "results": [
    {
      "data": {
        "requestUrl": "https://example.com", // URL you requested
        "url": "https://example.com", // Last URL in request chain, if there were redirects
        "responseStatusCode": 200,
        "responseHeaders": {},
        "canonical": "",
        "lang": "en",
        "hreflang": [],
        "charset": "utf-8",
        "viewport": "",
        "title": "Example Domain",
        "favicons": [],
        // Additional metadata fields, see "Example Data" section below
      }
    }
  ]
}
Status Codes:

Example Data

To see example responses, check these results:

Extract URL Preview ($0.001 each)

Extract URL Content ($0.002 each)

Extract URL Links ($0.002 each)

Extract URL Metadata ($0.002 each)

Libraries & SDKs

Minifetch.com is the hosted version of a free and open-source npm package called url-metadata that has been serving the NPM community for 10+ years. During that time some users expressed a preference for a hosted service for various reasons, mostly technical hurdles with coding or accidentally triggering blocks from websites when using the open-source package.

For direct integration with your codebase, consider:

minifetch-apiNEW โ€” the official Minifetch API client for Javascript/ Typescript

npm install minifetch-api --save

url-metadata โ€” the open-source npm package (10+ years, 3.6M downloads) that powers Minifetch

npm install url-metadata --save

3.6 Million+ downloads over 10 years.
Add it to your project.

Caching & Rate Limiting

Minifetch implements several measures to ensure responsible and efficient operation:

These measures help us maintain an ethical scraping approach while providing reliable service.

Service Limitations

Minifetch only extracts publicly available metadata and content from pages accessible without authentication and Javascript execution.

What Minifetch does NOT do:

What Minifetch does NOT do currently but may offer in the future as an add-on:

Contact

If you have questions or need assistance:
join our Discord server.

To leave feedback or join the bulk credits waitlist:
use our feedback form.

While you're at it, give us a follow on X.com (Twitter):
@minifetch