SERP
Google Datasets
Google Dataset Search results — public datasets, data sources, and structured data.
POST
$0.01/call/v1/serp/google-datasetsUsage
const res = await fetch('https://api.yepapi.com/v1/serp/google-datasets', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ query: 'global climate temperature data', depth: 10 }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/serp/google-datasets \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "global climate temperature data", "depth": 10}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
query | string | Yes | Dataset search query to look up on Google Dataset Search | — |
depth | number | No | Number of results to return | 10 |
location_code | number | No | Target country code (e.g., 2840 for US). See Location Codes. | 2840 |
language | string | No | ISO language code (e.g., en, es) | "en" |
Response
{
"ok": true,
"data": {
"query": "global temperature data",
"totalResults": 119,
"results": [
{
"position": 1,
"type": "dataset",
"title": "Global Temperature Time Series",
"url": "",
"description": "",
"domain": ""
},
{
"position": 2,
"type": "dataset",
"title": "Global land and ocean temperature anomalies 1880-2024",
"url": "",
"description": "",
"domain": ""
},
{
"position": 3,
"type": "dataset",
"title": "Global Temperatures by Country",
"url": "",
"description": "",
"domain": ""
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.query | string | The dataset search query that was executed |
data.totalResults | number | Total number of datasets found matching the query |
data.results | object[] | Array of dataset result items |
data.results[].position | number | Position in dataset search results (1-indexed) |
data.results[].type | string | Result type (typically dataset) |
data.results[].title | string | Name of the dataset |
data.results[].url | string | URL to access the dataset (may be empty) |
data.results[].description | string | Description of the dataset contents (may be empty) |
data.results[].domain | string | Domain hosting the dataset (may be empty) |
Under the Hood
Under the hood, this queries our SERP engine. We normalize the response format and flatten nested structures for consistency.