# Perplexity search API in searchSDK

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

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

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

- Id: `perplexity`
- Key: `PERPLEXITY_API_KEY`
- Search: yes
- Contents: yes

## Search

`POST https://api.perplexity.ai/search`

### Request options

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

Provider options (providerOptions): `snapshot_as_of`, `last_updated_after_filter`, `last_updated_before_filter`, `display_server_time`

### Result fields

- url: Yes
- title: Yes
- excerpts: Yes, content chunks
- publishedAt: Yes
- author: No

Kept in providerFields: `lastUpdated`

### Pricing

- Cost: Computed from list prices
- Plan: Pay as you go
- Per request (fast): $1.00 per 1,000 requests
- Per request (standard): $5.00 per 1,000 requests

Billed per successful request, also when it returns no results. Invalid, rate-limited and upstream-failed requests are not billed.

Pricing source: https://docs.perplexity.ai/docs/getting-started/pricing.md (read 2026-11-24)

### Limits

- Results per query: 20
- Query length: Not stated
- Included domains: 200
- Excluded domains: 200
- Domains combined: 200
- Date filter basis: published

### Rate limits

- all tiers: 50 query units per second (leaky bucket; bursts of up to 50 units; one unit per query)

## Contents

`POST https://api.perplexity.ai/v1/context`

### Request options

- urls: Yes

Provider options (providerOptions): `max_age_seconds`, `cache_only`, `timeout_ms`, `snapshot_as_of`

### Page fields

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

### Pricing

- Cost: Reported by the API, in USD, as an estimate
- Plan: Pay as you go
- Per page: $0.001

$1 per 1,000 URLs whose status is ok or not_modified; failed URLs are free. usage.cost is at list price.

Pricing source: https://docs.perplexity.ai/docs/getting-started/pricing.md (read 2026-11-24)

### Limits

- URLs per request: 10 (unverified)
- Content format: markdown

### Rate limits

- Tier 0: 1 requests per second, per organization
- Tiers 1-3: 3 requests per second, per organization
- Tiers 4-5: 5 requests per second, per organization

## Unverified

- Search: option endDate (`/search/request/params/endDate`): Docs say an after date includes its day; they do not say whether a before date does.
- Search: option country (`/search/request/params/country`): Codes the provider does not accept give a 400 (invalid_country_code), which is a provider_error, not unsupported.
- Search: option language (`/search/request/params/language`): Codes the provider does not accept give a 400 (invalid_language_code), which is a provider_error, not unsupported.
- Search: option depth (`/search/request/params/depth`): No deeper search type exists for web results, so depth deep is unsupported.
- Contents: limit maxUrls (`/contents/limits/maxUrls`): Tier 0 allows 10 URLs per request, tiers 1-3 allow 15, tiers 4-5 allow 25, and no request may carry more than 50. The lowest tier's limit is used.
- Contents: page mapping (`/contents/response/pages/0`): status.status_code is the site's own status on ok results; whether ok can carry a site error page is not stated.
- Contents: page mapping (`/contents/response/pages/1/where`): not_modified needs if_modified_since, which this spec never sends; such a result would be reported missing.
- Index (`/index`): The index source is not documented.
- Terms (`/terms`): Terms reading taken from the 2026-11-24 recon, not re-read for this spec.

## Sources

- https://docs.perplexity.ai/api-reference/search-post.md: search request, response, errors (OpenAPI 3.1) (read 2026-11-24)
- https://docs.perplexity.ai/docs/search/filters/date-time-filters.md: MM/DD/YYYY date filters; an after date includes that day (read 2026-11-24)
- https://docs.perplexity.ai/docs/search/filters/domain-filter.md: one list mixes include and '-' exclude entries, 200 entries in total (read 2026-11-24)
- https://docs.perplexity.ai/docs/getting-started/pricing.md: Search $5 and Fast $1 per 1,000 requests; Context $1 per 1,000 ok URLs; billing units (read 2026-11-24)
- https://docs.perplexity.ai/api-reference/context-post.md: context request, response in request order, per-URL status types, errors (read 2026-11-25)
- https://docs.perplexity.ai/docs/admin/rate-limits-usage-tiers.md: search query units per second; context requests per second and URLs per request by tier (read 2026-11-24)

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