# AAA Search News Articles API

> Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

Source: https://www.sandbase.ai/apis/aaa/search-news-articles
API reference: https://www.sandbase.ai/apis/aaa/search-news-articles/docs

## Facts

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

## Call it

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |
| `page` | integer | no |  |
| `limit` | integer | no |  |
| `order` | string | no |  |
| `end_date` | string | no |  |
| `start_date` | string | no |  |

## FAQ

### How do I use the AAA Search News Articles API?

Send a POST request to https://api.sandbase.ai/v1/api/aaa/search-news-articles 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 AAA Search News Articles API cost?

$0.01 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 AAA Search News Articles API accept?

Required: query (string). Optional: page (integer), limit (integer), order (string), end_date (string) and start_date (string). The Parameters table and the Playground on this page list every field.

### What does the AAA Search News Articles API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

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

No. AAA Search News Articles 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 AAA API access separately.

## README

### AAA Search News Articles

Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "aaa/search-news-articles", "query": "gas prices"}'
```

This API runs asynchronously. `/v1/run` returns a task `id` with status `pending`; poll `GET https://api.sandbase.ai/v1/run/{id}` until `status` is `completed` and read the result from `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Keyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana. |
| `end_date` | string | No | Latest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now. |
| `limit` | integer | No | Articles per page, 1 to 100. |
| `order` | string | No | Sort direction by publication date. |
| `page` | integer | No | 1-based page number of the match set. |
| `start_date` | string | No | Earliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound. |

#### Pricing

Flat price per call. Failed calls are not charged.
