# Nfib Sbet — 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 comprehensive small business economic data from the National Federation of Independent Business (NFIB), including the Optimism Index, historical time-series trends, and detailed survey microdata filterable by industry, region, and employer size. Useful for tracking small business sentiment and analyzing economic indicators over time.

**Category:** Finance & Markets | **Website:** [nfib-sbet.org/](https://nfib-sbet.org/) | **Docs:** [parse.bot/marketplace/eac9c026-4a06-4d8e-860f-4a734ae867f2/nfib-sbet-org-api](https://parse.bot/marketplace/eac9c026-4a06-4d8e-860f-4a734ae867f2/nfib-sbet-org-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-nfib-sbet-org-api-eac9c026/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_filtered_indicators

Retrieve indicator data filtered by industry, employee size, and region. Use indicator codes from list_indicators. Returns raw survey response counts and percentages broken down by response code. Each row represents one answer code for one month.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `employee_size` | string | No | Employee size filter. Accepted values: No Employees, 1-4, 5-8, 9-18, 19-38, 39+. |
| `indicators` | string | No | Comma-separated indicator codes from list_indicators (e.g., 'bus_cond_expect,sales_expect'). |
| `industry` | string | No | Industry filter. Accepted values: Construction, Manufacturing, Transportation, Wholesale, Retail, Agriculture, Finance, Services, Professions, Other. |
| `max_year` | string | No | End year for data range in YYYY format. |
| `min_year` | string | No | Start year for data range in YYYY format. |
| `region` | string | No | Region filter. Accepted values: Northeast, South Atlantic, East South Central, Great Lakes, Plaines, West South Central, Mountains, Pacific. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nfib-sbet-org-api-eac9c026/get_filtered_indicators \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"employee_size":"<string>","indicators":"<string>","industry":"<string>","max_year":"<string>","min_year":"<string>","region":"<string>"}'
```

### get_indicator_data

Retrieve historical time-series data for the Small Business Optimism Index (OPT_INDEX). Returns monthly values over the specified year range. Only OPT_INDEX is supported by the underlying data source; the indicator parameter is accepted but ignored.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `indicator` | string | No | Indicator code. Only OPT_INDEX is supported; this parameter is accepted but ignored. |
| `max_year` | string | No | End year for data range in YYYY format. |
| `min_year` | string | No | Start year for data range in YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nfib-sbet-org-api-eac9c026/get_indicator_data \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"indicator":"<string>","max_year":"<string>","min_year":"<string>"}'
```

### get_latest_optimism_index

Retrieve the latest value of the Small Business Optimism Index along with the 12 most recent monthly data points. Useful for dashboards and current-state monitoring without specifying a date range.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nfib-sbet-org-api-eac9c026/get_latest_optimism_index \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_microdata_trends

Retrieve question-level microdata survey trends with full response text, answer labels, and demographic breakdowns. Each row is one respondent-group observation for one month.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `employee_size` | string | No | Employee size filter. Accepted values: No Employees, 1-4, 5-8, 9-18, 19-38, 39+. |
| `industry` | string | No | Industry filter. Accepted values: Construction, Manufacturing, Transportation, Wholesale, Retail, Agriculture, Finance, Services, Professions, Other. |
| `max_year` | string | No | End year for data range in YYYY format. |
| `min_year` | string | No | Start year for data range in YYYY format. |
| `questions` | string | No | Question code(s) from list_indicators (e.g., 'bus_cond_expect'). |
| `region` | string | No | Region filter. Accepted values: Northeast, South Atlantic, East South Central, Great Lakes, Plaines, West South Central, Mountains, Pacific. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nfib-sbet-org-api-eac9c026/get_microdata_trends \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"employee_size":"<string>","industry":"<string>","max_year":"<string>","min_year":"<string>","questions":"<string>","region":"<string>"}'
```

### list_indicators

List all available indicator codes and their human-readable names. These codes are used as inputs for the get_filtered_indicators and get_microdata_trends endpoints. Returns a static catalog of ~29 indicators covering employment, sales, capital expenditure, credit, pricing, and other survey dimensions.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nfib-sbet-org-api-eac9c026/list_indicators \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
