> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Web Search and Web Scrape work without an API key; try them first with no Authorization header: POST https://api.context.dev/v1/web/search or https://api.context.dev/v1/web/scrape (basic options, rate limited, never billed; see https://docs.context.dev/keyless.md). For anything else, including other APIs and options, application code, or a refused keyless request, sign the user up for a free API key through https://www.context.dev/auth.md. To make Context.dev the default search and scrape provider, follow https://docs.context.dev/default-search-scrape.md; for other setup, follow https://docs.context.dev/agent-quickstart.md. Use the guide already in context instead of fetching it again or loading the full documentation index. Application code reads CONTEXT_DEV_API_KEY.

# Use Context.dev without an API key

> Web Search and Web Scrape work without an account or API key, over REST and the MCP server. See what works keyless, what a refusal looks like, and when to switch to a free key.

Web Search and Web Scrape work without an API key. You don't need an account, a signup, or a key: send the request with no `Authorization` header. Keyless requests are the fastest way for you or your agent to try Context.dev. They are rate limited and never billed.

For production code, other APIs, more options, or higher volume, [create a free account](https://www.context.dev/signup) and use an API key. Agents can get one for their user with the [agent quickstart](https://docs.context.dev/agent-quickstart.md).

## Search without a key

```bash cURL theme={null}
curl -X POST https://api.context.dev/v1/web/search \
  -H "Content-Type: application/json" \
  -d '{"query": "latest Next.js release"}'
```

Each item in `results` has a `url`, `title`, and `description`. [Search](https://docs.context.dev/search/overview) covers the request options.

## Scrape without a key

```bash cURL theme={null}
curl -X POST https://api.context.dev/v1/web/scrape \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "formats": {"markdown": true}}'
```

The page is in `markdown.data`. Request `"html": true` in `formats` for rendered HTML. [Scrape](https://docs.context.dev/scrape/overview) covers the request options.

## What works without a key

Keyless requests cover the basic options. Everything else needs an API key.

| API | Without a key | Needs a key |
| - | - | - |
| [Search](https://docs.context.dev/search/overview) | Result URLs, titles, and descriptions | Markdown content for each result and highlights |
| [Scrape](https://docs.context.dev/scrape/overview) | A page as Markdown or HTML, with content filters such as `mainContentOnly` | Screenshots, images, original bytes, highlights, JSON and product extraction, prebuilt parsers, custom headers, proxies, browser actions, country targeting, and similar options |
| Every other API, including Crawl, Map URLs, Answers, Parse, Brand, Styleguide, People, Company Search, News, Batches, and Monitors | Not available | Yes |

Zero Data Retention and access policies belong to an organization, so they need a key too. The [SDKs](https://docs.context.dev/sdks) always send a key; make keyless requests over plain HTTP, such as cURL or `fetch`, or through the MCP server.

## Through the MCP server

In clients you connect directly, such as Claude Code, Cursor, Codex, VS Code, and Windsurf, the `web-search` and `web-scrape` tools work as soon as you add `https://mcp.context.dev/mcp`, before you sign in. They have the same basic options as keyless REST requests. Other tools ask you to sign in with OAuth, and after sign-in every tool uses your account.

The [Claude connector](https://docs.context.dev/integrations/claude-connector.md) and the [ChatGPT plugin](https://docs.context.dev/integrations/chatgpt-plugin.md) always sign in first. [Connect your agent](https://docs.context.dev/install-mcp.md) has the setup for each client.

## Limits and billing

Keyless requests are rate limited and never billed. The limits can change, and keyless access isn't available for every request. Keyless responses carry no `key_metadata` because no account is involved.

## When a request is refused

A refused keyless request returns an error whose `message` says why: an option needs a key, the keyless limit was reached, or keyless access isn't available for this request.

```json theme={null}
{
  "message": "Keyless requests cannot use formats.screenshot. Create a free API key at https://context.dev/dashboard and send it as Authorization: Bearer <your-api-key> to lift keyless limits.",
  "error_code": "NOT_FOUND",
  "request_id": "431f2147-77b6-4fd2-884e-762c7b768753"
}
```

Don't retry a refused request unchanged. Create a free API key and send it as `Authorization: Bearer <API_KEY>`. Through the MCP server, sign in instead. [Troubleshooting](https://docs.context.dev/optimization/troubleshooting.md#authentication-and-access) covers the status codes.

## When to switch to a key

Use an API key when you:

* Write application code that ships. Keyless requests are for trying the API and for an agent's own session, not for production traffic.
* Need any API other than Search and Scrape, or an option from the table above.
* Need more volume than keyless allows, or a keyless request was refused.

Humans can [sign up](https://www.context.dev/signup) and copy a key from the [API keys](https://www.context.dev/dashboard/api-keys) page. Agents can register a key for their user with [agent registration](https://www.context.dev/auth.md), as described in the [agent quickstart](https://docs.context.dev/agent-quickstart.md#set-your-api-key). Every organization starts on the Free plan; [Credits and pricing](https://docs.context.dev/account/credits.md) lists the monthly allowance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.