factqlDocs
Get an API key
Get started

Ask your data questions over one API

Send a question in plain English. FactQL writes the SQL, runs it against your tables, and returns the rows with a short explanation of what they show. Try it on the right with sample data; no signup needed.

A question in, an answer out

Every call needs your key in the X-API-Key header. The answer carries the SQL that ran, the rows it returned in data, and an explanation that describes only those rows.

curl -X POST "https://api.factql.ai/query" \
  -H "X-API-Key: $FACTQL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "What were the top 5 products by revenue?"}'

The endpoints

These are the endpoints you need to build on FactQL today. The full reference for the rest of the platform comes later; the OpenAPI file covers exactly the endpoints above.