{"uid":"cap_X-VxoUVRvMOvB6kp-npcm","slug":"url-extractor-from-text-79ec8f2d","name":"URL Extractor from Text","description":"Pay-per-call API for AI agents, settled in USDC on Base mainnet (eip155:8453) via the x402 protocol - no API keys, no signup, no subscription. Live crypto market data: BTC, ETH, SOL, USDC (USD Coin) prices with 24h change (source: OKX), Base mainnet chain snapshot (block height, gas price gwei), real-time USDC-on-Base transfer analytics (transfer count, volume, unique senders and recipients over recent blocks), and USDC/ETH wallet balances plus nonce for any address. Agent utility tools: deterministic JSON repair for LLM output (strip code fences, fix trailing commas, single quotes, unquoted keys, balance braces), DNS A/AAAA lookup, and URL extraction from arbitrary text. Every endpoint returns HTTP 402 with an x402 payment challenge in USDC on Base; pay with any wallet and retry with the PAYMENT-SIGNATURE header. MCP server at /mcp (streamable HTTP, 6 pay-per-call tools). Ideal for crypto portfolios, DeFi dashboards, market analysis agents, data pipelines, and LLM post-processing.","url":"https://cryptopulse.pythonanywhere.com/text/extract-urls?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"chain":{"chainId":8453,"network":"base-mainnet","blockHeight":21000000,"gasPriceGwei":0.05},"market":{"solana":{"usd":150,"usd_24h_change":-0.5},"bitcoin":{"usd":60000,"usd_24h_change":1.5},"ethereum":{"usd":3000,"usd_24h_change":2},"usd-coin":{"usd":1,"usd_24h_change":0}},"servedAt":1755430000}},"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_A94vjYvGKtAGccGFhAJwB","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":"Extracts all URLs found within arbitrary text input, returning a structured list of discovered links","exampleAgentPrompt":"Can you pull out all the URLs from this text for me: 'Check out https://example.com and also visit http://another-site.org for more info, or go to https://docs.example.com/guide'?","exampleUseCases":[{"title":"Link harvesting from raw content","prompt":"I just got a big blob of text from a newsletter and I need you to extract every URL mentioned in it so I can visit them — here's the text: 'This week: read our blog at https://blog.example.com, join the webinar at https://zoom.us/j/123456, and download the report at https://reports.example.com/q3.pdf'."},{"title":"Parsing URLs from LLM output","prompt":"My AI assistant just returned a long response with a bunch of links mixed into the prose — can you extract just the URLs from this text: 'You can learn more at https://openai.com/blog and the paper is at https://arxiv.org/abs/1234.5678, with code at https://github.com/example/repo'?"},{"title":"Extracting links from scraped web page text","prompt":"I scraped the raw text from a webpage and need to find all the URLs embedded in it — can you extract them from this: 'Visit our partners at https://partner1.com and https://partner2.io, and see the docs at https://docs.myservice.dev/start'?"}],"resultDescription":"A structured JSON response containing a list of all URLs extracted from the provided text input, including both HTTP and HTTPS links identified within the arbitrary string.","failureModes":["No text provided returns empty URL list or error","Malformed input schema may return HTTP 400","Payment not provided results in HTTP 402 with x402 payment challenge requiring USDC on Base mainnet","Text with no URLs returns an empty list","Very large text inputs may time out or be truncated"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract URLs from unstructured or semi-structured text without setting up API keys or subscriptions. It is ideal for agents processing LLM-generated content, scraped web text, email bodies, or chat messages where URLs are embedded in prose. Pay-per-call USDC micropayment via x402 makes it suitable for lightweight, on-demand workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:47:33.940Z","isFirstParty":false,"canonicalSlug":"url-extractor-from-text-79ec8f2d"}