Answer
Retrieve answer via API. Supply a search query. Sample fields include answers and citations. Use the result as input for a related analysis or application. The POST request schema also lists country, language.
- Selected price
- $0.005 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
youcomCurrent Answer · POST | $0.005 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
answerstringcitationsobject[]excerptsstring[]sourcestring
resultsobjectwebobject[]descriptionstringsnippetsstring[]titlestringurlstringpage_agestringthumbnail_urlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
answer?: string;
citations?: Array<{
excerpts?: Array<string>;
source?: string;
}>;
results?: {
web?: Array<{
description?: string;
snippets?: Array<string>;
title?: string;
url?: string;
page_age?: string;
thumbnail_url?: string;
}>;
};
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/youcom/v1/answer- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/youcom/v1/answer' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"query": "what causes the aurora borealis"
}'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 used to retrieve relevant web results. maxLength: 400 |
country | JSON request bodybody | string | No | A supported country code that determines the geographical focus of the web results. enum: "AR", "AU", "AT", "BE", "BR", "CA", "CL", "DK", "FI", "FR", "DE", "HK", "IN", "ID", "IT", "JP", "KR", "MY", "MX", "NL", "NZ", "NO", "CN", "PL", "PT", "PH", "RU", "SA", "ZA", "ES", "SE", "CH", "TW", "TR", "GB", "US" |
language | JSON request bodybody | string | No | A supported BCP 47 language tag that determines the language of the web results. enum: "AR", "EU", "BN", "BG", "CA", "HR", "CS", "DA", "NL", "EN", "EN-GB", "ET", "FI", "FR", "GL", "DE", "EL", "GU", "HE", "HI", "HU", "IS", "IT", "KN", "KO", "LV", "LT", "MS", "ML", "MR", "NB", "PL", "PA", "RO", "RU", "SR", "SK", "SL", "ES", "SV", "TA", "TE", "TH", "TR", "UK", "VI" |
safesearch | JSON request bodybody | string | No | Configures the safesearch filter for content moderation. This allows you to decide whether to return NSFW content or not. enum: "off", "moderate", "strict" |
include_domains | JSON request bodybody | array | No | Domains to exclusively include in web results. This is a strict allowlist, not a ranking boost. Supports up to 500 domains. Cannot be combined with `exclude_domains` or `boost_domains`.Nested fields and variants
|
exclude_domains | JSON request bodybody | array | No | Domains to exclude from web results. Supports up to 500 domains. Cannot be combined with `include_domains`. Can be combined with `boost_domains`.Nested fields and variants
|
boost_domains | JSON request bodybody | array | No | Domains to prefer in search ranking without excluding results from other domains. Supports up to 500 domains. Can be combined with `exclude_domains`, but not with `include_domains`.Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"answer": "The aurora borealis is caused by charged particles ejected from the Sun—carried by the solar wind and often intensified by solar flares or coronal mass ejections—that travel to Earth, are funneled by Earth's magnetic field toward the polar regions, and collide with oxygen and nitrogen atoms in the upper atmosphere. These collisions excite the atoms, which then release photons of light, creating the visible northern lights. [[1, 2, 3]]",
"citations": [
{
"excerpts": [
"Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity, such as solar flares (explosions on the Sun) or coronal mass ejections (ejected gas bubbles). Energetic charged particles from these events are carried from the Sun by the solar wind.",
"When these particles seep through Earth's magnetosphere, they cause substorms. Then fast moving particles slam into our thin, high atmosphere, colliding with Earth's oxygen and nitrogen particles. As these air particles shed the energy they picked up from the collision, each atom starts to glow in a different color."
],
"source": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html"
},
{
"excerpts": [
"The Aurora Borealis is a result of interactions between solar wind and the Earth's atmosphere. Solar wind is a stream of charged particles released from the sun's upper atmosphere, known as the corona. When these particles reach Earth, they collide with gases in our atmosphere, such as oxygen and nitrogen. These collisions excite the gas particles, causing them to emit light."
],
"source": "https://www.valofinland.com/what-causes-the-colours-in-aurora-borealis/"
},
{
"excerpts": [
"When electrons fly through space, two things can happen: they are reflected away by the Earth's magnetic field, or they follow it to the poles. Because the magnetic field is weaker at the poles, the electrons are able to freely enter the atmosphere without being reflected away."
],
"source": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis"
}
],
"results": {
"web": [
{
"description": "Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions.",
"snippets": [
"Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity."
],
"title": "How Auroras Form",
"url": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html"
},
{
"description": "Discover what causes the northern lights to appear and why these mesmerizing displays illuminate Arctic skies in various colors. Learn when and where to witness this celestial phenomenon.",
"page_age": "2025-06-13T04:55:47",
"snippets": [
"The northern lights, also known as aurora borealis, are a mesmerising natural light display that occurs when charged particles from the sun collide with gases in Earth's atmosphere."
],
"thumbnail_url": "https://auroraqueenresort.fi/wp-content/uploads/2024/09/Aurora-Queen-Resort-1024x768.jpg",
"title": "What causes the northern lights to appear? - Aurora Queen Resort",
"url": "https://auroraqueenresort.fi/what-causes-the-northern-lights-to-appear/"
},
{
"description": "Learn how charged particles from the sun produce the aurora borealis.",
"snippets": [
"When millions of photons of light are emitted at the same time, it causes the sky to light up and creates the Aurora Borealis."
],
"title": "The Aurora Borealis",
"url": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis"
}
]
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Answer
Retrieve answer via API. Supply a search query. Sample fields include answers and citations. Use the result as input for a related analysis or application. The POST request schema also lists country, language.
## Available implementations
youcom · Answer: https://openany.si/markets/apis/capabilities/web-answer?offering=9833050b-a493-4355-b475-21827263e2ca · $0.005 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/web-answer
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/youcom/v1/answer
Price: $0.005 / call
Provider: youcom
Contract revision: 4
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/youcom/v1/answer' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"query": "what causes the aurora borealis"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Answer",
"endpoint": "https://api.openany.si/v1/agent-apis/youcom/v1/answer",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "The search query used to retrieve relevant web results.",
"location": "body",
"max_length": 400,
"name": "query",
"nullable": false,
"pointer": "/query",
"required": true,
"type": "string"
},
{
"description": "A supported country code that determines the geographical focus of the web results.",
"enum_values": [
"AR",
"AU",
"AT",
"BE",
"BR",
"CA",
"CL",
"DK",
"FI",
"FR",
"DE",
"HK",
"IN",
"ID",
"IT",
"JP",
"KR",
"MY",
"MX",
"NL",
"NZ",
"NO",
"CN",
"PL",
"PT",
"PH",
"RU",
"SA",
"ZA",
"ES",
"SE",
"CH",
"TW",
"TR",
"GB",
"US"
],
"location": "body",
"name": "country",
"nullable": false,
"pointer": "/country",
"required": false,
"type": "string"
},
{
"description": "A supported BCP 47 language tag that determines the language of the web results.",
"enum_values": [
"AR",
"EU",
"BN",
"BG",
"CA",
"HR",
"CS",
"DA",
"NL",
"EN",
"EN-GB",
"ET",
"FI",
"FR",
"GL",
"DE",
"EL",
"GU",
"HE",
"HI",
"HU",
"IS",
"IT",
"KN",
"KO",
"LV",
"LT",
"MS",
"ML",
"MR",
"NB",
"PL",
"PA",
"RO",
"RU",
"SR",
"SK",
"SL",
"ES",
"SV",
"TA",
"TE",
"TH",
"TR",
"UK",
"VI"
],
"location": "body",
"name": "language",
"nullable": false,
"pointer": "/language",
"required": false,
"type": "string"
},
{
"description": "Configures the safesearch filter for content moderation. This allows you to decide whether to return NSFW content or not.",
"enum_values": [
"off",
"moderate",
"strict"
],
"location": "body",
"name": "safesearch",
"nullable": false,
"pointer": "/safesearch",
"required": false,
"type": "string"
},
{
"description": "Domains to exclusively include in web results. This is a strict allowlist, not a ranking boost. Supports up to 500 domains. Cannot be combined with `exclude_domains` or `boost_domains`.",
"item_type": "string",
"location": "body",
"name": "include_domains",
"nullable": false,
"pointer": "/include_domains",
"required": false,
"type": "array"
},
{
"description": "Domains to exclude from web results. Supports up to 500 domains. Cannot be combined with `include_domains`. Can be combined with `boost_domains`.",
"item_type": "string",
"location": "body",
"name": "exclude_domains",
"nullable": false,
"pointer": "/exclude_domains",
"required": false,
"type": "array"
},
{
"description": "Domains to prefer in search ranking without excluding results from other domains. Supports up to 500 domains. Can be combined with `exclude_domains`, but not with `include_domains`.",
"item_type": "string",
"location": "body",
"name": "boost_domains",
"nullable": false,
"pointer": "/boost_domains",
"required": false,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "5000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"query": "what causes the aurora borealis"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"answer": "The aurora borealis is caused by charged particles ejected from the Sun—carried by the solar wind and often intensified by solar flares or coronal mass ejections—that travel to Earth, are funneled by Earth's magnetic field toward the polar regions, and collide with oxygen and nitrogen atoms in the upper atmosphere. These collisions excite the atoms, which then release photons of light, creating the visible northern lights. [[1, 2, 3]]",
"citations": [
{
"excerpts": [
"Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity, such as solar flares (explosions on the Sun) or coronal mass ejections (ejected gas bubbles). Energetic charged particles from these events are carried from the Sun by the solar wind.",
"When these particles seep through Earth's magnetosphere, they cause substorms. Then fast moving particles slam into our thin, high atmosphere, colliding with Earth's oxygen and nitrogen particles. As these air particles shed the energy they picked up from the collision, each atom starts to glow in a different color."
],
"source": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html"
},
{
"excerpts": [
"The Aurora Borealis is a result of interactions between solar wind and the Earth's atmosphere. Solar wind is a stream of charged particles released from the sun's upper atmosphere, known as the corona. When these particles reach Earth, they collide with gases in our atmosphere, such as oxygen and nitrogen. These collisions excite the gas particles, causing them to emit light."
],
"source": "https://www.valofinland.com/what-causes-the-colours-in-aurora-borealis/"
},
{
"excerpts": [
"When electrons fly through space, two things can happen: they are reflected away by the Earth's magnetic field, or they follow it to the poles. Because the magnetic field is weaker at the poles, the electrons are able to freely enter the atmosphere without being reflected away."
],
"source": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis"
}
],
"results": {
"web": [
{
"description": "Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions.",
"snippets": [
"Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity."
],
"title": "How Auroras Form",
"url": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html"
},
{
"description": "Discover what causes the northern lights to appear and why these mesmerizing displays illuminate Arctic skies in various colors. Learn when and where to witness this celestial phenomenon.",
"page_age": "2025-06-13T04:55:47",
"snippets": [
"The northern lights, also known as aurora borealis, are a mesmerising natural light display that occurs when charged particles from the sun collide with gases in Earth's atmosphere."
],
"thumbnail_url": "https://auroraqueenresort.fi/wp-content/uploads/2024/09/Aurora-Queen-Resort-1024x768.jpg",
"title": "What causes the northern lights to appear? - Aurora Queen Resort",
"url": "https://auroraqueenresort.fi/what-causes-the-northern-lights-to-appear/"
},
{
"description": "Learn how charged particles from the sun produce the aurora borealis.",
"snippets": [
"When millions of photons of light are emitted at the same time, it causes the sky to light up and creates the Aurora Borealis."
],
"title": "The Aurora Borealis",
"url": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis"
}
]
}
}
}
]
}
```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. |
Official example
Example from the provider's documentation. Field values in your results will differ.
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 7
Review these request fields before running. Keep the published provider and request method unchanged.
query- The search query used to retrieve relevant web results.
country- A supported country code that determines the geographical focus of the web results.
language- A supported BCP 47 language tag that determines the language of the web results.
safesearch- Configures the safesearch filter for content moderation. This allows you to decide whether to return NSFW content or not.
include_domains- Domains to exclusively include in web results. This is a strict allowlist, not a ranking boost. Supports up to 500 domains. Cannot be combined with `exclude_domains` or `boost_domains`.
exclude_domains- Domains to exclude from web results. Supports up to 500 domains. Cannot be combined with `include_domains`. Can be combined with `boost_domains`.
boost_domains- Domains to prefer in search ranking without excluding results from other domains. Supports up to 500 domains. Can be combined with `exclude_domains`, but not with `include_domains`.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/youcom/v1/answer' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "query": "what causes the aurora borealis" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "answer": "The aurora borealis is caused by charged particles ejected from the Sun—carried by the solar wind and often intensified by solar flares or coronal mass ejections—that travel to Earth, are funneled by Earth's magnetic field toward the polar regions, and collide with oxygen and nitrogen atoms in the upper atmosphere. These collisions excite the atoms, which then release photons of light, creating the visible northern lights. [[1, 2, 3]]", "citations": [ { "excerpts": [ "Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity, such as solar flares (explosions on the Sun) or coronal mass ejections (ejected gas bubbles). Energetic charged particles from these events are carried from the Sun by the solar wind.", "When these particles seep through Earth's magnetosphere, they cause substorms. Then fast moving particles slam into our thin, high atmosphere, colliding with Earth's oxygen and nitrogen particles. As these air particles shed the energy they picked up from the collision, each atom starts to glow in a different color." ], "source": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html" }, { "excerpts": [ "The Aurora Borealis is a result of interactions between solar wind and the Earth's atmosphere. Solar wind is a stream of charged particles released from the sun's upper atmosphere, known as the corona. When these particles reach Earth, they collide with gases in our atmosphere, such as oxygen and nitrogen. These collisions excite the gas particles, causing them to emit light." ], "source": "https://www.valofinland.com/what-causes-the-colours-in-aurora-borealis/" }, { "excerpts": [ "When electrons fly through space, two things can happen: they are reflected away by the Earth's magnetic field, or they follow it to the poles. Because the magnetic field is weaker at the poles, the electrons are able to freely enter the atmosphere without being reflected away." ], "source": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis" } ], "results": { "web": [ { "description": "Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions.", "snippets": [ "Auroras are brilliant ribbons of light weaving across Earth's northern or southern polar regions. These natural light shows are caused by magnetic storms that have been triggered by solar activity." ], "title": "How Auroras Form", "url": "https://www.jpl.nasa.gov/nmp/st5/SCIENCE/aurora.html" }, { "description": "Discover what causes the northern lights to appear and why these mesmerizing displays illuminate Arctic skies in various colors. Learn when and where to witness this celestial phenomenon.", "page_age": "2025-06-13T04:55:47", "snippets": [ "The northern lights, also known as aurora borealis, are a mesmerising natural light display that occurs when charged particles from the sun collide with gases in Earth's atmosphere." ], "thumbnail_url": "https://auroraqueenresort.fi/wp-content/uploads/2024/09/Aurora-Queen-Resort-1024x768.jpg", "title": "What causes the northern lights to appear? - Aurora Queen Resort", "url": "https://auroraqueenresort.fi/what-causes-the-northern-lights-to-appear/" }, { "description": "Learn how charged particles from the sun produce the aurora borealis.", "snippets": [ "When millions of photons of light are emitted at the same time, it causes the sky to light up and creates the Aurora Borealis." ], "title": "The Aurora Borealis", "url": "https://triplefatgoose.com/blogs/down-time/understanding-the-aurora-borealis" } ] } }
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 Answer with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.