# Fool — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access real-time stock data, historical price trends, analyst opinions, and complete earnings call transcripts from Motley Fool to research and analyze investment opportunities. Search stocks and retrieve detailed financial information to make informed investment decisions.

**Category:** Finance & Markets | **Website:** [fool.com/](https://fool.com/) | **Docs:** [parse.bot/marketplace/88908e80-34d6-45c9-900c-2c21f6bc072b/fool-com-api](https://parse.bot/marketplace/88908e80-34d6-45c9-900c-2c21f6bc072b/fool-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-fool-com-api-88908e80/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_historical_prices

Get historical OHLCV price data for a stock by its instrument ID. Returns chart bars for the specified timeframe and precision. The instrument_id is obtained from get_stock_data or search_stocks. Some instrument/timeframe combinations may not have data available upstream.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instrument_id` | string | Yes | Internal instrument ID obtained from get_stock_data (e.g. 202686 for AAPL). Passed as a numeric string. |
| `precision` | string | No | Data precision. Accepted values: Day, Hour, Minute. |
| `timeframe` | string | No | Timeframe for historical data. Accepted values: OneWeek, OneMonth, OneYear, FiveYears, Max. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fool-com-api-88908e80/get_historical_prices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id":"<string>","precision":"<string>","timeframe":"<string>"}'
```

### get_stock_data

Get basic stock info, instrument ID, articles, and analyst opinions for a given stock symbol. Returns recent articles from the quote page and Motley Fool analyst opinions when available. The instrument_id in the response is required for fetching historical prices via the get_historical_prices endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `symbol` | string | Yes | Stock ticker symbol (e.g. AAPL, TSLA, MSFT) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fool-com-api-88908e80/get_stock_data \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"<string>"}'
```

### get_transcript_details

Fetch the full text and key takeaways of an earnings call transcript. Requires a valid transcript path obtainable from the earnings-call-transcripts listing or from get_stock_data transcripts array. Returns stale_input with kind input_not_found if the transcript does not exist at the given path.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | URL path of the transcript on fool.com (e.g. /earnings/call-transcripts/2026/06/09/cracker-barrel-cbrl-q3-2026-earnings-transcript/) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fool-com-api-88908e80/get_transcript_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"path":"<string>"}'
```

### search_stocks

Search for a stock by symbol. Returns the same data as get_stock_data including instrument ID, articles, and analyst opinions. Equivalent to get_stock_data but accepts the symbol as a query parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Stock ticker symbol to search for (e.g. AAPL, TSLA, MSFT) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fool-com-api-88908e80/search_stocks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
