{"uid":"cap_8H2B6IO5hrELeYnKF-Pm0","slug":"diffbot-natural-language-processing-via-locus-x402-0598b666","name":"Diffbot Natural Language Processing via Locus x402","description":"Natural language processing — NER, sentiment, facts, summarization.","url":"https://diffbot-nl.x402.paywithlocus.com/diffbot-nl/analyze?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}]}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_95ptqsiMXdNSI-bTAM0HT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"Customer review sentiment analysis","prompt":"Run sentiment analysis and extract any named entities from these customer reviews — I want to know if people are happy and what products or brands they mention: 'The Nike Air Max was fantastic, delivered super fast by FedEx!'"},{"title":"News article entity extraction","prompt":"Pull out all the people, organizations, and locations mentioned in this news article, and give me a one-paragraph summary of what it's about: 'President Biden met with EU leaders in Brussels to discuss trade policy and energy security amid rising tensions with Russia.'"},{"title":"Multi-document fact extraction","prompt":"I have three research documents I'd like you to process — extract the key facts and categorize each one, and also detect whether they're written in English or another language."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:32:20.459Z","isFirstParty":false,"canonicalSlug":"diffbot-natural-language-processing-via-locus-x402-0598b666"}