{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Executes a SQL query against Workers Analytics Engine data. Pass the SQL query as a query parameter. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Use the POST method for longer queries that may exceed URL length limits.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","examples":["023e105f4ecef8ad9ca31a8372d0c353"],"description":"Cloudflare account identifier."}},"required":["account_id"],"additionalProperties":false},"query":{"type":"object","properties":{"query":{"type":"string","examples":["SELECT blob1, count() FROM my_dataset WHERE timestamp > NOW() - INTERVAL '1' DAY GROUP BY blob1 ORDER BY count() DESC LIMIT 10"],"description":"Supply a SQL query to run against your Analytics Engine datasets. Use only SELECT statements. The service validates the query against a restricted SQL grammar before execution."}},"required":["query"],"additionalProperties":false}},"required":["path","query"],"additionalProperties":false},"name":"Execute an Analytics Engine SQL query via query parameter","id":"cloudflare.analytics-engine-sql-query-get","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"query":{"query":"SELECT blob1, count() FROM my_dataset WHERE timestamp > NOW() - INTERVAL '1' DAY GROUP BY blob1 ORDER BY count() DESC LIMIT 10"}},"maxRequests":1,"summary":false}}