Web Search API
Search Web via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 5 implementations (Keenable, Search1API, Tavily and Tinyfish), pass parameters such as query, and retrieve structured data including title, returned acquired at field, description, returned published at field, and returned snippet field to search interfaces and source review, and integration reference.
- Selected price
- $0.008–$0.016 / searchPublished pricing
- Sellers / APIs
- 5 / 5
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
Web Search API
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
Overview
Web Tavily Keyless Search API
Search for tavily Keyless via API. Provide query in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | body: body |
| Selected implementation | tavily · Tavily Keyless Search |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Search interfaces and source review: Keep returned sources and query context together.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
results[].content |
Content |
results[].id |
Identifier |
results[].title |
Title |
results[].favicon |
Returned favicon field |
results[].images |
Returned images field |
results[].published_date |
Returned published date field |
results[].raw_content |
Returned raw content value (nullable in the reference) |
results[].score |
Returned score field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
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?"
}'
Request and Response Examples
The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.
Published Web Tavily Keyless Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Keenable Public Search · POST · View API reference | $0 / call | —Select to load statistics | —successP50— | |
| Search1API Web Search · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
Current Tavily Keyless Search · POST · View API reference | $0.008–$0.016 / search | 1 | 100.00%successP501.66s | |
| 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: 7. 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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | JSON request bodybody | string | Yes | The search query to execute with Tavily. |
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 |
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.
Response structure
answerstringauto_parametersobjectsearch_depthstringtopicstring
imagesunknown[]querystringrequest_idstringresponse_timestringresultsobject[]contentstringfaviconstringidstringimagesobject[]descriptionstringurlstring
published_datestringraw_contentnullscorenumbertitlestringurlstring
usageobjectcreditsinteger
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.
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 } }