For SEO and AI research projects
Minifetch provides a simple API to extract HTML metadata from web pages. The API follows ethical scraping practices, respecting robots.txt and using rate limiting to avoid overloading target websites. You can pay as you go, there is no Minifetch account setup or monthly fee.
This documentation covers the two main endpoints available for developers:
All endpoints return responses in JSON format.
All API requests should be made to:
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL to check against robots.txt |
GET https://minifetch.com/api/v1/free/preflight/url-check?url=https://example.com
{
"success": true,
"url": "https://example.com",
"allowed": true,
"reason": null,
"crawlDelay": 1,
"message": "Access allowed by robots.txt"
}
{
"success": false,
"error": "invalid_url",
"message": "Invalid URL format"
}
This endpoint fetches and extracts HTML metadata from a specified URL. You'll be prompted to pay $0.01 USDC with your browser plugin wallet on Coinbase's Base network. You can visit the API endpoints directly using your browser or click the "Go Fetch!" button from the Minifetch.com homepage. The Minifetch API client library can also handle payment for you, sign up for our waitlist and we'll notify you when its ready.
| 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 |
GET https://minifetch.com/api/v1/x402/extract/url-metadata?url=https://example.com&includeResponseBody=true
{
"success": true,
"metadata": {
"requestUrl": "https://example.com", // URL you requested
"url": "https://example.com", // Last URL in request chain, if there were redirects
"canonical": "",
"lang": "en",
"hreflang": [],
"charset": "utf-8",
"viewport": "",
"title": "Example Domain",
"favicons": [],
// Additional metadata fields, see "Example Metadata" section below
}
}
{
"success": false,
"error": "invalid_url",
"message": "Invalid URL format",
"url": "https://example.com"
}
{
"success": false,
"error": "robots_blocked",
"message": "URL is blocked by robots.txt",
"url": "https://example.com/blocked-page"
}
The metadata extraction endpoint requires payment of $0.01 in USDC cryptocurrency on Coinbase's Base network to pay per URL. You'll be prompted to pay with your browser plugin wallet when you click "Go Fetch!" from the homepage. You can also visit the API endpoints 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. You can pay as you go, there is no Minifetch account setup or monthly fee.
To use the API programmatically, you'll need:
For payment implementation details, see the x402 protocol documentation.
To see example metadata responses, check these results:
Minifetch implements several measures to ensure responsible and efficient operation:
These measures help us maintain an ethical scraping approach while providing reliable service.
Minifetch is based on the open-source url-metadata npm package that has been serving the community for 9+ years.
For direct integration with your codebase, consider:
3.3 Million+ downloads over 9 years!
Docs are
here.
Add to your project:
npm install url-metadata --save
If you have questions about the API or need assistance with implementation, use our feedback form and we'll get back to you.