SQL Explainer API

POST

Translate any SQL query into plain English.

SQL Explainer analyzes SQL queries and provides clear, plain English explanations of what they do. Perfect for learning SQL, code reviews, or documentation.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/sqlexplainer
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "explanation": "This SQL query retrieves the names of users and the number of orders they have placed. It filters users who were created after January 1, 2024. The query then groups the results by user ID and only includes users who have placed more than 5 orders, finally ordering the results by the order count in descending order.",
    "operation": "SELECT",
    "tables": [
      "users",
      "orders"
    ],
    "complexity": "moderate"
  }
}

About the SQL Explainer API

Supports SELECT, INSERT, UPDATE, DELETE, CREATE, and other SQL statements. Choose brief, standard, or detailed explanation depth.

What people use it for

Learning SQL
Understand complex queries while learning database concepts
Code Reviews
Quickly grasp what SQL queries do during reviews
Documentation
Generate explanations for query documentation
Debugging
Understand legacy or unfamiliar queries

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use SQL Explainer

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the SQL Explainer API.

Read the docs →
Which types of SQL statements can this analyze?
It handles major database commands including SELECT, INSERT, UPDATE, DELETE, and CREATE statements, along with other common query types. Each response identifies the operation type and delivers a plain English breakdown of what the statement executes.
Can I adjust how detailed the generated explanation is?
Yes, on paid plans. You can request brief, standard, or detailed explanations depending on whether you need a quick summary for a pull request or an in-depth breakdown for team documentation.
Are query complexity ratings and detail depth controls included on the Free plan?
No. The complexity rating and the detail level parameter require a paid plan, starting with Starter. The Free plan provides basic explanations and extracted table lists for up to 20 queries per month.
How far does the Starter plan go for explaining SQL queries?
The Starter plan covers 20,000 SQL explanations every month. Each request uses 10 credits, which works out to $1.50 per 1,000 calls or about $0.0015 per query. If you only need to run occasional checks, the Free plan provides 20 calls each month.
Does the API identify the database tables referenced in each query?
Yes. Alongside the written explanation, the response returns a list of database tables referenced within the query. This lets you inspect which tables an operation targets without parsing the SQL syntax yourself.

Ready to build with SQL Explainer? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs