Live demo · no account needed
Try the API live
Real runs against Google and the open web, with the code to make the same call from your app. Need more than three requests? Sign up for 50 free credits.
POST/v1/run·google_serp
Run a live Google search and get organic results back as structured JSON.
Press Enter or the run button. Results appear here.
The same run with your API key on POST /v1/run
const response = await fetch("https://api.datafor.dev/v1/run", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.DATAFOR_API_KEY!,
},
body: JSON.stringify({
script_name: "google_serp",
params: {
"query": "best noise cancelling headphones",
"country": "us",
"language": "en",
"pages": 1
},
}),
});
const { result } = await response.json();
console.log(result);