Web Search
Search for the web for information matching a query. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.008–$0.016 / searchPublished pricing
- Sellers / APIs
- 4 / 4
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Web Search
Prepare your request, then continue with your agent.
Selected price
$0.008–$0.016 / search
The displayed rate follows the published options and billing groups. Final charges follow reported usage.
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
answerstringauto_parametersobjectsearch_depthstringtopicstring
imagesunknown[]querystringrequest_idstringresponse_timestringresultsobject[]contentstringfaviconstringidstringimagesobject[]descriptionstringurlstring
published_datestringraw_contentnullscorenumbertitlestringurlstring
usageobjectcreditsinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
answer?: string;
auto_parameters?: {
search_depth?: string;
topic?: string;
};
images?: Array<unknown>;
query?: string;
request_id?: string;
response_time?: string;
results?: Array<{
content?: string;
favicon?: string;
id?: string;
images?: Array<{
description?: string;
url?: string;
}>;
published_date?: string;
raw_content?: null;
score?: number;
title?: string;
url?: string;
}>;
usage?: {
credits?: number;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Keenable Public Search · POST · View API reference | $0 / call | —Select to load statistics | —successP50— | |
Current Tavily Keyless Search · POST · View API reference | $0.008–$0.016 / search | — | —successP50— | |
| TinyFish Search · GET · View API reference | $0 / call | —Select to load statistics | —successP50— | |
| Web Search (Basic, no extraction) · POST · View API reference | $0.005 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.008–$0.016
The displayed rate follows the published options and billing groups. Final charges follow reported usage.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/tavily/search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/tavily/search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"include_usage": true,
"query": "who is Leo Messi?"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
auto_parameters | JSON request bodybody | boolean | No | When `auto_parameters` is enabled, Tavily automatically configures search parameters based on your query's content and intent. You can still set other parameters manually, and your explicit values will override the automatic ones. The parameters `include_answer`, `include_raw_content`, and `max_results` must always be set manually, as they directly affect response size. Note: `search_depth` may be automatically set to advanced when it's likely to improve results. This uses 2 API credits per request. To avoid the extra cost, you can explicitly set `search_depth` to `basic`. |
chunks_per_source | JSON request bodybody | integer | No | Chunks are short content snippets (about 500 characters each for `basic` and `fast`, 800 for `advanced`) pulled directly from the source. Use `chunks_per_source` to define the maximum number of relevant chunks returned per source and to control the `content` length. Chunks will appear in the `content` field as: `<chunk 1> [...] <chunk 2> [...] <chunk 3>`. Adjacent chunks may be joined into one longer passage, so chunk length is a target, not a hard limit. Available when `search_depth` is `advanced`, `basic` or `fast`. minimum: 1 · maximum: 3 |
country | JSON request bodybody | string | No | Boost search results from a specific country. This will prioritize content from the selected country in the search results. Available only if topic is `general`. enum: "afghanistan", "albania", "algeria", "andorra", "angola", "argentina", "armenia", "australia", "austria", "azerbaijan", "bahamas", "bahrain", "bangladesh", "barbados", "belarus", "belgium", "belize", "benin", "bhutan", "bolivia", "bosnia and herzegovina", "botswana", "brazil", "brunei", "bulgaria", "burkina faso", "burundi", "cambodia", "cameroon", "canada", "cape verde", "central african republic", "chad", "chile", "china", "colombia", "comoros", "congo", "costa rica", "croatia", "cuba", "cyprus", "czech republic", "denmark", "djibouti", "dominican republic", "ecuador", "egypt", "el salvador", "equatorial guinea", "eritrea", "estonia", "ethiopia", "fiji", "finland", "france", "gabon", "gambia", "georgia", "germany", "ghana", "greece", "guatemala", "guinea", "haiti", "honduras", "hungary", "iceland", "india", "indonesia", "iran", "iraq", "ireland", "israel", "italy", "jamaica", "japan", "jordan", "kazakhstan", "kenya", "kuwait", "kyrgyzstan", "latvia", "lebanon", "lesotho", "liberia", "libya", "liechtenstein", "lithuania", "luxembourg", "madagascar", "malawi", "malaysia", "maldives", "mali", "malta", "mauritania", "mauritius", "mexico", "moldova", "monaco", "mongolia", "montenegro", "morocco", "mozambique", "myanmar", "namibia", "nepal", "netherlands", "new zealand", "nicaragua", "niger", "nigeria", "north korea", "north macedonia", "norway", "oman", "pakistan", "panama", "papua new guinea", "paraguay", "peru", "philippines", "poland", "portugal", "qatar", "romania", "russia", "rwanda", "saudi arabia", "senegal", "serbia", "singapore", "slovakia", "slovenia", "somalia", "south africa", "south korea", "south sudan", "spain", "sri lanka", "sudan", "sweden", "switzerland", "syria", "taiwan", "tajikistan", "tanzania", "thailand", "togo", "trinidad and tobago", "tunisia", "turkey", "turkmenistan", "uganda", "ukraine", "united arab emirates", "united kingdom", "united states", "uruguay", "uzbekistan", "venezuela", "vietnam", "yemen", "zambia", "zimbabwe" |
end_date | JSON request bodybody | string | No | Will return all results before the specified end date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them. |
exact_match | JSON request bodybody | boolean | No | Ensure that only search results containing the exact quoted phrase(s) in the query are returned, bypassing synonyms or semantic variations. Wrap target phrases in quotes within your query (e.g. `"John Smith" CEO Acme Corp`). Punctuation is typically ignored inside quotes. |
exclude_domains | JSON request bodybody | array | No | A list of domains to specifically exclude from the search results. Maximum 150 domains.Nested fields and variants
|
filter_by_language | JSON request bodybody | boolean | No | Strictly filter out search results that don't match the `language` parameter, instead of only boosting them in ranking. Requires `language` to be set; returns a 400 error otherwise. |
filter_by_published_date | JSON request bodybody | boolean | No | Remove results whose published date falls outside the `time_range`, `start_date`, or `end_date` window. Results with no detectable published date are also removed. Setting this to `true` also enables `include_published_date`. If you want date-window filtering but don't want to lose sources without a detectable date, leave this `false` and set `include_published_date: true` together with a date range instead. |
include_answer | JSON request bodybody | boolean | string | No | Include an LLM-generated answer to the provided query. `basic` or `true` returns a quick answer. `advanced` returns a more detailed answer. |
include_domains | JSON request bodybody | array | No | A list of domains to specifically include in the search results. Maximum 300 domains.Nested fields and variants
|
include_domains_mode | JSON request bodybody | string | No | Controls how `include_domains` is applied. `restrict` limits results to only the listed domains. `prefer` also searches the rest of the web, so results outside `include_domains` can still surface, rather than excluding them. Defaults to `restrict`, so `include_domains` acts as a hard filter unless set to `prefer`. Setting it without `include_domains` returns a 400 error. enum: "restrict", "prefer" |
include_favicon | JSON request bodybody | boolean | No | Whether to include the favicon URL for each result. |
include_image_descriptions | JSON request bodybody | boolean | No | When `include_images` is `true`, also add a descriptive text for each image. |
include_images | JSON request bodybody | boolean | No | Include images in the response. Returns both a top-level `images` list of query-related images and an `images` array inside each result object with images extracted from that specific source. |
include_published_date | JSON request bodybody | boolean | No | Include a `published_date` field in each result. The date is Tavily's best estimate of when the source was published or last updated, so it can be later than the original publish date. Results with no detectable date return `null`. Automatically enabled when `topic` is `news`. **Note**: this feature is currently in beta. |
include_raw_content | JSON request bodybody | boolean | string | No | Include the cleaned and parsed HTML content of each search result. `markdown` or `true` returns search result content in markdown format. `text` returns the plain text from the results and may increase latency. |
include_usage | JSON request bodybody | boolean | No | Whether to include credit usage information in the response. |
language | JSON request bodybody | string | No | Boost search results in a specific language. Accepts an ISO 639-1 code (e.g. `en`, `fr`, `zh-cn`) or an English language name (e.g. `english`, `french`). By default this only boosts matching-language results in ranking; pass `filter_by_language: true` to strictly filter out non-matching results instead. For best results, write your `query` in the same language you set here. |
max_results | JSON request bodybody | integer | No | The maximum number of search results to return. minimum: 0 · maximum: 20 |
query | JSON request bodybody | string | Yes | The search query to execute with Tavily. |
safe_search | JSON request bodybody | boolean | No | Whether to filter out adult or unsafe content from results. Not supported for `fast` or `ultra-fast` search depths. |
search_depth | JSON request bodybody | string | No | Controls the latency vs. relevance tradeoff and how `results[].content` is generated:
- `advanced`: Highest relevance with increased latency. Best for detailed, high-precision queries. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).
- `basic`: A balanced option for relevance and latency. Ideal for general-purpose searches. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).
- `fast`: Prioritizes lower latency while maintaining good relevance. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).
- `ultra-fast`: Minimizes latency above all else. Best for time-critical use cases. Returns one NLP summary per URL.
**Cost**:
- `basic`, `fast`, `ultra-fast`: 1 API Credit
- `advanced`: 2 API Credits
See [Search Best Practices](/documentation/best-practices/best-practices-search#search-depth) for guidance on choosing the right search depth. enum: "advanced", "basic", "fast", "ultra-fast" |
start_date | JSON request bodybody | string | No | Will return all results after the specified start date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them. |
time_range | JSON request bodybody | string | No | The time range back from the current date to filter results based on publish date or last updated date. Useful when looking for sources that have published or updated data. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them. enum: "day", "week", "month", "year", "d", "w", "m", "y" |
topic | JSON request bodybody | string | No | The category of the search.`news` is useful for retrieving real-time updates, particularly about politics, sports, and major current events covered by mainstream media sources. `general` is for broader, more general-purpose searches that may include a wide range of sources. enum: "general", "news", "finance" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Response template · not a real response · Configured HTTP 200; actual status is unverified. Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
{
"answer": "Lionel Messi, born in 1987, is an Argentine footballer widely regarded as one of the greatest players of his generation. He spent the majority of his career playing for FC Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal-scoring ability. He has won multiple FIFA Ballon d'Or awards, numerous La Liga titles with Barcelona, and holds the record for most goals scored in a calendar year. In 2014, he led Argentina to the World Cup final, and in 2015, he helped Barcelona capture another treble. Despite turning 36 in June, Messi remains highly influential in the sport.",
"auto_parameters": {
"search_depth": "basic",
"topic": "general"
},
"images": [],
"query": "Who is Leo Messi?",
"request_id": "123e4567-e89b-12d3-a456-426614174111",
"response_time": "1.67",
"results": [
{
"content": "Lionel Messi, an Argentine footballer, is widely regarded as one of the greatest football players of his generation. Born in 1987, Messi spent the majority of his career playing for Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal",
"favicon": "https://britannica.com/favicon.png",
"id": "a3f9c2-04",
"images": [
{
"description": "<description>",
"url": "<url>"
}
],
"published_date": "Tue, 11 Mar 2025 17:00:00 GMT",
"raw_content": null,
"score": 0.81025416,
"title": "Lionel Messi Facts | Britannica",
"url": "https://www.britannica.com/facts/Lionel-Messi"
}
],
"usage": {
"credits": 1
}
}Usage billing
The displayed rate follows the published options and billing groups. Final charges follow reported usage.
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Web Search
Search for the web for information matching a query. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
keenable · Keenable Public Search: https://openany.si/markets/apis/capabilities/web-search?offering=bb9bdc2b-704e-4f9f-ae2f-3db85c8c49b4 · $0 / call
tavily · Tavily Keyless Search: https://openany.si/markets/apis/capabilities/web-search?offering=25bbb891-6cf3-48be-8ca0-3ae85c4f712a · $0.008–$0.016 / search
tinyfish · TinyFish Search: https://openany.si/markets/apis/capabilities/web-search?offering=f38c9e5b-2f71-4892-ae47-3defa3064f0a · $0 / call
youcom · Web Search (Basic, no extraction): https://openany.si/markets/apis/capabilities/web-search?offering=ae934460-5bfd-430e-8802-9605c0eca495 · $0.005 / call
## Selected API contract
Documentation: https://openany.si/apis/25bbb891-6cf3-48be-8ca0-3ae85c4f712a
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tavily/search
Price: $0.008–$0.016 / search
Pricing note: The displayed rate follows the published options and billing groups. Final charges follow reported usage.
Provider: tavily
Contract revision: 6
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/tavily/search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"include_usage": true,
"query": "who is Leo Messi?"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Tavily Keyless Search",
"endpoint": "https://api.openany.si/v1/agent-apis/tavily/search",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Execute a search query using Tavily Search.",
"json_schema": {
"additionalProperties": false,
"properties": {
"auto_parameters": {
"default": false,
"description": "When `auto_parameters` is enabled, Tavily automatically configures search parameters based on your query's content and intent. You can still set other parameters manually, and your explicit values will override the automatic ones. The parameters `include_answer`, `include_raw_content`, and `max_results` must always be set manually, as they directly affect response size. Note: `search_depth` may be automatically set to advanced when it's likely to improve results. This uses 2 API credits per request. To avoid the extra cost, you can explicitly set `search_depth` to `basic`.",
"type": "boolean"
},
"chunks_per_source": {
"default": 3,
"description": "Chunks are short content snippets (about 500 characters each for `basic` and `fast`, 800 for `advanced`) pulled directly from the source. Use `chunks_per_source` to define the maximum number of relevant chunks returned per source and to control the `content` length. Chunks will appear in the `content` field as: `<chunk 1> [...] <chunk 2> [...] <chunk 3>`. Adjacent chunks may be joined into one longer passage, so chunk length is a target, not a hard limit. Available when `search_depth` is `advanced`, `basic` or `fast`.",
"maximum": 3,
"minimum": 1,
"type": "integer"
},
"country": {
"default": null,
"description": "Boost search results from a specific country. This will prioritize content from the selected country in the search results. Available only if topic is `general`.",
"enum": [
"afghanistan",
"albania",
"algeria",
"andorra",
"angola",
"argentina",
"armenia",
"australia",
"austria",
"azerbaijan",
"bahamas",
"bahrain",
"bangladesh",
"barbados",
"belarus",
"belgium",
"belize",
"benin",
"bhutan",
"bolivia",
"bosnia and herzegovina",
"botswana",
"brazil",
"brunei",
"bulgaria",
"burkina faso",
"burundi",
"cambodia",
"cameroon",
"canada",
"cape verde",
"central african republic",
"chad",
"chile",
"china",
"colombia",
"comoros",
"congo",
"costa rica",
"croatia",
"cuba",
"cyprus",
"czech republic",
"denmark",
"djibouti",
"dominican republic",
"ecuador",
"egypt",
"el salvador",
"equatorial guinea",
"eritrea",
"estonia",
"ethiopia",
"fiji",
"finland",
"france",
"gabon",
"gambia",
"georgia",
"germany",
"ghana",
"greece",
"guatemala",
"guinea",
"haiti",
"honduras",
"hungary",
"iceland",
"india",
"indonesia",
"iran",
"iraq",
"ireland",
"israel",
"italy",
"jamaica",
"japan",
"jordan",
"kazakhstan",
"kenya",
"kuwait",
"kyrgyzstan",
"latvia",
"lebanon",
"lesotho",
"liberia",
"libya",
"liechtenstein",
"lithuania",
"luxembourg",
"madagascar",
"malawi",
"malaysia",
"maldives",
"mali",
"malta",
"mauritania",
"mauritius",
"mexico",
"moldova",
"monaco",
"mongolia",
"montenegro",
"morocco",
"mozambique",
"myanmar",
"namibia",
"nepal",
"netherlands",
"new zealand",
"nicaragua",
"niger",
"nigeria",
"north korea",
"north macedonia",
"norway",
"oman",
"pakistan",
"panama",
"papua new guinea",
"paraguay",
"peru",
"philippines",
"poland",
"portugal",
"qatar",
"romania",
"russia",
"rwanda",
"saudi arabia",
"senegal",
"serbia",
"singapore",
"slovakia",
"slovenia",
"somalia",
"south africa",
"south korea",
"south sudan",
"spain",
"sri lanka",
"sudan",
"sweden",
"switzerland",
"syria",
"taiwan",
"tajikistan",
"tanzania",
"thailand",
"togo",
"trinidad and tobago",
"tunisia",
"turkey",
"turkmenistan",
"uganda",
"ukraine",
"united arab emirates",
"united kingdom",
"united states",
"uruguay",
"uzbekistan",
"venezuela",
"vietnam",
"yemen",
"zambia",
"zimbabwe"
],
"type": "string"
},
"end_date": {
"default": null,
"description": "Will return all results before the specified end date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them.",
"example": "2025-12-29",
"type": "string"
},
"exact_match": {
"default": false,
"description": "Ensure that only search results containing the exact quoted phrase(s) in the query are returned, bypassing synonyms or semantic variations. Wrap target phrases in quotes within your query (e.g. `\"John Smith\" CEO Acme Corp`). Punctuation is typically ignored inside quotes.",
"type": "boolean"
},
"exclude_domains": {
"default": [],
"description": "A list of domains to specifically exclude from the search results. Maximum 150 domains.",
"items": {
"type": "string"
},
"type": "array"
},
"filter_by_language": {
"default": false,
"description": "Strictly filter out search results that don't match the `language` parameter, instead of only boosting them in ranking. Requires `language` to be set; returns a 400 error otherwise.",
"type": "boolean"
},
"filter_by_published_date": {
"default": false,
"description": "Remove results whose published date falls outside the `time_range`, `start_date`, or `end_date` window. Results with no detectable published date are also removed. Setting this to `true` also enables `include_published_date`.\n\nIf you want date-window filtering but don't want to lose sources without a detectable date, leave this `false` and set `include_published_date: true` together with a date range instead.",
"type": "boolean"
},
"include_answer": {
"default": false,
"description": "Include an LLM-generated answer to the provided query. `basic` or `true` returns a quick answer. `advanced` returns a more detailed answer.",
"oneOf": [
{
"type": "boolean"
},
{
"enum": [
"basic",
"advanced"
],
"type": "string"
}
]
},
"include_domains": {
"default": [],
"description": "A list of domains to specifically include in the search results. Maximum 300 domains.",
"items": {
"type": "string"
},
"type": "array"
},
"include_domains_mode": {
"default": "restrict",
"description": "Controls how `include_domains` is applied. `restrict` limits results to only the listed domains. `prefer` also searches the rest of the web, so results outside `include_domains` can still surface, rather than excluding them. Defaults to `restrict`, so `include_domains` acts as a hard filter unless set to `prefer`. Setting it without `include_domains` returns a 400 error.",
"enum": [
"restrict",
"prefer"
],
"type": "string"
},
"include_favicon": {
"default": false,
"description": "Whether to include the favicon URL for each result.",
"type": "boolean"
},
"include_image_descriptions": {
"default": false,
"description": "When `include_images` is `true`, also add a descriptive text for each image.",
"type": "boolean"
},
"include_images": {
"default": false,
"description": "Include images in the response. Returns both a top-level `images` list of query-related images and an `images` array inside each result object with images extracted from that specific source.",
"type": "boolean"
},
"include_published_date": {
"default": false,
"description": "Include a `published_date` field in each result. The date is Tavily's best estimate of when the source was published or last updated, so it can be later than the original publish date. Results with no detectable date return `null`. Automatically enabled when `topic` is `news`.\n\n**Note**: this feature is currently in beta.",
"type": "boolean"
},
"include_raw_content": {
"default": false,
"description": "Include the cleaned and parsed HTML content of each search result. `markdown` or `true` returns search result content in markdown format. `text` returns the plain text from the results and may increase latency.",
"oneOf": [
{
"type": "boolean"
},
{
"enum": [
"markdown",
"text"
],
"type": "string"
}
]
},
"include_usage": {
"default": false,
"description": "Whether to include credit usage information in the response.",
"type": "boolean"
},
"language": {
"default": null,
"description": "Boost search results in a specific language. Accepts an ISO 639-1 code (e.g. `en`, `fr`, `zh-cn`) or an English language name (e.g. `english`, `french`). By default this only boosts matching-language results in ranking; pass `filter_by_language: true` to strictly filter out non-matching results instead. For best results, write your `query` in the same language you set here.",
"example": "en",
"type": "string"
},
"max_results": {
"default": 10,
"description": "The maximum number of search results to return.",
"example": 1,
"maximum": 20,
"minimum": 0,
"type": "integer"
},
"query": {
"description": "The search query to execute with Tavily.",
"example": "who is Leo Messi?",
"type": "string"
},
"safe_search": {
"default": false,
"description": "Whether to filter out adult or unsafe content from results. Not supported for `fast` or `ultra-fast` search depths.",
"type": "boolean"
},
"search_depth": {
"default": "basic",
"description": "Controls the latency vs. relevance tradeoff and how `results[].content` is generated:\n- `advanced`: Highest relevance with increased latency. Best for detailed, high-precision queries. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).\n- `basic`: A balanced option for relevance and latency. Ideal for general-purpose searches. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).\n- `fast`: Prioritizes lower latency while maintaining good relevance. Returns multiple semantically relevant snippets per URL (configurable via `chunks_per_source`).\n- `ultra-fast`: Minimizes latency above all else. Best for time-critical use cases. Returns one NLP summary per URL.\n\n**Cost**:\n- `basic`, `fast`, `ultra-fast`: 1 API Credit\n- `advanced`: 2 API Credits\n\nSee [Search Best Practices](/documentation/best-practices/best-practices-search#search-depth) for guidance on choosing the right search depth.",
"enum": [
"advanced",
"basic",
"fast",
"ultra-fast"
],
"type": "string"
},
"start_date": {
"default": null,
"description": "Will return all results after the specified start date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them.",
"example": "2025-02-09",
"type": "string"
},
"time_range": {
"default": null,
"description": "The time range back from the current date to filter results based on publish date or last updated date. Useful when looking for sources that have published or updated data. By default, results with no detectable published date are not removed; set `filter_by_published_date` to `true` to remove them.",
"enum": [
"day",
"week",
"month",
"year",
"d",
"w",
"m",
"y"
],
"type": "string"
},
"topic": {
"default": "general",
"description": "The category of the search.`news` is useful for retrieving real-time updates, particularly about politics, sports, and major current events covered by mainstream media sources. `general` is for broader, more general-purpose searches that may include a wide range of sources.",
"enum": [
"general",
"news",
"finance"
],
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "usage",
"priceMicroUsd": "8000",
"rounding": "ceil",
"unit": "credit",
"unitQuantity": "1"
},
"examples": [
{
"http_status": 200,
"name": "Schema template (HTTP assumed)",
"request": {
"body": {
"include_usage": true,
"query": "who is Leo Messi?"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"answer": "Lionel Messi, born in 1987, is an Argentine footballer widely regarded as one of the greatest players of his generation. He spent the majority of his career playing for FC Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal-scoring ability. He has won multiple FIFA Ballon d'Or awards, numerous La Liga titles with Barcelona, and holds the record for most goals scored in a calendar year. In 2014, he led Argentina to the World Cup final, and in 2015, he helped Barcelona capture another treble. Despite turning 36 in June, Messi remains highly influential in the sport.",
"auto_parameters": {
"search_depth": "basic",
"topic": "general"
},
"images": [],
"query": "Who is Leo Messi?",
"request_id": "123e4567-e89b-12d3-a456-426614174111",
"response_time": "1.67",
"results": [
{
"content": "Lionel Messi, an Argentine footballer, is widely regarded as one of the greatest football players of his generation. Born in 1987, Messi spent the majority of his career playing for Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal",
"favicon": "https://britannica.com/favicon.png",
"id": "a3f9c2-04",
"images": [
{
"description": "<description>",
"url": "<url>"
}
],
"published_date": "Tue, 11 Mar 2025 17:00:00 GMT",
"raw_content": null,
"score": 0.81025416,
"title": "Lionel Messi Facts | Britannica",
"url": "https://www.britannica.com/facts/Lionel-Messi"
}
],
"usage": {
"credits": 1
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Schema template (HTTP assumed)
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Execute a search query using Tavily Search.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/tavily/search' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "include_usage": true, "query": "who is Leo Messi?" }'Check the response
Response template · not a real response · Configured HTTP 200; actual status is unverified.
Response template · not a real response{ "answer": "Lionel Messi, born in 1987, is an Argentine footballer widely regarded as one of the greatest players of his generation. He spent the majority of his career playing for FC Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal-scoring ability. He has won multiple FIFA Ballon d'Or awards, numerous La Liga titles with Barcelona, and holds the record for most goals scored in a calendar year. In 2014, he led Argentina to the World Cup final, and in 2015, he helped Barcelona capture another treble. Despite turning 36 in June, Messi remains highly influential in the sport.", "auto_parameters": { "search_depth": "basic", "topic": "general" }, "images": [], "query": "Who is Leo Messi?", "request_id": "123e4567-e89b-12d3-a456-426614174111", "response_time": "1.67", "results": [ { "content": "Lionel Messi, an Argentine footballer, is widely regarded as one of the greatest football players of his generation. Born in 1987, Messi spent the majority of his career playing for Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal", "favicon": "https://britannica.com/favicon.png", "id": "a3f9c2-04", "images": [ { "description": "<description>", "url": "<url>" } ], "published_date": "Tue, 11 Mar 2025 17:00:00 GMT", "raw_content": null, "score": 0.81025416, "title": "Lionel Messi Facts | Britannica", "url": "https://www.britannica.com/facts/Lionel-Messi" } ], "usage": { "credits": 1 } }