← All APIs Network

Curl HTTP Request API

Fetch any URL from the cloud and return its full response.

Send an HTTP request to any URL from our servers and receive the full response — including the status code, all response headers, and the body content. Supports GET, POST, PUT, PATCH, DELETE, and HEAD. Automatically follows up to 3 redirects. Useful for testing endpoints, verifying servers are responding correctly, debugging redirect chains, or fetching raw data without needing a local setup.

POSThttps://curl-http-request.underscoredone.com/curl
Pricing

$0.01 per request — pay via x402/USDC. No account needed.

How to call

Send a JSON body with a 'url' (required, must start with http:// or https://) and an optional 'method' field (defaults to GET). The response includes 'statusCode' (integer), 'headers' (object of key-value strings), 'body' (string, may be HTML, JSON, or plain text), 'durationMs' (how long the request took in milliseconds), and 'error' (null on success, or a plain-English message if the request could not be completed). Do not use this for private or internal network addresses. Redirects are followed automatically up to 3 times. If the target server is unreachable or times out, a 400 error is returned with a description of what went wrong.

Input parameters
NameTypeRequiredDescription
urlstringyesThe full web address you want to send a request to. Must start with http:// or https://.
methodstringnoThe type of request to make. Choose from GET, POST, PUT, PATCH, DELETE, or HEAD. Defaults to GET if not provided.
Example response
{
  "api_version": "1.0.0",
  "url": "https://httpbin.org/get",
  "method": "GET",
  "statusCode": 200,
  "headers": {
    "content-type": "application/json",
    "content-length": "307",
    "server": "gunicorn/19.9.0"
  },
  "body": "{\n  \"args\": {}, \n  \"headers\": {\n    \"Host\": \"httpbin.org\"\n  }, \n  \"url\": \"https://httpbin.org/get\"\n}",
  "durationMs": 312,
  "redirectChain": [],
  "error": null
}
Error responses
StatusMeaning
400Bad request — your input failed validation or could not be processed. Check the detail field for specifics.
402Payment required. Send a signed USDC payment on Base Mainnet or Solana Mainnet using the x402 protocol.
422Unprocessable — a required field is missing or the wrong type. Check the detail field for specifics.
Links