{"uid":"cap_vbgPXHDomjUx1PfIjOVom","slug":"kihustle-sql-query-formatter-a6f3aa31","name":"KiHustle SQL Query Formatter","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/bot-bazaar/api/v1/sql-query-formatter?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9P0OzM7gTAfXl7Et0V3bm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats and beautifies raw SQL query text into clean, readable SQL","exampleAgentPrompt":"Can you format this SQL query to make it readable? SELECT u.id,u.name,o.total FROM users u JOIN orders o ON u.id=o.user_id WHERE o.total>100 ORDER BY o.total DESC","exampleUseCases":[{"title":"Cleaning up generated SQL","prompt":"I have some auto-generated SQL that's all on one line and hard to read — can you format it nicely? Here it is: SELECT p.id,p.title,c.name FROM products p LEFT JOIN categories c ON p.category_id=c.id WHERE p.active=1"},{"title":"Preparing SQL for documentation","prompt":"I need to include a SQL query in our technical docs but it looks like a mess. Please format this SQL with proper indentation and line breaks: SELECT a.account_id,SUM(t.amount) FROM accounts a INNER JOIN transactions t ON a.id=t.account_id GROUP BY a.account_id HAVING SUM(t.amount)>1000"},{"title":"Formatting SQL for code review","prompt":"Before I submit this pull request, can you clean up the formatting on this SQL query so the reviewers can actually read it? SELECT * FROM orders WHERE status='pending' AND created_at>NOW()-INTERVAL 7 DAY AND customer_id IN(SELECT id FROM customers WHERE country='DE')"}],"resultDescription":"A JSON object containing the formatted SQL query text, with proper indentation, line breaks, and keyword capitalization, returned under a 'result' field with a 'status' field indicating success.","failureModes":["Empty or missing 'text' field returns an error or empty result","Non-SQL text input may produce unexpected formatting output","Extremely long or complex queries may be truncated or malformed","Invalid JSON in request body returns a parse error","Network timeout on slow connections"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call SQL formatting service without committing to a full developer tooling subscription. Suitable for agents that occasionally need to clean up SQL queries as part of a larger workflow, especially when cost per call matters at $0.002 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:51:45.142Z","isFirstParty":false,"canonicalSlug":"kihustle-sql-query-formatter-796703e9"}