# Context.dev — Web Search

Search Context.Dev Web via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Context-dev, pass parameters such as numResults, query, and retrieve structured data including title, description, returned highlights field, returned markdown field, and returned relevance field to search interfaces and source review, and integration reference, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/context-dev/context-dev-web-search/b4f56d6e-ffa7-432f-be90-7c647e6c0dbb/
API ID: b4f56d6e-ffa7-432f-be90-7c647e6c0dbb
Provider: context-dev
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/search
Page update time: 2026-12-03T02:49:45.681Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:45.202Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "2000",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Usage and limits
## Context.dev — Web Search API

Search for the web and optionally scrape each result to Markdown in one call with the Context.dev API. Provide query in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## 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[].title` | Title |
| `results[].description` | Description |
| `results[].highlights` | Returned highlights field |
| `results[].markdown` | Returned markdown field |
| `results[].relevance` | Returned relevance field |
| `results[].url` | Returned URL |
| `cache_metadata.status` | Reported status |
| `cache_metadata.age_ms` | Returned age ms field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Context.dev — Web Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "properties": {
        "country": {
          "enum": [
            "af",
            "al",
            "dz",
            "as",
            "ad",
            "ao",
            "ai",
            "aq",
            "ag",
            "ar",
            "am",
            "aw",
            "au",
            "at",
            "az",
            "bs",
            "bh",
            "bd",
            "bb",
            "by",
            "be",
            "bz",
            "bj",
            "bm",
            "bt",
            "bo",
            "ba",
            "bw",
            "bv",
            "br",
            "io",
            "bn",
            "bg",
            "bf",
            "bi",
            "kh",
            "cm",
            "ca",
            "cv",
            "ky",
            "cf",
            "td",
            "cl",
            "cn",
            "cx",
            "cc",
            "co",
            "km",
            "cg",
            "cd",
            "ck",
            "cr",
            "ci",
            "hr",
            "cu",
            "cy",
            "cz",
            "dk",
            "dj",
            "dm",
            "do",
            "ec",
            "eg",
            "sv",
            "gq",
            "er",
            "ee",
            "et",
            "fk",
            "fo",
            "fj",
            "fi",
            "fr",
            "gf",
            "pf",
            "tf",
            "ga",
            "gm",
            "ge",
            "de",
            "gh",
            "gi",
            "gr",
            "gl",
            "gd",
            "gp",
            "gu",
            "gt",
            "gn",
            "gw",
            "gy",
            "ht",
            "hm",
            "va",
            "hn",
            "hk",
            "hu",
            "is",
            "in",
            "id",
            "ir",
            "iq",
            "ie",
            "il",
            "it",
            "jm",
            "jp",
            "jo",
            "kz",
            "ke",
            "ki",
            "kp",
            "kr",
            "kw",
            "kg",
            "la",
            "lv",
            "lb",
            "ls",
            "lr",
            "ly",
            "li",
            "lt",
            "lu",
            "mo",
            "mk",
            "mg",
            "mw",
            "my",
            "mv",
            "ml",
            "mt",
            "mh",
            "mq",
            "mr",
            "mu",
            "yt",
            "mx",
            "fm",
            "md",
            "mc",
            "mn",
            "ms",
            "ma",
            "mz",
            "mm",
            "na",
            "nr",
            "np",
            "nl",
            "an",
            "nc",
            "nz",
            "ni",
            "ne",
            "ng",
            "nu",
            "nf",
            "mp",
            "no",
            "om",
            "pk",
            "pw",
            "ps",
            "pa",
            "pg",
            "py",
            "pe",
            "ph",
            "pn",
            "pl",
            "pt",
            "pr",
            "qa",
            "re",
            "ro",
            "ru",
            "rw",
            "sh",
            "kn",
            "lc",
            "pm",
            "vc",
            "ws",
            "sm",
            "st",
            "sa",
            "sn",
            "rs",
            "sc",
            "sl",
            "sg",
            "sk",
            "si",
            "sb",
            "so",
            "za",
            "gs",
            "es",
            "lk",
            "sd",
            "sr",
            "sj",
            "sz",
            "se",
            "ch",
            "sy",
            "tw",
            "tj",
            "tz",
            "th",
            "tl",
            "tg",
            "tk",
            "to",
            "tt",
            "tn",
            "tr",
            "tm",
            "tc",
            "tv",
            "ug",
            "ua",
            "ae",
            "gb",
            "us",
            "um",
            "uy",
            "uz",
            "vu",
            "ve",
            "vn",
            "vg",
            "vi",
            "wf",
            "eh",
            "ye",
            "zm",
            "zw"
          ],
          "type": "string"
        },
        "descriptionMaxCharacters": {
          "default": null,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "excludeDomains": {
          "items": {
            "minLength": 3,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "freshness": {
          "enum": [
            "last_24_hours",
            "last_week",
            "last_month",
            "last_year"
          ],
          "type": "string"
        },
        "highlightsOptions": {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "default": false,
              "type": "boolean"
            },
            "maxCharacters": {
              "default": 4000,
              "maximum": 20000,
              "minimum": 100,
              "type": "integer"
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "includeDomains": {
          "items": {
            "minLength": 3,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "languages": {
          "anyOf": [
            {
              "enum": [
                "all"
              ],
              "type": "string"
            },
            {
              "items": {
                "enum": [
                  "am",
                  "ar",
                  "az",
                  "be",
                  "bg",
                  "bn",
                  "ca",
                  "ceb",
                  "cs",
                  "cy",
                  "da",
                  "de",
                  "el",
                  "en",
                  "es",
                  "et",
                  "eu",
                  "fa",
                  "fi",
                  "fr",
                  "gu",
                  "ha",
                  "haw",
                  "he",
                  "hi",
                  "hr",
                  "hu",
                  "hy",
                  "id",
                  "is",
                  "it",
                  "ja",
                  "ka",
                  "kk",
                  "kn",
                  "ko",
                  "ku",
                  "ky",
                  "lo",
                  "lt",
                  "lv",
                  "mk",
                  "ml",
                  "mn",
                  "mr",
                  "ms",
                  "ne",
                  "nl",
                  "no",
                  "or",
                  "pa",
                  "pl",
                  "ps",
                  "pt",
                  "ro",
                  "ru",
                  "sk",
                  "sl",
                  "so",
                  "sq",
                  "sr",
                  "sv",
                  "sw",
                  "ta",
                  "te",
                  "th",
                  "tl",
                  "tr",
                  "uk",
                  "ur",
                  "uz",
                  "vi",
                  "yo",
                  "zh"
                ],
                "type": "string"
              },
              "minItems": 1,
              "type": "array"
            }
          ],
          "default": "all"
        },
        "markdownOptions": {
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "default": false,
              "type": "boolean"
            },
            "includeFrames": {
              "default": false,
              "type": "boolean"
            },
            "includeImages": {
              "default": false,
              "type": "boolean"
            },
            "includeLinks": {
              "default": true,
              "type": "boolean"
            },
            "maxAgeMs": {
              "maximum": 31536000000,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "pdf": {
              "additionalProperties": false,
              "default": {
                "shouldParse": true
              },
              "properties": {
                "end": {
                  "minimum": 1,
                  "type": "integer"
                },
                "shouldParse": {
                  "default": true,
                  "type": "boolean"
                },
                "start": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "shortenBase64Images": {
              "default": true,
              "type": "boolean"
            },
            "timeoutOpts": {
              "additionalProperties": false,
              "properties": {
                "behavior": {
                  "default": "fail",
                  "enum": [
                    "fail",
                    "return-partial"
                  ],
                  "type": "string"
                },
                "milliseconds": {
                  "maximum": 300000,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "milliseconds"
              ],
              "type": "object"
            },
            "useMainContentOnly": {
              "default": false,
              "type": "boolean"
            },
            "waitForMs": {
              "maximum": 30000,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "numResults": {
          "default": 10,
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "query": {
          "maxLength": 500,
          "minLength": 1,
          "type": "string"
        },
        "queryFanout": {
          "type": "boolean"
        },
        "tags": {
          "items": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        "timeoutOpts": {
          "additionalProperties": false,
          "properties": {
            "behavior": {
              "default": "fail",
              "enum": [
                "fail",
                "return-partial"
              ],
              "type": "string"
            },
            "milliseconds": {
              "maximum": 300000,
              "minimum": 1000,
              "type": "integer"
            }
          },
          "required": [
            "milliseconds"
          ],
          "type": "object"
        },
        "zdr": {
          "default": "disabled",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        }
      },
      "required": [
        "query"
      ],
      "type": "object",
      "description": "Search the web and optionally scrape each result to Markdown in one call."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cache_metadata": {
      "type": "object",
      "properties": {
        "age_ms": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "key_metadata": {
      "type": "object",
      "properties": {
        "credits_consumed": {
          "type": "integer"
        }
      }
    },
    "query": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "highlights": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "highlights": {
                "type": "null"
              }
            }
          },
          "markdown": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "markdown": {
                "type": "null"
              }
            }
          },
          "relevance": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/search' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "numResults": 1,
  "query": "Context.dev API"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "cache_metadata": {
    "age_ms": 0,
    "status": "miss"
  },
  "key_metadata": {
    "credits_consumed": 1
  },
  "query": "Context.dev API",
  "request_id": "f10e9a8f-71eb-4125-975e-d214fc223a5a",
  "results": [
    {
      "description": "Context.dev. Verified. API for retrieving context data from any website. Web scraping, brand retrieval, AI data extraction, screenshots, and more ...",
      "highlights": {
        "code": "NOT_REQUESTED",
        "highlights": null
      },
      "markdown": {
        "code": "NOT_REQUESTED",
        "markdown": null
      },
      "relevance": "high",
      "title": "Context.dev - Orthogonal - Giving AI agents the tools they need.",
      "url": "https://www.orthogonal.com/discover/context-dev"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide query in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### 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.

## Available implementations
- context-dev: https://openany.si/context-dev/context-dev-web-search/b4f56d6e-ffa7-432f-be90-7c647e6c0dbb/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
