API

DQHub API

A public, read-only HTTP API for browsing the marketplace programmatically — list and fetch rules and packs, compile them to your data-quality tool, and pull the reference value sets the checks join against. All endpoints below return JSON and need no API key.

Base URLhttps://www.dqhub.io

Responses are JSON. Errors use standard HTTP status codes (400 invalid request, 404 not found, 500 server error) with an { "error": "..." } body. Export endpoints emit watermarked content for download tracing.

Packs

Curated bundles of data-quality rules for a use case or standard.

GET/api/packs/:slug

Pack metadata (name, description, rule count, rating, tags) and its sample template.

Example
curl https://www.dqhub.io/api/packs/hmda-lar-reporting
GET/api/packs/:slug/rules

The ordered list of rules contained in a pack.

Example
curl https://www.dqhub.io/api/packs/hmda-lar-reporting/rules
GET/api/packs/:slug/template

Resolve a pack's sample template. Returns a presigned download URL when the template is offloaded to object storage, otherwise the template JSON inline.

Example
curl https://www.dqhub.io/api/packs/hmda-lar-reporting/template
GET/api/packs/:slug/export

Export every rule in a pack as a single file in the requested format.

Query parameters
  • formatdqhub (default), sql, soda, dbt, gx, spark, or odcs.
  • tableTable name to target in generated SQL. Default YOUR_TABLE.
  • dialectSQL dialect (e.g. snowflake, postgres, bigquery). Default generic.
Example
curl "https://www.dqhub.io/api/packs/hmda-lar-reporting/export?format=dqhub"

Exports are watermarked with a trace id for provenance. Sign in to attribute the download to your account.

Rules

Individual, reusable data-quality checks.

GET/api/rules

List and search rules.

Query parameters
  • qFull-text search across name and description.
  • categoryFilter by category (e.g. completeness, validity, uniqueness).
  • sortdownloads (default), stars, or newest.
  • pagePage number, 1-based. Default 1.
  • limitResults per page, 1–100. Default 20.
Example
curl "https://www.dqhub.io/api/rules?q=email&category=validity&limit=10"
GET/api/rules/:slug

Full detail for a single rule, including its YAML definition.

Example
curl https://www.dqhub.io/api/rules/email-format
GET/api/rules/:slug/export

Compile a single rule to a data-quality tool format.

Query parameters
  • formatrequiredsoda, dbt, great_expectations, sql, or spark.
  • dialectSQL dialect when format=sql. Default generic.
  • tableTable name to target. Default YOUR_TABLE.
Example
curl "https://www.dqhub.io/api/rules/email-format/export?format=soda"

Reference data & stats

Supporting value sets and marketplace metrics.

GET/api/reference/:set

Fetch a bundled value-set reference table (e.g. ISO 4217 currency codes).

Query parameters
  • formatjson (default) or csv.
Example
curl "https://www.dqhub.io/api/reference/iso4217?format=csv"
GET/api/stats

Marketplace totals — rule, pack, sector and download counts.

Example
curl https://www.dqhub.io/api/stats