{"uid":"cap_THDw7Qi4zcxGfeYOC5auj","slug":"x402-onchainexpat-com-84857355","name":"x402.onchainexpat.com Residential Proxy Fetch","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-proxy/fetch","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Target URL to fetch through the residential proxy. Must start with http:// or https://"},"body":{"type":"string","description":"Request body (string or JSON-stringified)"},"method":{"type":"string","description":"HTTP method (default GET)"},"country":{"type":"string","description":"Optional 2-letter ISO country code to pin the exit IP (US, GB, DE, JP, BR, ...)"},"headers":{"type":"object","description":"Custom request headers to forward"},"session_id":{"type":"string","description":"1-8 alphanumeric chars to keep the same exit IP across requests"}}},"responseSchema":{"type":"object","properties":{"body":{"type":"string"},"country":{"type":"string"},"headers":{"type":"object"},"status_code":{"type":"integer"},"response_size_bytes":{"type":"integer"}}},"example":{"request":{"url":"https://example.com"},"response":{"body":"<!doctype html><html lang=\"en\"><head><title>Example Domain</title><link rel=\"icon\" href=\"data:,\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style></head><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p><p><a href=\"https://iana.org/domains/example\">Learn more</a></p></div></body></html>\n","country":"random","headers":{"age":"1763","date":"Tue, 16 Jun 2026 01:28:34 GMT","allow":"GET, HEAD","cf-ray":"a0c609df0ce2a151-CMH","server":"cloudflare","content-type":"text/html","last-modified":"Tue, 09 Jun 2026 21:01:00 GMT","cf-cache-status":"HIT"},"elapsed_ms":1412,"status_code":200,"response_size_bytes":559}},"exampleRequest":{"url":"https://example.com"},"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.77","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z6gZlc9zgEfAZ-Ph1m660","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches any URL through a residential proxy, returning the full HTTP response body, headers, status code, and latency","exampleAgentPrompt":"Can you fetch the contents of https://example.com through a residential proxy so it doesn't get blocked as a bot?","exampleUseCases":null,"resultDescription":"Returns the full HTML body of the target URL, along with response headers, HTTP status code, response size in bytes, elapsed time in milliseconds, and the country the request was routed through.","failureModes":["Target URL unreachable or returns non-200 status — status_code field reflects the upstream error","Invalid or malformed URL input — likely returns a 4xx error from the proxy service","Proxy timeout — elapsed_ms may be high and request may fail if the target is slow","Target site blocks all proxy traffic — returns error or empty body despite proxy use","Payment not included or insufficient — x402 payment required error before request is made"],"whenToPreferThis":"Choose this endpoint when you need to fetch web content through a residential IP to avoid bot detection, IP bans, or geo-restrictions. It is ideal when datacenter IPs are blocked and you need a real-looking residential request. Prefer this over generic HTTP fetch tools when target sites have anti-bot measures or rate limits tied to IP reputation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":13,"lastUsedAt":"2026-07-22T01:56:37.907Z","lastSuccessfullyRanAt":"2026-07-22T01:56:37.907Z","lastHealthCheckAt":"2026-09-14T12:33:28.128Z","isFirstParty":false}