YepAPI
SERP

Google Datasets

Google Dataset Search results — public datasets, data sources, and structured data.

POST/v1/serp/google-datasets
$0.01/call

Usage

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

ParameterTypeRequiredDescriptionDefault
querystringYesDataset search query to look up on Google Dataset Search
depthnumberNoNumber of results to return10
location_codenumberNoTarget country code (e.g., 2840 for US). See Location Codes.2840
languagestringNoISO 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

FieldTypeDescription
okbooleanWhether the request succeeded
data.querystringThe dataset search query that was executed
data.totalResultsnumberTotal number of datasets found matching the query
data.resultsobject[]Array of dataset result items
data.results[].positionnumberPosition in dataset search results (1-indexed)
data.results[].typestringResult type (typically dataset)
data.results[].titlestringName of the dataset
data.results[].urlstringURL to access the dataset (may be empty)
data.results[].descriptionstringDescription of the dataset contents (may be empty)
data.results[].domainstringDomain 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.

On this page