Skip to main content

Overview

After collecting data with dataset pipelines, you can query it using SQL powered by DuckDB. This works directly on Parquet files — no separate database needed.
Requires the data extra: pip install "anysite-cli[data]"

SQL Queries

Run SQL against your collected dataset:

Query a Specific Source

Complex Queries

Interactive Mode

Launch an interactive SQL shell:
This opens a DuckDB shell with all your dataset sources available as tables. Type SQL queries and see results instantly.

Dataset Statistics

Get a summary of collected data:
Shows per-source:
  • Number of records collected
  • Collection timestamp
  • File size
  • Column list with types

Source-Level Stats

Dataset Profiling

Generate a statistical profile of your data:
Includes:
  • Column-level statistics (min, max, mean, median, null count)
  • Value distributions for categorical columns
  • Data quality indicators

Output Formats

Query results support the same output formats as API calls:

Commands Reference

Next Steps

Examples

See complete end-to-end workflow examples

Database Loading

Load query results into a persistent database