# Context.dev search API in searchSDK

> How searchSDK calls the Context.dev search API: supported options, result fields, pricing and cost source, limits and sources, from the registry.

Source: https://searchsdk.dev/providers/context

Not verified against the live API yet. Mapped from Context.dev's public docs, read 2026-11-24.

- Id: `context`
- Key: `CONTEXT_DEV_API_KEY`
- Search: yes
- Contents: yes

## Search

`POST https://api.context.dev/v1/web/search`

### Request options

- maxResults: Yes
- includeDomains: Yes
- excludeDomains: Yes
- recency: Yes
- startDate: No
- endDate: No
- country: Yes
- language: Yes (unverified)
- depth: No

Provider options (providerOptions): `markdownOptions`, `highlightsOptions`, `descriptionMaxCharacters`, `timeoutOpts`, `zdr`, `policies`, `tags`

### Result fields

- url: Yes
- title: Yes
- excerpts: Yes, a page description
- publishedAt: No
- author: No

Kept in providerFields: `relevance`

### Pricing

- Cost: Reported by the API, in credits at $0.002 each (unverified)
- Plan: Developer
- Per 10 results: $0.002
- Credit: $0.002
- Highest documented rate: Developer overage is $3 per 1,000 credits, above the plan's $2 per 1,000.
- Price-changing options: highlightsOptions

1 credit per 10 returned results, rounded up. Developer is $20 for 10,000 credits; overage is $3 per 1,000; larger plans cost less per credit.

Pricing source: https://www.context.dev/pricing (read 2026-11-24)

### Limits

- Results per query: 100
- Query length: 500 (unverified)
- Included domains: 100
- Excluded domains: 100
- Date filter basis: published (unverified)

### Rate limits

- Free: 2 concurrent requests, per organization
- Free: 10 requests per minute, per organization
- Developer: 10 concurrent requests, per organization
- Pro: 100 concurrent requests, per organization
- Growth: 250 concurrent requests, per organization
- Scale: 500 concurrent requests, per organization

## Contents

`POST https://api.context.dev/v1/web/scrape`

### Request options

- urls: Yes

Provider options (providerOptions): `sharedParams`, `markdownParams`, `maxAgeMs`, `timeoutOpts`, `zdr`, `tags`

### Page fields

- url: Yes (unverified)
- finalUrl: No
- title: Yes
- content: Yes
- publishedAt: Yes
- author: Yes
- errorCode: Yes (unverified)
- errorMessage: Yes (unverified)

### Pricing

- Cost: Reported by the API, in credits at $0.002 each
- Plan: Developer
- Per page: $0.002
- Credit: $0.002 (unverified)
- Highest documented rate: Developer overage is $3 per 1,000 credits, above the plan's $2 per 1,000.
- Price-changing options: sharedParams

1 credit per scrape when at least one output succeeds; a target 404 is still charged. Browser actions make it 2.

Pricing source: https://www.context.dev/pricing (read 2026-11-24)

### Limits

- URLs per request: 1
- Content format: markdown

### Rate limits

- Free: 2 concurrent requests, per organization
- Free: 10 requests per minute, per organization
- Developer: 10 concurrent requests, per organization

## Unverified

- Search: date filter basis (`/search/dateBasis`): freshness says 'published within this window'; results carry no date field to check it.
- Search: limit maxQueryLength (`/search/limits/maxQueryLength`): The 500 limit's unit (characters, code points or bytes) is not stated; runtimes count code points.
- Search: option language (`/search/request/params/language`): languages accepts a fixed list of codes; codes outside it are passed through and rejected by the provider.
- Search: reported cost (`/search/cost/reported`): key_metadata is optional in the 200 schema; when absent, cost is computed from pricing.
- Contents: page field url (`/contents/response/pages/0/fields/url`): Live check 2026-11-25: top-level url echoed the requested URL and metadata.sourceUrl was absent. Whether url is the requested or the post-redirect URL is untested.
- Contents: price creditUsd (`/contents/pricing/creditUsd`): Credit price depends on plan; the Developer list price is used.
- Search: price costOptions highlightsOptions (`/search/pricing/costOptions/highlightsOptions`): The source schema says enabled highlights cost 1 extra credit per 10 results; the pricing page does not, so setting highlightsOptions makes a computed cost unknown.
- Contents: price costOptions sharedParams (`/contents/pricing/costOptions/sharedParams`): Credits docs (read 2026-11-25) charge 2 credits for a scrape with browser actions; which option object carries them is not stated, so sharedParams makes the price unknown.
- Contents: page mapping (`/contents/response/pages/1`): Credits docs charge a target 404; whether it arrives as markdown.success false (mapped failed, not billable) is not stated. The reported credits_consumed still gives the real cost when present.
- Terms (`/terms`): Terms reading taken from the 2026-11-24 recon, not re-read for this spec.

## Sources

- https://docs.context.dev/api-reference/web-scraping/search.md: search request, response, status codes (OpenAPI 3.1) (read 2026-11-24)
- https://docs.context.dev/api-reference/web-scraping/scrape.md: scrape request, response, metadata (read 2026-11-24)
- https://docs.context.dev/search/overview.md: numResults range, relevance, partial results (read 2026-11-24)
- https://docs.context.dev/account/credits.md: credit costs and when requests are charged (read 2026-11-24)
- https://www.context.dev/pricing: plan prices per credit (read 2026-11-24)
- https://docs.context.dev/optimization/rate-limits.md: concurrency and per-minute limits, 429 headers (read 2026-11-24)

Provider names are trademarks of their respective owners. searchSDK is not affiliated with them.
