API Tester
Test REST APIs online with custom headers, methods, and request bodies. View responses with syntax highlighting and performance metrics.
Frequently Asked Questions
What HTTP methods does the API tester support?
The API tester supports all common HTTP methods: GET (retrieve data), POST (create resources), PUT (update entire resources), PATCH (partial updates), and DELETE (remove resources). Each method has specific use cases in RESTful APIs. GET and DELETE typically don't include request bodies, while POST, PUT, and PATCH allow you to send JSON data in the request body.
How do I add custom headers to my API requests?
Click the "Headers" tab to add custom HTTP headers. Common headers include Authorization for API tokens (Bearer token, API keys), Content-Type for specifying data format (application/json, application/xml), Accept for response format, and custom headers like X-API-Key. Headers are essential for authentication, content negotiation, and API-specific requirements.
Can I test APIs that require authentication or API keys?
Yes! Add authentication headers in the Headers tab. For Bearer token authentication, add a header named "Authorization" with value "Bearer YOUR_TOKEN". For API key authentication, add the header specified in the API documentation (often X-API-Key or Authorization). The tool safely transmits these credentials with your requests for testing protected endpoints.
How do I send JSON data in POST and PUT requests?
Select POST, PUT, or PATCH method, then click the "Body" tab. Enter your JSON data in the text area. Make sure to include a Content-Type: application/json header. The tool will validate your JSON syntax and highlight errors. This is essential for creating or updating resources through REST APIs with properly formatted request payloads.
What information is shown in the API response section?
The response section displays HTTP status code (200, 404, 500, etc.), response time in milliseconds, response size in kilobytes, all response headers, and formatted response body. For JSON responses, the data is syntax-highlighted for easy reading. This comprehensive view helps debug API issues, verify endpoints, and analyze performance.
Is it safe to use this API tester with sensitive data?
The API tester makes requests directly from your browser to the target API endpoint. Your data is never stored on our servers. However, be cautious with sensitive API keys and credentials - only use them in secure, trusted environments. Consider using test/sandbox API credentials when available, and never share API keys or tokens publicly.