{"uid":"cap_xIX3lQoKuxmJ4wjqo162M","slug":"url-extractor-from-arbitrary-text-bebe5a52","name":"URL Extractor from Arbitrary 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://baseusdcearn.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_tWuFlvBhg6Y_gZiXIcyMu","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 from 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 our blog at https://example.com/blog and our docs at https://docs.example.com, also see http://github.com/example for the source code'?","exampleUseCases":[{"title":"Extract links from LLM output","prompt":"I got a response from an AI that mentions several websites but they're buried in a paragraph — can you extract all the URLs from this text: 'Visit our homepage at https://mysite.com, check the tutorial at https://learn.mysite.com/start, and the API reference at https://api.mysite.com/docs'?"},{"title":"Parse URLs from scraped article","prompt":"Here's a raw block of scraped article text that mentions a bunch of links — can you extract every URL you find in it? The text is: 'According to Reuters (https://reuters.com/article/123) and Bloomberg (https://bloomberg.com/news/456), the market rose today. More at https://finance.yahoo.com.'"},{"title":"Find links in user-submitted content","prompt":"A user submitted this comment and I need to know if it contains any URLs for moderation — can you extract all links from: 'You should really visit http://suspicioussite.biz and also check out https://anotherlink.net/promo for great deals!'"}],"resultDescription":"Returns a JSON object containing a list of all URLs found in the provided text, including full HTTP/HTTPS addresses and any other URL patterns detected in the input string.","failureModes":["No text provided — returns empty URL list or error","Text contains no recognizable URLs — returns empty array","HTTP 402 returned if x402 payment challenge not fulfilled — requires USDC payment on Base mainnet and retry with PAYMENT-SIGNATURE header","Malformed or very long input text may cause parsing errors"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call URL extraction utility with no API key or signup required, especially within a workflow already using the x402/USDC payment protocol on Base mainnet. Ideal for pipelines processing LLM output or raw text that may contain embedded URLs needing further retrieval or validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:32:00.557Z","isFirstParty":false,"canonicalSlug":"url-extractor-from-arbitrary-text-bebe5a52"}