# NLP Text Analysis API (language, sentiment, keywords, summary)

> NLP Text Analysis API (language, sentiment, keywords, summary) is a paid API for AI agents from api-production-17e1.up.railway.app, paid per call via x402, $0.001/call, status down (last checked 2026-08-24).

Performs local NLP on a text string in a single call — detecting language, scoring sentiment, extracting keywords, and returning an extractive summary — without an LLM round-trip.

## Facts

- Endpoint: GET https://api-production-17e1.up.railway.app/nlp
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-08-24
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nlp-text-analysis-api-language-sentiment-keywords-summary-466559eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-DUTIQJydv5AWguJFOFDN

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 nlp-text-analysis-api-language-sentiment-keywords-summary-466559eb
```

Example prompt: Analyze this customer review for me — detect the language, score the sentiment, pull out the main keywords, and give me a short extractive summary: 'The onboarding was confusing at first but the support team was incredibly responsive and resolved everything within an hour. Would recommend.'

## When to prefer this

Choose this endpoint when you need fast, cheap, multi-signal text analysis (language + sentiment + keywords + summary) in a single call without the latency or cost of an LLM. Ideal for mid-loop agent triage, classifying large volumes of text, or enriching data pipelines where LLM round-trips are too expensive.

## Known failure modes

- Missing or empty text parameter returns 400 error
- Text too long may be truncated or rejected
- Non-textual input (binary data, URLs) may yield poor or null results
- Payment failure via x402 returns 402 with payment details
- Service downtime returns 503

## How this service works

Local text analysis for AI agents — language detection, sentiment, keyword extraction, and an extractive summary, all from one call (no LLM round-trip). Pay-per-call in USDC via x402 — no signup, no API key. Use to triage/classify/summarize text cheaply mid-loop.

## Output

Returns language code (e.g. 'en'), sentiment score/label (positive/negative/neutral with confidence), a list of extracted keywords, and an extractive summary — all in one JSON response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The page URL to unfurl."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nlp-text-analysis-api-language-sentiment-keywords-summary-466559eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-17e1.up.railway.app](https://www.zero.xyz/host/api-production-17e1.up.railway.app/llms.txt)
