---
title: "Dataset Query"
method: POST
path: "/api/v2/dataset/query"
tags: ["v2 · Agent-first crawler API"]
---

# Dataset Query

`POST /api/v2/dataset/query`

## Request

- Base URL: `https://smartcrawler.io` (the document declares no server; this is the origin it was published from)
- URL: `https://smartcrawler.io/api/v2/dataset/query`
- Auth: none declared

查通用数据集(extracted_records)。默认只返 main;include_staging=true 带 staging。

## Headers

- `authorization` string
- `X-API-Key` string

## Request body

- DatasetQueryRequest
  - `dataset` string, required
  - `query` string, nullable
  - `entity_type` string, nullable
  - `include_staging` boolean
  - `limit` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent.md) · [All operations](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/llms.txt) · [OpenAPI document](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/revisions/a0eb313934e4?raw)
