Web Answer API
Get Web Answer data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Youcom, pass parameters such as query, and retrieve structured data including title, description, returned snippets field, returned URL, and returned answer field to search interfaces and source review, and integration reference, ready for production pipelines and AI agent automation.
- Selected price
- $0.005 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Web Answer API
Prepare your request, then continue with your agent.
Selected price
$0.005 / call
- Provider
- API
- Pricing
On this page
Overview
Web Answer API
Generate a cited answer using a single web-search pass. 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: query, country, language, safesearch, include_domains, exclude_domains, boost_domains |
| Selected implementation | youcom · Answer |
| 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.web[].title |
Title |
results.web[].description |
Description |
results.web[].snippets |
Returned snippets field |
results.web[].url |
Returned URL |
answer |
Returned answer field |
citations[].excerpts |
Returned excerpts field |
citations[].source |
Returned source 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/youcom/v1/answer' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"query": "what causes the aurora borealis"
}'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Web Answer 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 |
|---|---|---|---|---|
youcomCurrent Answer · POST · View API reference | $0.005 / call | 0 | —successP50— |
- Unit price
- $0.005
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: 5. Price update time: not supplied.
Total $0.5
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/youcom/v1/answer- 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 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.
Response structure
answerstringcitationsobject[]excerptsstring[]sourcestring
resultsobjectwebobject[]descriptionstringsnippetsstring[]titlestringurlstringpage_agestringthumbnail_urlstring
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
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" } ] } }