# Diffbot NL

> **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.

> 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 |
|--------|----------|------|
| **x402 (Base)** | `https://diffbot-nl.x402.paywithlocus.com/diffbot-nl/` | HTTP 402 auto-payment |
| **MPP (Tempo)** | `https://diffbot-nl.mpp.paywithlocus.com/diffbot-nl/` | HTTP 402 auto-payment |
| **Wrapped API** | `https://api.paywithlocus.com/api/wrapped/diffbot-nl/` | `Authorization: Bearer <LOCUS_API_KEY>` |

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

## Endpoints

### Analyze Text

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

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

**Payment:** x402 `exact`

| 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.x402.paywithlocus.com/diffbot-nl/analyze \
  -H "Content-Type: application/json" \
  -H "x-locus-request-id: <UUID from the 402 response>" \
  -d '{"content":"<object[] | string>","fields":"<string>"}'
```
