Skip to main content

Web search API

Send a query to get a list of web pages with a title, link, text snippet, and date. It is built for AI agents and applications that need fresh web results in one fast call. Results are returned in plain JSON.

Access is enabled per key

Web search is enabled per key on request. Email support@omev.be with your account email and the key alias. Requests from a key without access receive 403 search_not_enabled.

Price​

UnitPrice
One query string$0.66 per 1,000 queries ($0.00066 each)

Every query string counts: a request with a list of 5 queries counts as 5 queries. A request that returns an error is not charged. Charges are applied to the key's balance along with the rest of its usage. See Models and prices.

Send a query​

curl -sS https://llmapi.omev.be/v1/search \
-H "Authorization: Bearer $OMEV_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "best espresso machines for small cafes",
"max_results": 5
}'
{
"id": "b1f0c1a2-7d54-4a43-9a64-3c1f8a0c2e11",
"results": [
{
"title": "How to choose an espresso machine for a small cafe",
"url": "https://example.com/espresso-guide",
"snippet": "…",
"date": "2026-09-14",
"last_updated": "2026-11-02"
}
],
"server_time": null
}

Send query as a list of up to 5 strings to run several searches in one call. In that case, results is a list of lists, with one list per query in the same order.

FieldRequiredValues
queryyesA string, or a list of up to 5 strings, each up to 2,000 characters.
max_resultsno1–20 (default: 10).
search_domain_filternoA JSON list of up to 20 domains; included and excluded entries can be combined. A plain entry (example.com) limits results to that site; an entry with a leading minus (-example.com) excludes that site.
search_recency_filternohour, day, week, month, or year.
search_after_date_filter, search_before_date_filternoA date in MM/DD/YYYY format; returns pages published after or before that date.
last_updated_after_filter, last_updated_before_filternoA date in MM/DD/YYYY format; returns pages updated after or before that date.
countrynoA two-letter country code, such as US.
search_language_filternoA list of up to 10 two-letter language codes, such as ["en", "de"].
max_tokens_per_pageno1–100,000. Caps the snippet length of each result.
max_tokensno1–1,000,000. Caps the total snippet text for one query.

Values are validated strictly. A number sent as a string, an unknown recency value, or a date in another format returns 400, and nothing is charged.

Each result contains title, url, snippet, date (publication date), and last_updated. Both date and last_updated are null when unknown. id identifies the answer; server_time is always null. Results do not contain duplicate links. Fewer than max_results results may be returned when fewer matches exist or your filters are narrow.

Errors​

Every error has the format {"error": {"message": "…", "type": "invalid_request_error", "code": "…"}}; for 5xx the type is server_error.

Status and codeMeaning
400 invalid_requestThe request body is not a JSON object.
400 invalid_query, too_many_queries, query_too_longquery is empty, contains more than 5 strings, or contains a string longer than 2,000 characters.
400 invalid_max_results, invalid_max_tokens_per_page, invalid_max_tokensA number is outside its allowed range.
400 invalid_search_domain_filter, invalid_search_recency_filter, invalid_country, invalid_search_language_filterA filter value is not accepted.
400 invalid_search_after_date_filter, invalid_search_before_date_filter, invalid_last_updated_after_filter, invalid_last_updated_before_filterA date is not in MM/DD/YYYY format.
401Missing or invalid API key.
403 search_not_enabledWeb search is not enabled for this key.
502 upstream_unavailable, 500 internal_errorA temporary problem. Retry a limited number of times.

See Errors and retries for the retry policy.