REST API Query Builder
Build perfect API requests visually — generate cURL, Python, JS, Node, Go, Java, PHP, Ruby instantly!
Build Your Request
Authorization
Query Parameters
Headers
Request Body (JSON)
Generated Code
About the REST API Query Builder
Pick an HTTP method, enter a URL, add query parameters and headers, choose an auth type (Bearer, Basic or API key) and add a JSON body if you need one. The tool writes a ready-to-run request. Query parameters are URL-encoded and added to the URL.
Example
Input: GET https://api.example.com/v1/users, Bearer token abc123, output cURL.
Output (excerpt):
curl -X GET "https://api.example.com/v1/users" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer abc123"
Limits
- Only the cURL and Python (requests) outputs are implemented at the moment. The JavaScript, Node.js, Go and Java options leave the output empty.
- For Basic auth, type
user:passwordin the token field and the tool Base64-encodes it. - Bodies are copied as typed and wrapped in single quotes for cURL, so a body that contains a single quote needs escaping.
- The tool never sends the request. It only writes the code, so run it from your terminal or script.
Privacy
All conversion happens in JavaScript inside your browser. The tool code on this page makes no network request with what you type, so your input is not uploaded or stored by PyInns. (The page itself still loads ads and shared libraries from third-party CDNs.)