Try it
Find the API a page gets its data from, debug what a single-page app fetches, or check which cookies a site sets on first visit.
The same from code
POST /v1/functions/rawpage with your API key returns application/json — more options than here, such as your own proxy or a browser of your choice. All raw page fields.
curl -s https://cdpfleet.com/v1/functions/rawpage \
-H "x-api-key: $CDPFLEET_API_KEY" -H "content-type: application/json" \
-d '{"url":"https://example.com/","include":["html","requests","cookies"]}' -o page.json -D - | grep -i '^x-call-id'
// Node.js 18+: save as rawpage.mjs, run node rawpage.mjs
const res = await fetch('https://cdpfleet.com/v1/functions/rawpage', {
method: 'POST',
headers: { 'x-api-key': process.env.CDPFLEET_API_KEY, 'content-type': 'application/json' },
body: JSON.stringify({
url: 'https://example.com/',
include: ['html', 'requests', 'cookies'],
}),
signal: AbortSignal.timeout(30000),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`); // 429: wait Retry-After seconds
console.log(await res.text());
# Python 3 with requests (pip install requests): save as rawpage.py, run python rawpage.py
import os
import requests
r = requests.post(
"https://cdpfleet.com/v1/functions/rawpage",
headers={"x-api-key": os.environ["CDPFLEET_API_KEY"]},
json={
"url": "https://example.com/",
"include": ["html", "requests", "cookies"],
},
timeout=30,
)
if not r.ok:
raise SystemExit(f"{r.status_code} {r.text}") # 429: wait r.headers["Retry-After"] seconds
print(r.text)
// Java 17+: save as Main.java, run java Main.java
import java.net.URI;
import java.net.http.*;
import java.time.Duration;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"url": "https://example.com/",
"include": ["html", "requests", "cookies"]
}
""";
HttpResponse<byte[]> res = HttpClient.newHttpClient().send(
HttpRequest.newBuilder(URI.create("https://cdpfleet.com/v1/functions/rawpage"))
.header("x-api-key", System.getenv("CDPFLEET_API_KEY"))
.header("content-type", "application/json")
.timeout(Duration.ofSeconds(30))
.POST(HttpRequest.BodyPublishers.ofString(body))
.build(),
HttpResponse.BodyHandlers.ofByteArray());
if (res.statusCode() != 200) { // 429: wait Retry-After seconds
throw new RuntimeException(res.statusCode() + " " + new String(res.body()));
}
System.out.writeBytes(res.body()); // UTF-8 as it came
System.out.println();
}
}
// .NET 8+: dotnet new console, replace Program.cs with this, run dotnet run
using System.Text;
using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(30) };
http.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("CDPFLEET_API_KEY"));
var body = """
{
"url": "https://example.com/",
"include": ["html", "requests", "cookies"]
}
""";
var res = await http.PostAsync("https://cdpfleet.com/v1/functions/rawpage",
new StringContent(body, Encoding.UTF8, "application/json"));
if (!res.IsSuccessStatusCode) // 429: wait Retry-After seconds
throw new Exception($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
Console.WriteLine(await res.Content.ReadAsStringAsync());
// Go 1.21+: save as main.go, run go run main.go
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
"strings"
"time"
)
func main() {
body := `{
"url": "https://example.com/",
"include": ["html", "requests", "cookies"]
}`
req, _ := http.NewRequest("POST", "https://cdpfleet.com/v1/functions/rawpage", strings.NewReader(body))
req.Header.Set("x-api-key", os.Getenv("CDPFLEET_API_KEY"))
req.Header.Set("content-type", "application/json")
res, err := (&http.Client{Timeout: 30 * time.Second}).Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
data, err := io.ReadAll(res.Body)
if err != nil {
log.Fatal(err)
}
if res.StatusCode != http.StatusOK { // 429: wait Retry-After seconds
log.Fatalf("%s %s", res.Status, data)
}
fmt.Println(string(data))
}
Free tool limits
- 20 runs a day and 2 at once per address, after a quick Cloudflare check.
- Runs on a shared cdpfleet browser through the free Community proxy in the country you pick; at busy times a run can take longer or ask you to retry.
- Public pages only: private and local addresses are refused. Up to 60 seconds per page.
- For more — your own threads, your own or residential proxies, any browser and phone devices — call the same functions with an API key; the Community plan is free, and paid plans add more.