APISearch & ResearchWeb Tools

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...
USE THIS API

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
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Execute a search query using Tavily Search.

Sample 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
  }
}

Response result

Response structure

Inferred from examples
  • answerstring
  • auto_parametersobject
    • search_depthstring
    • topicstring
  • imagesunknown[]
  • querystring
  • request_idstring
  • response_timestring
  • resultsobject[]
    • contentstring
    • faviconstring
    • idstring
    • imagesobject[]
      • descriptionstring
      • urlstring
    • published_datestring
    • raw_contentnull
    • scorenumber
    • titlestring
    • urlstring
  • usageobject
    • creditsinteger

Sellers

SellerPricingRequests · 30dPerformanceAccess
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—
Loading...
Selected pricing · tavilyUSD / search
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.

ParameterLocationTypeRequiredDescription
auto_parametersJSON request bodybodybooleanNoWhen `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_sourceJSON request bodybodyintegerNoChunks 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

countryJSON request bodybodystringNoBoost 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_dateJSON request bodybodystringNoWill 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_matchJSON request bodybodybooleanNoEnsure 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_domainsJSON request bodybodyarrayNoA list of domains to specifically exclude from the search results. Maximum 150 domains.
Nested fields and variants

body.exclude_domains[] · Array item · string

filter_by_languageJSON request bodybodybooleanNoStrictly 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_dateJSON request bodybodybooleanNoRemove 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_answerJSON request bodybodyboolean | stringNoInclude an LLM-generated answer to the provided query. `basic` or `true` returns a quick answer. `advanced` returns a more detailed answer.
include_domainsJSON request bodybodyarrayNoA list of domains to specifically include in the search results. Maximum 300 domains.
Nested fields and variants

body.include_domains[] · Array item · string

include_domains_modeJSON request bodybodystringNoControls 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_faviconJSON request bodybodybooleanNoWhether to include the favicon URL for each result.
include_image_descriptionsJSON request bodybodybooleanNoWhen `include_images` is `true`, also add a descriptive text for each image.
include_imagesJSON request bodybodybooleanNoInclude 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_dateJSON request bodybodybooleanNoInclude 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_contentJSON request bodybodyboolean | stringNoInclude 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_usageJSON request bodybodybooleanNoWhether to include credit usage information in the response.
languageJSON request bodybodystringNoBoost 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_resultsJSON request bodybodyintegerNoThe maximum number of search results to return.

minimum: 0 · maximum: 20

queryJSON request bodybodystringYesThe search query to execute with Tavily.
safe_searchJSON request bodybodybooleanNoWhether to filter out adult or unsafe content from results. Not supported for `fast` or `ultra-fast` search depths.
search_depthJSON request bodybodystringNoControls 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_dateJSON request bodybodystringNoWill 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_rangeJSON request bodybodystringNoThe 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"

topicJSON request bodybodystringNoThe 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.

Schema template (HTTP assumed)
{
  "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
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/markets/apis/capabilities/web-search
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

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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?"
    }'
  3. 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
      }
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Web Search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.