{"openapi":"3.1.0","info":{"title":"FastScrape Microservice Node","description":"Pay-per-request x402 v2 content extraction API for AI agents. Payments settle in USDC on Base Mainnet.","version":"3.0.5","x-service-url":"https://fastscrape.benlab.download","x-category":"web-scraping","x-tags":["x402","ai-agents","web-scraping","markdown","pdf"]},"paths":{"/scrape":{"get":{"summary":"GET /scrape - Fetch a public webpage and return cleaned text, Markdown, and page metadata.","operationId":"scrape_get_scrape_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","minLength":8,"maxLength":4096,"title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["web-scraping"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.01","priceUsd":0.01,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}},"post":{"summary":"POST /scrape - Fetch a public webpage and return cleaned text, Markdown, and page metadata.","operationId":"scrape_post_scrape_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["web-scraping"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.01","priceUsd":0.01,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/html-to-md":{"get":{"summary":"GET /html-to-md - Convert supplied HTML into cleaned Markdown for agents and data pipelines.","operationId":"html_to_markdown_get_html_to_md_get","parameters":[{"name":"html","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Html"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["data-extraction"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.005","priceUsd":0.005,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}},"post":{"summary":"POST /html-to-md - Convert supplied HTML into cleaned Markdown for agents and data pipelines.","operationId":"html_to_markdown_post_html_to_md_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HtmlToMarkdownRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["data-extraction"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.005","priceUsd":0.005,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/pdf-parse":{"get":{"summary":"GET /pdf-parse - Download a public PDF safely in memory and return bounded extracted text and metadata.","operationId":"pdf_parse_get_pdf_parse_get","parameters":[{"name":"pdf_url","in":"query","required":true,"schema":{"type":"string","minLength":8,"maxLength":4096,"title":"Pdf Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["document-processing"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.02","priceUsd":0.02,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}},"post":{"summary":"POST /pdf-parse - Download a public PDF safely in memory and return bounded extracted text and metadata.","operationId":"pdf_parse_post_pdf_parse_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfParseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment requirements","schema":{"type":"string"}}}}},"tags":["document-processing"],"x-payment-info":{"protocol":"x402","version":2,"scheme":"exact","network":"eip155:8453","asset":"USDC","price":"$0.02","priceUsd":0.02,"payTo":"0xAED4a496Fed1132b94C0A5f9Fb5eE7cf63D869C2","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/live":{"get":{"summary":"Health Live","operationId":"health_live_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Live","operationId":"health_live_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/ready":{"get":{"summary":"Health Ready","operationId":"health_ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HtmlToMarkdownRequest":{"properties":{"html":{"type":"string","minLength":1,"title":"Html"}},"additionalProperties":false,"type":"object","required":["html"],"title":"HtmlToMarkdownRequest"},"PdfParseRequest":{"properties":{"pdf_url":{"type":"string","maxLength":4096,"minLength":8,"title":"Pdf Url"}},"additionalProperties":false,"type":"object","required":["pdf_url"],"title":"PdfParseRequest"},"ScrapeRequest":{"properties":{"url":{"type":"string","maxLength":4096,"minLength":8,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"ScrapeRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"externalDocs":{"description":"FastScrape source and releases","url":"https://github.com/BenColeAu/FastScrape-X402"}}