# Diffbot NL — 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.

> 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)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/diffbot-nl/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/diffbot-nl.md](https://paywithlocus.com/x402/diffbot-nl.md)

> Also available via MPP (no account needed): [mpp/diffbot-nl.md](https://paywithlocus.com/mpp/diffbot-nl.md)

## 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://api.paywithlocus.com/api/wrapped/diffbot-nl/analyze \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"<object[] | string>","fields":"<string>"}'
```
