REST API to Dataset Connector
Fetch paginated HTTPS endpoints and turn them into queryable SQL and Parquet tables.
Ingests public HTTPS GET and read-only POST JSON, CSV, or XML endpoints with declarative pagination, date windows, and rate-limit backoff. Captures byte-level provenance into typed SQL and Parquet tables.
What REST API to Dataset Connector does
REST API to Dataset Connector pulls paginated web APIs like government registries, economic indicators, and transit feeds into versioned tables without cron scripts. Recipes declare pagination cursors, Link headers, date windows, and per-host rate intervals.
Every fetched response is decoded through a pinned Reader and transformed via DuckDB SQL inside Mostly Right. Promoted snapshots expose filtering and aggregation over REST API, MCP, Parquet, CSV, and JSON.
Input & output example
Declarative pagination and date windows keep incremental refreshes predictable.
Paginated JSON API
GET https://api.example.gov/v2/series?page=1&limit=100
{ "next_cursor": "c_200", "results": [{ "id": "CPIAUCSL", "value": 314.2 }] }Flattened SQL table
| series_id | observed_date | value |
|---|---|---|
| CPIAUCSL | 2026-08-01 | 314.20 |
| CPIAUCSL | 2026-09-01 | 314.95 |
How it works
- 1
Declare endpoint URL and pagination rules
Configure base paths, query parameters, cursor/page offsets, or UTC date windows with explicit rate-limit budgets.
- 2
Decode responses with a pinned reader
Parse JSON arrays, NDJSON, CSV, or XML payloads into typed relational columns with byte-level source attribution.
- 3
Transform, deduplicate, and serve
Clean schemas in DuckDB SQL, run uniqueness checks, and serve via Parquet download, REST API, and MCP.
Try with an agent
Pre-loads REST API in chatBuild a macroeconomic indicators table
Fetch US inflation, unemployment, and treasury yield series from public REST APIs and refresh daily.
Ingest SEC EDGAR company facts
Pull quarterly revenue and net income from the SEC EDGAR XBRL REST API for S&P 500 issuers.
Common use cases
- Pulling government open-data APIs (FRED, SEC, Census)
- Incremental daily market or weather feeds
- Paginated JSON endpoints with cursor/offset rules
Details
- Category
- Connectors
- Identifier
- rest-api
- Inputs
- HTTPS GET / read-only POST · JSON / CSV / XML payloads
- Outputs
- Normalized rows · Partitioned Parquet
- Dataset delivery
- Parquet · CSV · JSON · SQL · REST API · MCP
Frequently asked questions
What pagination modes are supported?
Offset, page number, cursor token, Link headers, and date-windowed partitions are declared directly in the recipe.
How are API rate limits respected?
Connectors declare request budgets and minimum pacing intervals so upstream public endpoints are never flooded.
Can REST API ingestion pull incremental date ranges instead of full reloads?
Yes. Windowed recipes slice requests by UTC day or hour and merge new partitions cleanly into table history.