# Cloudsway Web Search API

> Web search API for AI agents with topic focus (news, academic, company, finance and more), country, date range and domain filters, plus optional full text, summaries and highlights.

Source: https://www.sandbase.ai/apis/cloudsway/search
API reference: https://www.sandbase.ai/apis/cloudsway/search/docs

## Facts

- Provider: Cloudsway
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/cloudsway/search`
- Price: $0.0075 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: web search
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/cloudsway/search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |
| `max_results` | integer | no |  |
| `search_depth` | string | no | basic, advanced |
| `topic` | string | no | general, news, academic, company, people, finance |
| `include_highlights` | boolean | no |  |
| `include_text` | boolean | no |  |
| `include_summary` | boolean | no |  |
| `max_characters` | integer | no |  |
| `include_domains` | array | no |  |
| `exclude_domains` | array | no |  |
| `start_date` | string | no |  |
| `end_date` | string | no |  |
| `country` | string | no | US, GB, CN, JP, DE, FR, KR, IN, CA, AU, SG, BR, RU, IT, ES, NL, SE, CH, IL, AE |

## FAQ

### How do I use the Cloudsway Web Search API?

Send a POST request to https://api.sandbase.ai/v1/api/cloudsway/search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Cloudsway Web Search API cost?

$0.0075 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Cloudsway Web Search API accept?

Required: query (string). Optional: max_results (integer), search_depth (one of basic, advanced), topic (one of general, news, academic, company, people, finance), include_highlights (boolean), include_text (boolean) and include_summary (boolean) and 6 more. The Parameters table and the Playground on this page list every field.

### What does the Cloudsway Web Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Cloudsway developer account or API key?

No. Cloudsway Web Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Cloudsway API access separately.

## README

### Cloudsway Web Search API

Search the web for a query and get ranked results with title, URL, publish date and relevance score. Optionally include highlights, summaries or full page text for RAG.

#### Use cases

- Ground LLM answers with fresh web sources.
- Research news, companies or academic topics.
- Restrict results to trusted domains or a date window.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/cloudsway/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI Codex documentation", "max_results": 3}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | The search query string. |
| `topic` | string | No | Content category to focus on. |
| `country` | string | No | Two-letter ISO country code for localized results. |
| `end_date` | string | No | Only return results published before this date. |
| `start_date` | string | No | Only return results published after this date. |
| `max_results` | integer | No | Maximum number of results to return. |
| `include_text` | boolean | No | Return full page text content for each result. |
| `search_depth` | string | No | basic: fast, low-latency search (~1s). advanced: multi-step reasoning with higher quality results (4-40s), costs more. |
| `max_characters` | integer | No | Maximum characters for text content per result. |
| `exclude_domains` | array | No | Exclude results from these domains. |
| `include_domains` | array | No | Only return results from these domains. |
| `include_summary` | boolean | No | Return a short summary of each result. |
| `include_highlights` | boolean | No | Return key excerpts relevant to the query. |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "entities": [
    {
      "title": "OpenAI Codex CLI Official Documentation Guide (2026) | Codex Knowledg…",
      "url": "https://codex.danielvaughan.com/2026/04/19/openai-codex-cli-official-…",
      "content": "The official Codex CLI documentation has grown considerably since the tool’s op…",
      "published_date": "2026-04-19T07:22:32.0000000",
      "score": 0.75424725
    }
  ]
}
```

#### Notes

- `search_depth`: basic (about 1 s) or advanced (multi-step, 4–40 s, higher quality).
