Runscope API Monitoring    Learn More →

Monitoring API Performance with the New API Metrics Endpoint

By Heitor Tashiro Sergent on .

We have a new endpoint available for the Runscope API! Now you can retrieve your API tests performance metrics for each individual test, keep a pulse on your API's performance over time, and create custom internal or external dashboards with it.

The endpoint returns the same information that you can find in the Overview tab of your API test, under Test Performance:


Using the API Metrics endpoint

You can use the new endpoint by making a request to:<bucket_key>/tests/<test_id>/metrics

And you can filter the request by using 3 different parameters:

  • region - The service region you're using to run your tests (e.g. us1, us2, eu1, etc.)
  • timeframe - Hour, day, week, or month. Depending on the timeframe you use, the interval between the response times will be different.
  • environment_uuid - Filter by a specific environment, such as test, production, etc.

The endpoint will return the same information you can find in the dashboard. An example response will look like this:


Keep in mind that each element inside response_times can represent multiple test runs, depending on the time interval you use when calling the metrics API.

You can store that information in an external service if you want to keep track of performance for a period longer than 30 days, or if you want to build your own custom internal or external dashboard.

For more information about the endpoint, you can check out our API reference docs here. If you have any questions, please reach out to our awesome support team.

Categories: announcements, apis, monitoring, testing

Everything is going to be 200 OK®