# Cabi — 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.

> Search and retrieve detailed information about plant diseases from the CABI Digital Library, including disease characteristics, symptoms, and management strategies. Find specific disease data by name or browse the comprehensive Compendium to identify and understand plant health issues.

**Category:** Healthcare | **Website:** [cabi.org/](https://cabi.org/) | **Docs:** [parse.bot/marketplace/42530ef0-02f0-4b63-a804-024c1f0cb47f/cabi-org-api](https://parse.bot/marketplace/42530ef0-02f0-4b63-a804-024c1f0cb47f/cabi-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-cabi-org-api-42530ef0/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_disease_details

Retrieve publicly available metadata for a single CABI Compendium disease datasheet. Returns the title, DOI, and an abstract description summarizing the datasheet's coverage. References are included when publicly loaded. Full datasheet content (host plants, control measures, distribution maps) requires institutional access and is not returned.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the disease datasheet page from search_diseases results (e.g. 'https://www.cabidigitallibrary.org/doi/10.1079/cabicompendium.40970') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cabi-org-api-42530ef0/get_disease_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_diseases

Full-text search across the CABI Compendium for plant disease datasheets. Returns up to 20 results per query, each carrying a title, URL, and compendium ID. Results are ordered by relevance. No pagination beyond the first page is supported.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term for plant diseases (e.g. 'late blight', 'Phytophthora') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cabi-org-api-42530ef0/search_diseases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
