Patrick Buxton
11/18/2026, 2:37 PMRocky
11/18/2026, 2:38 PMcurl).
What the docs do show:
• HTTP SQL API (POST /api/v1/catalogs/<catalog>/databases/<db>/sql, on the FE http_port, default 8030) — used directly over HTTP with Basic auth; response is newline-delimited JSON. It only supports SELECT, SHOW, EXPLAIN, and KILL, and one statement per request. There's no mention of a wrapper/driver for it.
• Official drivers/clients all use other protocols, not this API:
• Native JDBC driver (jdbc:starrocks://<fe_host>:<query_port>/<catalog>.<database>, MySQL protocol on 9030)
• Python client / SQLAlchemy dialect starrocks://...:9030
• Arrow Flight SQL JDBC driver (jdbc:arrow-flight-sql://..., Arrow Flight protocol)
• BI tools (DBeaver, MySQL Workbench, Tableau, Hex, etc.) connect as "MySQL" on port 9030
So in practice, "calling" it means writing your own thin client with any HTTP library (parse the NDJSON stream and handle `connectionId`/`meta`/`data`/`statistics`). That's exactly how the doc examples use it, and it's a reasonable pattern if you want SQL-over-HTTP without a MySQL client — but note the restricted statement support (no DDL/DML) compared to the MySQL protocol.
Caveat on honesty: this is based on the StarRocks docs I could search; there may be community/third-party projects using it that aren't documented. If you need certainty about a specific language or tool, check the StarRocks GitHub repo or ask in the community Slack/forum.
References
• sql-reference/http_sql_api.md
• administration/http_interface/http_interface.md
• administration/http_interface/query_detail.md
• quick_start/shared-nothing.md
• quick_start/shared-data.md
• integrations/JDBC_driver.md