---
title: "exchange.search-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/exchange.search-result"
updated: null
---

# exchange.search-result@1 · OpenVibe.Services

HTML: [exchange.search-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/exchange.search-result)

# ExchangeSearchResult `exchange.search-result@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: exchange
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-025](/docs/adr/ADR-025)
- Schema: [`https://openvibe.network/contracts/exchange/search-result.v1.json`](/docs/contracts/exchange.search-result.json)

Exchange API platform ExchangeSearchResult response. Private account data is available only to its owner.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `results` | array of object | yes |  |  |
| `results[].title` | string | yes |  |  |
| `results[].url` | string | yes |  | - `format uri` |
| `results[].snippet` | string | yes |  |  |
| `results[].engine` | string | yes |  |  |
| `results[].published` | string \| null | yes |  |  |
| `receipt` | object | yes |  | - `no other fields` |
| `receipt.engine` | string | yes |  |  |
| `receipt.cost_usd` | number | yes |  | - `minimum 0` |
| `receipt.time_ms` | number | yes |  | - `minimum 0` |
| `receipt.attempts` | array of object |  | Ordered routing attempts with safe reason codes; no provider error bodies or credentials. | - `maxItems 64`<br>- `items: no other fields` |
| `receipt.attempts[].provider` | string | yes |  | - `minLength 1`<br>- `maxLength 100` |
| `receipt.attempts[].engine` | string | yes |  | - `minLength 1`<br>- `maxLength 100` |
| `receipt.attempts[].model` | string \| null |  |  | - `maxLength 200` |
| `receipt.attempts[].status` | enum | yes |  | - `one of "ok", "error", "skipped"` |
| `receipt.attempts[].reason` | enum |  |  | - `one of "disabled", "unsupported", "no_credentials", "circuit_open", "daily_cap", "budget", "timeout", "upstream_error", "invalid_response"` |
| `receipt.attempts[].time_ms` | number | yes |  | - `minimum 0` |
| `receipt.attempts[].cost_usd` | number | yes |  | - `minimum 0` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: fallback

~~~~
{
  "results": [],
  "receipt": {
    "engine": "openvibe",
    "cost_usd": 0,
    "time_ms": 5,
    "attempts": [
      {
        "provider": "brave",
        "engine": "brave",
        "status": "error",
        "reason": "timeout",
        "time_ms": 15000,
        "cost_usd": 0.005
      },
      {
        "provider": "openverse",
        "engine": "openverse",
        "status": "ok",
        "time_ms": 20,
        "cost_usd": 0
      }
    ]
  }
}
~~~~

Valid: platform

~~~~
{
  "results": [],
  "receipt": {
    "engine": "openvibe",
    "cost_usd": 0,
    "time_ms": 5
  }
}
~~~~

Rejected: platform

~~~~
{}
~~~~

Rejected: unsafe-reason

~~~~
{
  "results": [],
  "receipt": {
    "engine": "openvibe",
    "cost_usd": 0,
    "time_ms": 5,
    "attempts": [
      {
        "provider": "brave",
        "engine": "brave",
        "status": "error",
        "reason": "raw upstream error",
        "time_ms": 15000,
        "cost_usd": 0.005
      },
      {
        "provider": "openverse",
        "engine": "openverse",
        "status": "ok",
        "time_ms": 20,
        "cost_usd": 0
      }
    ]
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('exchange.search-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
