# Diffbot NL

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

> Natural language processing — NER, sentiment, facts, summarization.

**Category:** AI / NLP | **Website:** [www.diffbot.com](https://www.diffbot.com) | **Docs:** [docs.diffbot.com/reference/natural-language](https://docs.diffbot.com/reference/natural-language)

## Access Methods

| Method | Base URL | Auth |
|--------|----------|------|
| **MPP (Tempo)** | `https://diffbot-nl.mpp.paywithlocus.com/diffbot-nl/` | HTTP 402 auto-payment |
| **Wrapped API** | `https://beta-api.paywithlocus.com/api/wrapped/diffbot-nl/` | `Authorization: Bearer <LOCUS_API_KEY>` |

**OpenAPI discovery:** `GET https://diffbot-nl.mpp.paywithlocus.com/openapi.json`

## Endpoints

### Analyze Text

Perform NER, sentiment analysis, fact extraction, and summarization on text.

**Estimated cost:** $0.004+ (per 10k chars)

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `content` | object[] | string | Yes | Array of document objects with { content, lang?, format? } or a single text string |
| `fields` | string | No | Comma-separated NLP fields: entities, sentiment, facts, categories, sentences, summary, language |

```bash
curl -X POST https://diffbot-nl.mpp.paywithlocus.com/diffbot-nl/analyze \
  -H "Content-Type: application/json" \
  -d '{"content":"<object[] | string>","fields":"<string>"}'
```
