OpenAny
Get API keyAPI Key
APISearch & Research

web logo
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
USE THIS API

Web Answer API

Prepare your request, then continue with your agent.

Selected price

$0.005 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Web Answer API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
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"
}'

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

View FAQ

Related APIs

Playground

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

Request parameters
The search query used to retrieve relevant web results.
Optional parameters (6)
A supported country code that determines the geographical focus of the web results.
A supported BCP 47 language tag that determines the language of the web results.
Configures the safesearch filter for content moderation. This allows you to decide whether to return NSFW content or not.
include_domains array
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 array
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 array
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`.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
youcomCurrent
Answer · POST · View API reference
$0.005 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · youcomUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryJSON request bodybodystringYes

The search query used to retrieve relevant web results.

maxLength: 400

countryJSON request bodybodystringNo

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"

languageJSON request bodybodystringNo

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"

safesearchJSON request bodybodystringNo

Configures the safesearch filter for content moderation. This allows you to decide whether to return NSFW content or not.

enum: "off", "moderate", "strict"

include_domainsJSON request bodybodyarrayNo

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

body.include_domains[] · Array item · string

exclude_domainsJSON request bodybodyarrayNo

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

body.exclude_domains[] · Array item · string

boost_domainsJSON request bodybodyarrayNo

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

body.boost_domains[] · Array item · string

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • answerstring
  • citationsobject[]
    • excerptsstring[]
    • sourcestring
  • resultsobject
    • webobject[]
      • descriptionstring
      • snippetsstring[]
      • titlestring
      • urlstring
      • page_agestring
      • thumbnail_urlstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

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

Official example

Example from the provider's documentation. Field values in your results will differ.

  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 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 · cURL
    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"
    }'
  3. 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

Which inputs identify this request?

Provide query in body (string). Keep identifiers and URLs in the formats documented for this implementation.

Which pagination or result-size inputs are exposed?

country is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

Which values can I use for country?

The selected schema accepts 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. Keep the documented string type and exact spelling for this input.

Which request format should I follow?

Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use Web Answer API with your agent

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