# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/fool/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/fool/get-historical-prices \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/fool/get-stock-data \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/fool/get-transcript-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/fool/search-stocks \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.