{"openapi":"3.1.0","info":{"title":"Diffbot NL via Locus MPP","version":"1.0.0","description":"Natural language processing — NER, sentiment, facts, summarization.","contact":{"email":"api@paywithlocus.com"},"x-guidance":"Use the documented POST operations for Diffbot NL. Send JSON matching each requestBody schema. Unpaid public x402 requests return an x402 v2 payment challenge; retry the same body with PAYMENT-SIGNATURE and the returned x-locus-request-id."},"x-agentcash-guidance":{"llmsTxtUrl":"https://paywithlocus.com/mpp/diffbot-nl.md"},"x-service-info":{"categories":["ai"],"docs":{"homepage":"https://www.diffbot.com","apiReference":"https://docs.diffbot.com/reference/natural-language","llms":"https://paywithlocus.com/mpp/diffbot-nl.md"}},"paths":{"/diffbot-nl/analyze":{"post":{"operationId":"diffbot_nl_analyze","summary":"Analyze Text","description":"Perform NER, sentiment analysis, fact extraction, and summarization on text.","tags":["AI / NLP"],"security":[],"x-payment-info":{"intent":"charge","method":"tempo","amount":null,"currency":"0x20c000000000000000000000b9537d11c60e8b50","description":"$0.004+ (per 10k chars)"},"parameters":[{"name":"x-locus-request-id","in":"header","required":false,"description":"UUID returned by the initial 402. Echo it on the paid retry and later recovery attempts.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"description":"Array of document objects with { content, lang?, format? } or a single text string","anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"lang":{"type":"string"},"format":{"type":"string"}},"required":["content"],"additionalProperties":true}}]},"fields":{"type":"string","description":"Comma-separated NLP fields: entities, sentiment, facts, categories, sentences, summary, language"}},"required":["content"],"additionalProperties":true},"example":{"content":[{"content":"Microsoft is a software company based in Redmond, Washington.","lang":"en","format":"plain text"}],"fields":"entities,sentiment"}}}},"responses":{"200":{"description":"Successful response with PAYMENT-RESPONSE and durable request receipt"},"202":{"description":"The supplied request ID is already in progress"},"400":{"description":"Invalid request"},"402":{"description":"Payment Required"},"409":{"description":"Request ID conflict or terminal failed request"}}}}}}