# Scholar Smart Search API

> Returns scholarly and academic search results matching a query. Supports filtering by publication year range and limiting the total number of returned entries.

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

## Facts

- Provider: Scholar
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/scholar/search-mixed`
- Price: $0.0036 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: academic search, 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-mixed` 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 Smart Search API?

Send a POST request to https://api.sandbase.ai/v1/api/scholar/search-mixed 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 Smart 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 Smart 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 Smart 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 Smart 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 Smart Search API

Search for academic and web materials using `query`. You can also filter publication dates with `as_ylo` and `as_yhi`.

#### Use cases

- Find academic papers and scholarly articles by topic.
- Filter scholarly search results within specific publication years.
- Retrieve relevant research paper links and snippets for automated review.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/scholar/search-mixed" \
  -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://www.mdpi.com/1999-5903/15/6/192",
      "snippet": "According to numerous reports, ChatGPT represents a significant breakthrough in the field…",
      "title": "Chatgpt and open-ai models: A preliminary review"
    }
  ]
}
```

#### Notes

- `max_num_results` accepts a value up to 100.
- Use `as_ylo` and `as_yhi` to specify lower and upper bounds for publication years.
