Test REST API Online

Online REST API testing tool for API developers and testers. Test your RESTful API by making API calls directly from your browser.

Query Params

The authorization header will be automatically generated when you send the request. Read more about HTTP Authentication.

Headers

HTTP Message

Updated:

REST API Testing Online

Paste a REST endpoint URL, pick a method, and send the request from your browser — no account, no install. You get back the status code, the response time in milliseconds, and the response headers and body, formatted and validated. Requests are sent from the ReqBin server, not from your browser, so the endpoint sees a server-to-server call and CORS does not apply.

What if I do not have an endpoint to test yet?

Send the request to a ReqBin echo endpoint. Each one accepts a request and answers with a fixed JSON, XML or HTML body, so you can check that your method, headers and payload leave the browser the way you meant them to before you point the tool at a real API. No API key and no sign-up.

  • GET https://reqbin.com/echo/get/json — returns {"success": "true"}
  • POST https://reqbin.com/echo/post/json — returns {"success": "true"}
  • PUT https://reqbin.com/echo/put/json — returns {"success": "true"}
  • PATCH https://reqbin.com/echo/patch/json — returns {"success": "true"}
  • DELETE https://reqbin.com/echo/delete/json — returns {"success": "true"}
  • HEAD https://reqbin.com/echo/get/json — returns the response headers and no body, with Content-Type: application/json
  • OPTIONS https://reqbin.com/echo/options — returns Allow: GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS and the CORS headers
  • GET https://reqbin.com/echo/get/json/page/2 — returns a fixed sample of a paginated response: three items, a limit, and links.prev and links.next. The page number in the URL is not read, so every page returns the same body and the same links — it is a shape to parse, not a list to walk
  • GET https://reqbin.com/echo/get/xml — returns an XML <Response> with a response code and a message
  • POST https://reqbin.com/echo/post/xml — the same XML body, for testing an XML payload
  • POST https://reqbin.com/echo/post/form — accepts application/x-www-form-urlencoded and returns HTML

Every endpoint also answers on /sample/ instead of /echo/, so https://reqbin.com/sample/get/json is the same endpoint under a second path. The bodies are fixed and the endpoints keep no state, so two identical requests return the same response and nothing you send to them is kept.

How to test a REST API endpoint?

  1. Paste the endpoint URL into the address field above.
  2. Pick the HTTP method the endpoint expects: GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS.
  3. Add what the API needs in the tabs below the address field: query parameters in Params, the request body in Body, credentials in Auth, and any extra header such as Content-Type in Headers.
  4. Press Send, then read the status code, the response time and the body.
  5. Generate a PHP, Python, JavaScript/AJAX, Node.js, Java, C#/.NET or Curl/Bash snippet from the same request when it works.

What can I check in the response?

The status code and the response time in milliseconds come back with every request. The response body is formatted and validated, so a JSON syntax error in what the API returned shows up as an error rather than as one long line. The response headers are listed separately — that is where you check Content-Type, caching headers and the CORS headers an API sets.