Documentation
Realtime Fetch lets your AI tools read live web pages. Install it in the tool you use, or call the HTTP API from your own code. Both use the same account.
Install
Every install uses the same account. Choose Sign up and sign in with Google or GitHub: your first 100 scrapes are free and need no card. Your API key is shown once, right after you sign up. It starts with rt_live_; if you miss it, rotate the key on the account page to get a new one.
Every tool below signs in through your browser, so there is no key to copy or set. If a tool's sign-in does not work for you, or it runs on a machine with no browser, send your API key instead.
Claude Code
The plugin does two things: any URL you paste in a prompt is fetched automatically and added to Claude's context (up to 3 per prompt), and Claude gets a scrape tool it can call for other pages.
Run these inside Claude Code:
/plugin marketplace add madchops1/realtime
/plugin install realtime@realtimeThen run /mcp, choose realtime and sign in. A Realtime Fetch page opens in your browser: sign in and choose Allow. Claude Code keeps its own token and never sees your API key. If you have no account yet, signing in here creates one, with 100 free scrapes and no card.
Once signed in, Claude reads pasted links with the scrape tool. If REALTIME_API_KEY is also set, the plugin fetches them itself before Claude starts, which saves a step.
The plugin also adds two commands and two skills:
| Name | What it does |
|---|---|
/realtime:setup | Checks the connection and gives the sign-in steps if it is missing. |
/realtime:scrape <url> | Reads one page now. Add a question after the URL to have it answered from the page. |
realtime skill | Teaches Claude when to use scrape and how to handle JavaScript pages, stale copies and long pages. |
read-docs skill | Answers a question from a library's live documentation, reading at most 5 pages. |
If you only want the scrape tool, without automatic link reading, add the server on its own instead and sign in the same way:
claude mcp add --transport http realtime https://api.realtimefetch.com/mcpClaude (web and desktop)
- Open Customize → Connectors → Add → Add custom connector. On a Team or Enterprise plan an owner adds it first, under Organization settings → Connectors → Add → Custom → Web.
- Name it
Realtime Fetchand enter the URLhttps://api.realtimefetch.com/mcp. - Choose Connect. A Realtime Fetch page opens in your browser.
- Sign in, or paste your API key, and choose Allow. Claude can now call
scrapein any chat where the connector is enabled.
ChatGPT
- Open chatgpt.com/plugins, choose +, then Add custom MCP server.
- Name it
Realtime Fetchand enter the server URLhttps://api.realtimefetch.com/mcp. - Leave authentication on OAuth, tick I understand and want to continue and choose Create as a plugin.
- When the Realtime Fetch page opens, sign in, or paste your API key, and choose Allow.
- Install the plugin, start a new chat, type
@and choose Realtime Fetch.
OpenAI decides which ChatGPT plans can add a custom MCP server, and it is done on the web, not in the mobile apps. If you do not see the option, your plan or workspace does not allow it yet.
The ChatGPT desktop app has its own server list, shared with Codex. See Codex.
How signing in works
A tool that signs in through your browser connects with OAuth. You approve the connection once on a realtimefetch.com page, by signing in or pasting your API key, and the app receives its own access token. The app never sees your key, and its token can only read pages. It cannot rotate your key or open your billing.
Pages a connected app reads are billed to your account like any other scrape. To disconnect every connected app at once, rotate your key on the account page; each app then has to sign in again.
Cursor
Add the server to ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one. Add to Cursor in one click, or paste this yourself:
{
"mcpServers": {
"realtime": {
"url": "https://api.realtimefetch.com/mcp"
}
}
}Then open Cursor's MCP settings. realtime is listed as needing authentication: choose it, and on the Realtime Fetch page that opens, sign in and choose Allow.
VS Code (GitHub Copilot)
Add the server to a .mcp.json file in your workspace root, or to ~/.copilot/mcp-config.json for every workspace.
{
"mcpServers": {
"realtime": {
"type": "http",
"url": "https://api.realtimefetch.com/mcp"
}
}
}You can also run MCP: Add Server from the Command Palette, choose HTTP and enter the same URL. When the server starts, VS Code asks to sign in to it: allow that (or choose Authenticate in the server's actions), then sign in on the Realtime Fetch page and choose Allow.
Codex
Add the server, then sign in:
codex mcp add realtime --url https://api.realtimefetch.com/mcp
codex mcp login realtimeThe second command opens the Realtime Fetch page in your browser: sign in and choose Allow. On a machine with no browser, add --no-browser and follow the prompts.
Or add it to ~/.codex/config.toml yourself, then run the login command:
[mcp_servers.realtime]
url = "https://api.realtimefetch.com/mcp"The ChatGPT desktop app and the Codex IDE extension share that configuration. To add the server from the desktop app, open Settings → MCP servers → Add server, choose Streamable HTTP and enter the URL. Save, choose Restart, then choose Authenticate next to the server.
Gemini CLI
gemini mcp add --transport http realtime https://api.realtimefetch.com/mcpThen start Gemini CLI and run /mcp auth realtime. The Realtime Fetch page opens in your browser: sign in and choose Allow. This needs a browser on the same machine.
Or add it to ~/.gemini/settings.json. Gemini CLI uses httpUrl for this kind of server:
{
"mcpServers": {
"realtime": {
"httpUrl": "https://api.realtimefetch.com/mcp"
}
}
}Windsurf
Windsurf sends your API key, so set REALTIME_API_KEY first. Open Settings → Tools → Windsurf Settings → Add Server, or edit mcp_config.json directly, then refresh the server list.
{
"mcpServers": {
"realtime": {
"serverUrl": "https://api.realtimefetch.com/mcp",
"headers": { "Authorization": "Bearer ${env:REALTIME_API_KEY}" }
}
}
}Use your API key instead
Any tool can send your API key in place of the browser sign-in. The key is shown once, right after you sign up; if you did not keep it, rotate it on the account page. Set it in your shell profile (~/.zshrc or ~/.bashrc) and restart the tool:
export REALTIME_API_KEY="rt_live_..."Then add the key to the tool's server entry:
| Tool | What to add |
|---|---|
| Claude Code | --header "Authorization: Bearer $REALTIME_API_KEY" on the claude mcp add command |
| Cursor | "headers": { "Authorization": "Bearer ${env:REALTIME_API_KEY}" } |
| VS Code | "headers": { "Authorization": "Bearer ${REALTIME_API_KEY}" }. Only the braced form is expanded. |
| Codex | --bearer-token-env-var REALTIME_API_KEY on codex mcp add, or bearer_token_env_var = "REALTIME_API_KEY" in config.toml |
| Gemini CLI | --header "Authorization: Bearer $REALTIME_API_KEY" on gemini mcp add |
Any other MCP client
Point it at https://api.realtimefetch.com/mcp over Streamable HTTP. A client that supports OAuth needs nothing else: it opens the sign-in page for you. Otherwise send your key as Authorization: Bearer rt_live_... or in an x-api-key header. A client that only speaks stdio can bridge with mcp-remote.
Claude Code plugin settings
The Claude Code plugin reads these environment variables:
| Variable | Description |
|---|---|
REALTIME_API_KEY | Optional. With it set, pasted links are fetched before Claude starts. Without it, sign in through /mcp and Claude reads them with the scrape tool. |
REALTIME_HOOK | Set to off to disable automatic reading of URLs in prompts. The scrape tool stays available. |
REALTIME_HOOK_MAX_URLS | How many URLs to fetch per prompt. Default 3. |
REALTIME_HOOK_MAX_CHARS | How many characters of each page to add to context. Default 20000. |
# ~/.zshrc or ~/.bashrc, all optional
export REALTIME_API_KEY="rt_live_..." # fetch pasted links before Claude starts
export REALTIME_HOOK=off # turn off automatic fetching of pasted URLs
export REALTIME_HOOK_MAX_URLS=3 # URLs fetched per prompt (default 3)
export REALTIME_HOOK_MAX_CHARS=20000 # characters of each page added to context (default 20000)Each page the plugin fetches is one scrape and is billed like any other. If a page cannot be fetched, the prompt still goes through and Claude is told which URL failed.
API quickstart
- Get a key. Choose Sign up, sign in with Google or GitHub, and copy the key from the account page you land on. It starts with
rt_live_and is shown once. No card is needed for your first 100 scrapes. - Store it in an environment variable:
Shell
export REALTIME_API_KEY="rt_live_..." - Scrape a page:
curl
curl https://api.realtimefetch.com/v1/scrape \ -H "Authorization: Bearer $REALTIME_API_KEY" \ -H "content-type: application/json" \ -d '{"url": "https://quotes.toscrape.com/js/"}'
The response is JSON with the page's main content as markdown in data.markdown.
Authentication
Send your key with every request, either as a bearer token in the Authorization header or in an x-api-key header.
# Either header works
curl https://api.realtimefetch.com/v1/scrape \
-H "Authorization: Bearer rt_live_..." \
-H "content-type: application/json" \
-d '{"url": "https://example.com"}'
curl https://api.realtimefetch.com/v1/scrape \
-H "x-api-key: rt_live_..." \
-H "content-type: application/json" \
-d '{"url": "https://example.com"}'Keep the key on your server or in your own environment. Do not put it in code that runs in a browser. If a key leaks, rotate it on the account page; the old key stops working immediately.
Scrape a page
POST https://api.realtimefetch.com/v1/scrape
Send a JSON body with the URL and any options. The page is fetched now (or served from a cache up to 5 minutes old, unless you say otherwise) and returned in the formats you asked for.
curl
curl https://api.realtimefetch.com/v1/scrape \
-H "Authorization: Bearer $REALTIME_API_KEY" \
-H "content-type: application/json" \
-d '{
"url": "https://example.com",
"formats": ["markdown", "links"],
"render": "auto",
"onlyMainContent": true,
"maxAge": 0
}'JavaScript
const res = await fetch('https://api.realtimefetch.com/v1/scrape', {
method: 'POST',
headers: {
authorization: `Bearer ${process.env.REALTIME_API_KEY}`,
'content-type': 'application/json',
},
body: JSON.stringify({ url: 'https://example.com', formats: ['markdown', 'links'] }),
});
const payload = await res.json();
if (!payload.success) {
throw new Error(`${payload.error.code}: ${payload.error.message}`);
}
console.log(payload.data.markdown);Python
import os
import requests
res = requests.post(
"https://api.realtimefetch.com/v1/scrape",
headers={"Authorization": f"Bearer {os.environ['REALTIME_API_KEY']}"},
json={"url": "https://example.com", "formats": ["markdown", "links"]},
timeout=60,
)
payload = res.json()
if not payload["success"]:
raise RuntimeError(f"{payload['error']['code']}: {payload['error']['message']}")
print(payload["data"]["markdown"])Request fields
| Field | Type | Default | Description |
|---|---|---|---|
url | string | required | Absolute http or https URL of a public page. |
formats | string[] | ["markdown"] | Which representations to return. Any of markdown, html (cleaned HTML the markdown was made from), rawHtml (the page as fetched) and links. At least one. |
render | string | "auto" | auto tries plain HTTP first and uses a browser if the page comes back empty. always forces the browser. never skips it. |
onlyMainContent | boolean | true | Strip navigation, footers and other page chrome. Set false to get the whole page. |
waitFor | integer | 0 | Extra milliseconds to wait after load when rendering in the browser, for late-rendering pages. 0 to 15000. |
timeout | integer | 45000 | Overall time budget in milliseconds. 1000 to 55000. |
maxAge | integer | 300 | Accept a cached copy up to this many seconds old. 0 forces a fresh fetch. |
headers | object | none | Extra request headers to send to the target site, as string keys and string values. |
Response fields
Every response is JSON. A success looks like this, with the result in data:
{
"success": true,
"data": {
"url": "https://example.com",
"finalUrl": "https://example.com/",
"statusCode": 200,
"contentType": "text/html; charset=utf-8",
"renderedWith": "http",
"fetchedAt": "2026-12-02T20:30:16.982Z",
"cached": false,
"elapsedMs": 212,
"metadata": { "title": "Example Domain", "language": "en" },
"markdown": "This domain is for use in documentation examples without needing permission. …",
"links": ["https://iana.org/domains/example"]
}
}| Field | Type | Description |
|---|---|---|
url | string | The URL you asked for. |
finalUrl | string | The URL after redirects. |
statusCode | integer | HTTP status the target site answered with. |
contentType | string | Content type the target site sent. |
renderedWith | string | How the page was fetched: http, browser or unblocker (a fallback network route). |
fetchedAt | string | ISO 8601 time the page was fetched. |
cached | boolean | true if this result came from the cache. Cached results are not charged. |
elapsedMs | integer | Time this request took, in milliseconds. |
metadata | object | What the page declares about itself. Each is present only when found: title, description, language, canonicalUrl, siteName, publishedTime. |
markdown | string | Main content as markdown. Present when requested in formats. |
html | string | Cleaned HTML. Present when requested. |
rawHtml | string | The page as fetched (after JavaScript ran, if a browser was used). Present when requested. |
links | string[] | Links found on the page. Present when requested. |
A page that answers with an error status, such as a 404, is still a successful API call: you get "success": true with statusCode set to 404 and whatever the site returned. Check statusCode if that matters to you. These responses are not charged.
JSON, plain text and XML responses are returned as text in markdown. Binary content such as PDFs and images is not supported yet.
Errors
When a request fails, the HTTP status is 4xx or 5xx and the body has this shape:
{
"success": false,
"error": {
"code": "URL_BLOCKED",
"message": "Host localhost is not a public hostname"
}
}| Code | HTTP | Meaning |
|---|---|---|
UNAUTHORIZED | 401 | The API key is missing or not valid. |
TRIAL_ENDED | 402 | Your free scrapes are used up and there is no card on file. Add one on the account page. |
PAYMENT_REQUIRED | 402 | The subscription is not active, for example after a failed payment or cancellation. Fix it from the billing portal on the account page. |
INVALID_REQUEST | 400 | The request body is not valid. The message names the field. |
URL_BLOCKED | 400 | The URL points at a private or internal address, which is never fetched. |
UNSUPPORTED_CONTENT | 415 | The page's content type cannot be converted to text. |
RATE_LIMITED | 429 | Too many requests this minute for this key. Wait and retry. |
QUOTA_EXCEEDED | 429 | The monthly scrape limit for this key has been reached. |
BLOCKED | 502 | The target site refused the request. Not charged. |
SITE_RATE_LIMITED | 502 | The target site answered "too many requests". Wait a minute, then request one page from that site at a time. Not charged. |
FETCH_FAILED | 502 | The page could not be fetched, for example a DNS or connection failure. |
TIMEOUT | 504 | The page did not load within the time budget. Try a larger timeout. |
INTERNAL | 500 | Something went wrong on our side. Retry, and email support if it persists. |
No error response is charged.
MCP endpoint
Every install connects to this endpoint, a Model Context Protocol server with one tool. The Claude Code plugin also reads pasted links through the HTTP API.
- URL:
https://api.realtimefetch.com/mcp - Transport: Streamable HTTP
- Authentication: your key as
Authorization: Bearer rt_live_...or in anx-api-keyheader, or OAuth 2.1 for clients that sign in through a browser - Tool:
scrape
Per-tool configuration is under Install.
OAuth
A request to /mcp without credentials answers 401 with a WWW-Authenticate header that points at the discovery document, so a compliant client needs only the server URL.
| Endpoint | Purpose |
|---|---|
/.well-known/oauth-protected-resource | Protected resource metadata (RFC 9728). |
/.well-known/oauth-authorization-server | Authorization server metadata (RFC 8414). |
/oauth/register | Dynamic client registration (RFC 7591). |
/oauth/authorize | The sign-in page. Authorization code flow; PKCE with S256 is required. |
/oauth/token | Exchanges a code or a refresh token. Access tokens last one hour; refresh tokens rotate on every use. |
/oauth/revoke | Revokes a token (RFC 7009). |
Redirect URIs must be https, http on localhost, or an app's own scheme. The only scope is scrape.
The scrape tool takes these arguments:
| Argument | Type | Description |
|---|---|---|
url | string | Required. Absolute http(s) URL of the page to read. |
render | string | auto (default), always or never. |
onlyMainContent | boolean | Strip navigation and page chrome. Default true. |
includeLinks | boolean | Also list the links found on the page. |
fresh | boolean | Bypass the cache and fetch the page again. |
maxChars | integer | Cap on returned markdown characters. Default 50000; 500 to 400000. |
Each successful tool call is billed as one scrape, on the same rules as the HTTP API.
Billing
- Your first 100 scrapes are free and need no card. They do not expire.
- After that, one plan: $0.01 per successful scrape. No monthly fee and no minimum.
- The price is the same whether the page needed a plain request or a real browser, and whichever tool asked for it.
- You are charged only when a scrape returns the page. These are free: failed scrapes (any error response), target responses with HTTP status 400 or above, and cached repeats (
"cached": true). - When the free scrapes run out, scraping pauses until you add a card on the account page. Usage is then billed monthly in arrears through Stripe. Until a card is added, the rate limit is 20 requests per minute.
- Cancel any time from the billing portal, reached from the account page. The account page also shows this month's scrape count and estimated cost.
Limits
| Limit | Default |
|---|---|
| Requests per minute, per key | 120 |
| Scrapes per month, per key | 50,000 |
Time budget per scrape (timeout) | 45 seconds by default, 55 seconds at most |
Extra browser wait (waitFor) | 15 seconds at most |
| Cache lifetime | 5 minutes |
To raise the per-minute or monthly limit, email support@realtimefetch.com.
Only public pages can be fetched. Use of the service is subject to the acceptable use policy.