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.
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
| Unit | Price |
|---|---|
| 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.
| Field | Required | Values |
|---|---|---|
query | yes | A string, or a list of up to 5 strings, each up to 2,000 characters. |
max_results | no | 1–20 (default: 10). |
search_domain_filter | no | A 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_filter | no | hour, day, week, month, or year. |
search_after_date_filter, search_before_date_filter | no | A date in MM/DD/YYYY format; returns pages published after or before that date. |
last_updated_after_filter, last_updated_before_filter | no | A date in MM/DD/YYYY format; returns pages updated after or before that date. |
country | no | A two-letter country code, such as US. |
search_language_filter | no | A list of up to 10 two-letter language codes, such as ["en", "de"]. |
max_tokens_per_page | no | 1–100,000. Caps the snippet length of each result. |
max_tokens | no | 1–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 code | Meaning |
|---|---|
400 invalid_request | The request body is not a JSON object. |
400 invalid_query, too_many_queries, query_too_long | query 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_tokens | A number is outside its allowed range. |
400 invalid_search_domain_filter, invalid_search_recency_filter, invalid_country, invalid_search_language_filter | A 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_filter | A date is not in MM/DD/YYYY format. |
401 | Missing or invalid API key. |
403 search_not_enabled | Web search is not enabled for this key. |
502 upstream_unavailable, 500 internal_error | A temporary problem. Retry a limited number of times. |
See Errors and retries for the retry policy.