API Requests - Overview

An API request is a message sent to an API's endpoint. The Requests tab in RapidAPI Studio is a full-featured, team-based API client. This API client allows you and your team to create groups of requests that can be parameterized for different environments and usage situations.

A group of requests like this is an essential component of a high-quality API strategy. Request groups can be used by API providers and third-parties to verify that the API endpoints continue to work as expected, whether you are building or updating the API, or you are ensuring that it is available in production. Requests are used to verify that the API's contract and service-level agreements (SLAs) are continuously being met.

The RapidAPI Requests API client in RapidAPI Studio has the following main features:

  • API requests are stored in the cloud, providing access to the same requests from multiple clients and by multiple team members.
  • Requests can be automatically created from an API's endpoints, including endpoints manually created in the Hub Listing tab of RapidAPI Studio, imported from an OpenAPI Specification (OAS) document that describes the API, or imported from a Postman Collection.
  • Requests can easily be reused in RapidAPI Testing (the Tests tab in RapidAPI Studio), allowing you to tests and maintain a high-quality API throughout its lifecycle.
  • Groups of API requests can be branched, allowing you or your team to create a separate version of the requests for long-term or experimental purposes.
  • Multiple types of APIs are supported, including REST, SOAP, and GraphQL.
  • API requests can be parameterized for different Environments or usage situations. This allows the team to use the same basic group of requests in multiple situations. This avoids complex, one-off hard-coding of request parameters.
  • API requests support highly-customized requests, including HTTP methods, headers, query parameters, request bodies, authentication, and cookies sessions.
  • Responses to requests can be viewed in multiple ways, including a web view, JSON, image, raw, and more.
  • A response history is available, allowing you to see information about previous invocations of a request.
  • Parameterized sample code in the programming language and library of your choice is available for each of your requests.

Create a simple GET request


To create a request, you must have an API Project. If you do not have an API Project, you can create a simple one named My API Requests (or similar) to act as you playground for playing with API Requests.

  1. Navigate to https://rapidapi.com/studio or click the My APIs link in the header of the API Hub. You may need to log in before accessing it.

  2. In the dropdown in the upper right, select Personal. This will display the API Projects in your Personal Account.

  3. Click on the API Project that you would like to use for sending requests. If needed, you can create one by clicking Add API Project in the upper right.

  1. In the center frame, next to Requests, click the + (Add Request).
  1. Click the new Request 1 request.

  2. In the HTTP method dropdown, select GET (it should already be selected).

  3. In the URL box to the right of the HTTP method dropdown, enter https://echo.paw.cloud. This is a simple service that responds with information about the request.

  4. Click Send. On the right, you should see a 200 OK response as well and information about the request.

  1. Click the Description tab in the center frame and rename the request GET Echo.

Create a POST request

  1. Click the vertical three dot menu next to your GET echo request (created above) and select Duplicate.

  2. Click the GET Echo Copy request.

  3. Change the HTTP method to POST.

  4. In the Description tab, change the request's name to POST Echo.

  5. Click the Headers tab and add header with a name of My-Test-Header and a value of Testing!.

  1. Click the Query parameter tab and enter a query parameter with a name of testqueryparameter and a value of myqueryvalue. This will append ?testqueryparameter-myqueryvalue to the request URL.

  2. Click the Body tab. Click JSON. Enter the following request body:

{"my-body-key": "my-body-value"}
  1. Click the Auth tab. Click Basic. Enter a Username of dummy and a Password of dummy.

  2. Click Send to send the request. Verify the following in the Response:

  • You receive a 200 OK response.
  • Your POST request URL has your testqueryparameter appended to it.
  • Your My-Test-Header was sent.
  • An Authorization header with an encoded value was sent. The API client Base64 encoded your Username and Password for you.
  • Your JSON body was sent with the request.
  1. In the Preview window in the bottom center, select the Node.js / Axios library from the dropdown (or your favorite option) and notice that the sample code is configured for you, including your query parameter, request headers and request body.