Penguji API
Uji API HTTP dengan header dan body kustom โ GET, POST, PUT, DELETE, dan lainnya
Pemberitahuan Keamanan
Alat ini menggunakan proxy sisi server. JANGAN gunakan dengan kunci API produksi atau token sensitif.
Masukkan URL dan klik Kirim untuk menguji API
Tentang Alat Ini
API Tester is a free online tool for testing HTTP APIs without dealing with browser CORS restrictions. It supports all common HTTP methods including GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS. You can customize request headers, add request bodies in JSON or other formats, and view detailed response information including status codes, headers, and response time. The tool uses a server-side proxy to bypass CORS limitations, allowing you to test APIs from any domain. Whether you're debugging your own API endpoints, testing third-party services, or learning about HTTP protocols, this tool provides a simple and effective interface for API testing.
Cara Penggunaan
- Enter the target API URL in the address field. Make sure to include the full URL with protocol (http:// or https://).
- Select the HTTP method from the dropdown (GET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS).
- Click on the Headers tab to add custom headers. Use the preset buttons for common headers like Content-Type or Authorization, or add custom headers manually.
- For POST, PUT, or PATCH requests, switch to the Body tab and enter your request payload. You can format JSON using the Format JSON button.
- Click the Send button to execute the request. The response will show status code, response time, headers, and body content.
Pertanyaan yang Sering Diajukan
Contoh
Test GET Request โ Fetch User Data
Retrieve user information from a REST API. Use for: testing public APIs, verifying endpoints, checking response format.
GET https://jsonplaceholder.typicode.com/users/1Test POST Request โ Create New Resource
Send data to create a new record. Use for: form submissions, creating records, testing CRUD operations.
POST https://jsonplaceholder.typicode.com/posts
Body: {"title": "Test", "body": "Content", "userId": 1}Test PUT Request โ Update Resource
Replace an existing resource entirely. Use for: updating records, testing update endpoints.
PUT https://jsonplaceholder.typicode.com/posts/1
Body: {"id": 1, "title": "Updated", "body": "New content", "userId": 1}Test DELETE Request โ Remove Resource
Delete a resource from the server. Use for: testing delete endpoints, cleanup operations.
DELETE https://jsonplaceholder.typicode.com/posts/1Test API with Bearer Token Auth
Send authenticated request with JWT token. Use for: testing protected endpoints, OAuth flows.
GET https://api.example.com/profile
Headers: Authorization: Bearer eyJhbGciOiJIUzI1NiIs...Test API with API Key Authentication
Use X-API-Key header for authentication. Use for: third-party APIs, service integrations.
GET https://api.example.com/data
Headers: X-API-Key: your-api-key-hereTest JSON Placeholder API
Free fake API for testing and prototyping. Use for: learning REST APIs, testing tools, demos.
GET https://jsonplaceholder.typicode.com/postsTest Weather API Endpoint
Fetch weather data from public API. Use for: testing query parameters, JSON response parsing.
GET https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41¤t_weather=trueTest GraphQL API Endpoint
Send GraphQL query via POST. Use for: testing GraphQL servers, mutation testing.
POST https://countries.trevorblades.com/
Body: {"query": "{ country(code: \"US\") { name currency } }"}Test API Response Headers
Use HEAD method to check headers only. Use for: checking CORS headers, cache policies, rate limits.
HEAD https://api.github.comTest PATCH Request โ Partial Update
Update specific fields only. Use for: partial updates, modifying single properties.
PATCH https://jsonplaceholder.typicode.com/posts/1
Body: {"title": "New Title Only"}Test API with Custom User-Agent
Override User-Agent header. Use for: testing API behavior, bypassing bot detection.
GET https://httpbin.org/user-agent
Headers: User-Agent: MyCustomApp/1.0