Fetch a page with Web Data
curl --request POST \
--url https://api.floppydata.net/v2/web-data/fetch \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "https://example.com"
}
'import requests
url = "https://api.floppydata.net/v2/web-data/fetch"
payload = { "url": "https://example.com" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com'})
};
fetch('https://api.floppydata.net/v2/web-data/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"html": "<!doctype html><html><head><title>Example Domain</title></head><body>...</body></html>",
"sourceUrl": "https://example.com",
"fetchedAt": "2026-06-10T12:00:00.000Z"
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}Web Data
Fetch
Fetches a target page through Web Data and returns the fetched HTML. Upstream scrape failures return structured v2 JSON errors with message “Failed to scrape the URL” and safe metadata only. Use this for page retrieval. Do not use it for usage reporting; use getWebDataUsage or getAccountUsage instead.
POST
https://api.floppydata.net
/
v2
/
web-data
/
fetch
Fetch a page with Web Data
curl --request POST \
--url https://api.floppydata.net/v2/web-data/fetch \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "https://example.com"
}
'import requests
url = "https://api.floppydata.net/v2/web-data/fetch"
payload = { "url": "https://example.com" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com'})
};
fetch('https://api.floppydata.net/v2/web-data/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"html": "<!doctype html><html><head><title>Example Domain</title></head><body>...</body></html>",
"sourceUrl": "https://example.com",
"fetchedAt": "2026-06-10T12:00:00.000Z"
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}This playground sends real production requests and can consume Web Data balance.
Authorizations
Client API key for the authenticated account.
Body
application/json
Target page URL to fetch through Web Data.
Example:
"https://example.com"
2-letter country code for the request exit location.
Pattern:
^[a-zA-Z]{2}$Example:
"US"
City for the request exit location.
Minimum string length:
1Example:
"New York"
Access difficulty pool. Defaults to the upstream default.
Available options:
low, medium Example:
"low"
Maximum age of cached content in days.
Required range:
0 <= x <= 9007199254740991Example:
0
Was this page helpful?