# Scholar Web Search API

> Returns web search results tailored to academic and research topics. Supports filtering by publication year ranges and limiting the total result count.

Source: https://www.sandbase.ai/apis/scholar/search-web
API reference: https://www.sandbase.ai/apis/scholar/search-web/docs

## Facts

- Provider: Scholar
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/scholar/search-web`
- Price: $0.0036 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/scholar/search-web` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |
| `max_num_results` | integer | no |  |
| `as_ylo` | integer | no |  |
| `as_yhi` | integer | no |  |

## FAQ

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

Send a POST request to https://api.sandbase.ai/v1/api/scholar/search-web 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 Scholar Web Search API cost?

$0.0036 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 Scholar Web Search API accept?

Required: query (string). Optional: max_num_results (integer), as_ylo (integer) and as_yhi (integer). The Parameters table and the Playground on this page list every field.

### What does the Scholar 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 Scholar developer account or API key?

No. Scholar 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 Scholar API access separately.

## README

### Scholar Web Search API

Search for academic and research-oriented web content using a query string in `query`. You can also filter results within specific publication years.

#### Use cases

- Find web resources relevant to scientific and academic research topics.
- Filter scholarly search results between specific lower and upper publication years.
- Retrieve academic search snippets and titles for automated literature discovery.

#### Request

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

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Search query for scholarly materials. |
| `as_yhi` | integer | No | Year of publication upper bound. |
| `as_ylo` | integer | No | Year of publication lower bound. |
| `max_num_results` | integer | No | Maximum number of search results to return, up to 100. |

#### Example response

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

```json
{
  "results": [
    {
      "link": "https://openai.com/",
      "snippet": "We believe our research will eventually lead to artificial general intelligence, a system…",
      "title": "OpenAI | Research & Deployment"
    }
  ]
}
```

#### Notes

- Set `as_ylo` and `as_yhi` to constrain results by lower and upper publication years.
- `max_num_results` accepts an integer up to 100.
