{"uid":"cap_oVazA2dFL1o_wriy6ctqd","slug":"diffbot-analyze-via-locus-x402-c18a33ac","name":"Diffbot Analyze via Locus x402","description":"Web data extraction — articles, products, discussions, images, videos, and auto-detect.","url":"https://diffbot.x402.paywithlocus.com/diffbot/analyze","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"},"fields":{"type":"string"},"timeout":{"type":"number"},"fallback":{"type":"string"},"discussion":{"type":"boolean"}}},"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.0042","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.0042/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0042","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0042","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PvxNIYFujcb9YDe0V5Uaq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0042","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured data from any web page URL by auto-detecting or targeting content type (article, product, discussion, image, video, list, event) using Diffbot's AI-powered parsing, billed per-call via x402 micropayments.","exampleAgentPrompt":"Can you pull the structured article content — title, author, date, and body text — from this URL: https://www.theverge.com/2024/5/1/example-article? Use article mode and also grab the links and meta fields.","exampleUseCases":[{"title":"E-commerce product data extraction","prompt":"Extract the product name, price, description, and images from this Amazon listing: https://www.amazon.com/dp/B0EXAMPLE — use product mode so I get the structured fields."},{"title":"News article summarization pipeline","prompt":"Grab the full article content from https://www.nytimes.com/2024/05/01/tech/example.html in article mode, including the author and publication date, so I can summarize it."},{"title":"Forum discussion thread scraping","prompt":"Pull all the comments and discussion threads from this Hacker News post — https://news.ycombinator.com/item?id=12345678 — using discussion mode so I get the nested replies too."}],"resultDescription":"Returns a JSON object with a 'data' field containing structured content parsed from the page (fields vary by detected/specified content type: article gives title, author, date, body text; product gives name, price, description, images; discussion gives comment threads; etc.), plus payment settlement details and a request ID for status tracking.","failureModes":["URL is paywalled or requires login — returns empty or partial data","Content type auto-detection misclassifies the page — use explicit 'mode' parameter to override","Target page returns a bot-blocking response — extraction fails or returns minimal data","Timeout exceeded for slow-loading pages — increase 'timeout' parameter or use fallback","Invalid or malformed URL — API returns an error response","Page has no extractable structured content — 'data' field may be sparse or empty"],"whenToPreferThis":"Choose this endpoint when you need structured, AI-parsed web content from an arbitrary URL without maintaining your own scraping infrastructure. It is especially strong for article, product, and discussion extraction where Diffbot's trained models outperform generic HTML parsers. The x402 micropayment model makes it cost-effective for per-call agent workflows without subscription overhead. Prefer it over generic HTTP fetch when you need semantic field extraction (author, price, comments) rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:27.524Z","isFirstParty":false}