For SEO research and AI projects

API Docs

Technical guide for developers

Build applications using Minifetch

Overview

Minifetch provides composable extraction APIs that humans and AI Agents can autonomously discover, orchestrate, and pay for— making web pages simple to access. The API follows ethical scraping practices, respecting robots.txt and using rate limiting to avoid overloading target websites. You can pay-as-you-go with x402 micropayments in USDC, typically for SEO research and AI projects such as AI Agents, RAG pipelines, and building training datasets. There is no Minifetch account setup or monthly fee.

This documentation covers the the main endpoints available for developers. All endpoints return responses in JSON format.

Use Cases
Enterprise Use Cases
Features

Payment

This service uses the x402 protocol for micropayments with USDC on Coinbase's Base network or Solana. You can pay as you go—there is no Minifetch account setup or monthly fee. For payment implementation details, see the x402 protocol documentation.

What You'll Need
Browser

You can use our homepage or visit the API endpoints directly in your browser. It's free to check if a URL is fetchable using the "Check URL" button on the Minifetch.com homepage. For paid endpoints, you'll be prompted to pay with your browser plugin wallet.

API Client

For programmatic access, we're building an API client library that handles x402 payments for you. Sign up for the waitlist and we'll notify you when it's ready.

MCP for AI

We're also working on MCP (Model Context Protocol) integration so AI agents can use Minifetch directly. Stay tuned!

Base URL

All API requests should 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 extraction endpoints

This free endpoint checks if a URL is allowed to be fetched according to the website's robots.txt file. Use this before making paid requests to avoid spending extra on un-fetchable URLs. This ensures ethical scraping that respects robots.txt and site policies so you can sleep better at night. You can visit the API endpoint directly using your browser or click the "Check URL" button from the Minifetch.com homepage. The Minifetch API client library will also handle payment for you, sign up for our waitlist and we'll notify you when its ready.

Request Parameters:
Parameter Type Required Description
url string Yes The 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,
  "queryParameters": {"url": ["https://example.com"]},
  "results": [
    {
      "url": "https://example.com",
      "allowed": true,
      "message": "robots.txt not found, defaulting to allowed",
      "crawlDelay": 1
    }
  ]
}
Status Codes:

Endpoint: Extract URL Metadata (Paid)

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

$0.002 USDC

Use Cases

SEO Research, Content Indexing, Building AI Training Datasets

This endpoint fetches and extracts rich structured metadata from a URL: title, description, og/twitter tags, json-ld, images, headings, response headers, and more. You can visit the API endpoint directly using your browser or click the "Go Fetch!" button from the Minifetch.com homepage. The Minifetch API client library will also handle payment for you, sign up for our waitlist and we'll notify you when its ready.

Request Parameters:
Parameter Type Required Description
url string Yes The URL from which to extract metadata
includeResponseBody boolean No If set to "true", includes the full HTML response body in the result
Example Request:
GET https://minifetch.com/api/v1/x402/extract/url-metadata?url=https://example.com&includeResponseBody=true
Success Response:
{
  "success": true,
  "queryParameters": {
    "url": ["https://example.com"],
    "includeResponseBody": true
  },
  "results": [
    {
      "metadata": {
        "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 Metadata" section below
      }
    }
  ]
}
Status Codes:

Endpoint: Extract URL Preview (Paid)

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

$0.001 USDC

Use Cases

AI Agents & RAG Pipelines

This endpoint fetches and extracts a light, token-efficient preview of a URL: title, description, and image (only). You can visit the API endpoint directly using your browser. The Minifetch API client library will also handle payment for you, sign up for our waitlist and we'll notify you when its ready.

Request Parameters:
Parameter Type Required Description
url string Yes The URL from which to extract the preview
Example Request:
GET https://minifetch.com/api/v1/x402/extract/url-preview?url=https://example.com
Success Response:
{
  "success": true,
  "queryParameters": {
    "url": ["https://example.com"]
  },
  "results": [
    {
      "metadata": {
        "requestUrl": "https://example.com", // URL you requested
        "url": "https://example.com", // Last URL in request chain, if there were redirects
        "title": "Example Domain",
        "description": "",
        "image": ""
      }
    }
  ]
}
Status Codes:

Endpoint: Extract URL Content (Paid)

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

$0.002 USDC

Use Cases

AI Agents & RAG Pipelines

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. You can visit the API endpoint directly using your browser. The Minifetch API client library can also handle payment for you, sign up for our waitlist and we'll notify you when its ready.

Request Parameters:
Parameter Type Required Description
url string Yes The 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/x402/extract/url-content?url=https://apnews.com/article/time-person-of-year-2025-77ec65c6792bc99ec2ce1919c5f421ea&includeMediaUrls=true
Success Response:
{
  "success": true,
  "queryParameters": {
    "url": ["https://apnews.com/article/time- ...etc"],
    "includeMediaUrls": "true"
  },
  "results": [
    {
      "content": {
        "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
        ]
      }
    }
  ]
}
Status Codes:

Example Data

To see example responses, check these results:

Extract URL Metadata ($0.002 each) SEOAI

Extract URL Links ($0.002 each) SEOAI

Extract URL Preview ($0.001 each) AI

Extract URL Content ($0.002 each) AI

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.

Libraries & SDKs

Minifetch.com is the hosted version of a free and open-source npm package called url-metadata that has been serving the 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:

3.6 Million+ downloads over 10 years.
Docs are here. Add to your project:

npm install url-metadata --save

Need help?

If you have questions about the API or need assistance with implementation, use our feedback form and we'll get back to you.