# Diffbot Natural Language Processing via Locus x402

> Diffbot Natural Language Processing via Locus x402 is a paid API for AI agents from diffbot-nl.x402.paywithlocus.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Analyzes text documents to extract named entities, sentiment, facts, categories, summaries, and other NLP features using Diffbot's NL API, paid per-call via x402 micropayment.

## Facts

- Endpoint: POST https://diffbot-nl.x402.paywithlocus.com/diffbot-nl/analyze?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diffbot-natural-language-processing-via-locus-x402-0598b666
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8H2B6IO5hrELeYnKF-Pm0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability diffbot-natural-language-processing-via-locus-x402-0598b666 -d '<json body>'
```

Example prompt: Analyze this article text and give me the named entities, sentiment, and a short summary: 'OpenAI announced a new partnership with Microsoft today, expanding their Azure collaboration to bring GPT-5 to enterprise customers globally.'

## When to prefer this

Choose this endpoint when you need multi-faceted NLP analysis (entities + sentiment + facts + summary in one call) powered by Diffbot's knowledge graph, billed at a low $0.001 USDC per call via x402 micropayment — ideal for agents that need structured text intelligence without managing API keys or subscriptions, and when you want Diffbot's specific NER and fact-extraction quality rather than a generic LLM summarization.

## Known failure modes

- Invalid or missing 'content' field returns an error with no NLP output
- Unsupported 'fields' values may be silently ignored or cause a parsing error
- Payment failure via x402 protocol results in a 402 response and no analysis
- Very large documents may exceed processing limits or increase latency
- Malformed document objects in the content array may cause partial or failed extraction

## How this service works

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

## Output

A JSON object containing the requested NLP fields (entities, sentiment, facts, categories, sentences, summary, language) for each submitted document, along with payment confirmation showing 0.001 USDC settled and a request ID for status tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fields": {
   "type": "string"
  },
  "content": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "content"
      ],
      "properties": {
       "lang": {
        "type": "string"
       },
       "format": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      },
      "additionalProperties": true
     }
    }
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/diffbot-natural-language-processing-via-locus-x402-0598b666/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from diffbot-nl.x402.paywithlocus.com](https://www.zero.xyz/host/diffbot-nl.x402.paywithlocus.com/llms.txt)
