1. Support
  2. Knowledge base
  3. API Monitoring

API Monitoring

We’re changing our user interface. Some info may not yet be up to date. Please check From classic to new UI.

An API (Application Programming Interface) is software that enables the communication between applications. Maybe you are using your own APIs and/or you rely on third-party APIs. Either way, the correct functioning of the APIs is crucial to the operation of your website and services, therefore you should monitor them.

API monitoring checks whether the APIs that you rely on are available, function correctly and perform well. More information can be found in the article What is API monitoring?.

Uptrends API monitoring offers different types of monitors to set up API monitoring. The choice of type depends on whether you have to deal with a single step or with a chain of requests consisting of multiple steps. The single-step monitor is defined using the Webservice HTTP or Webservice HTTPS monitor type. The monitor for a sequence of steps is defined using the Multi-step API monitor (MSA monitor) type.

Setting up API monitors

The setup of the different types of monitors is documented in these articles:

Defining Multi-step API monitor steps

When setting up a Multi-step API monitor you have to define the steps containing the HTTP requests that are part of the scenario you want to monitor. For each step you have to set the details for the request and the response part of the step. There are also some definitions for user-defined functions, variables and metrics. These are set globally (available to all steps). Check out the articles in the sections below to learn more about setting up the HTTP steps.

Request

The HTTP step request is set up by providing a method and a URL and the request body, then specifying further details like the authentication. See the articles below for more information.

Response

Within the response of the step you should define assertions. Assertions are checks that go one step beyond the question if there is a response to the request. An assertion will also check if the response is valid or arrives in time. For each step you can define a number of assertions. Find more information about assertions in these articles:

Global definitions

There are a number of things that you can define for all steps and both the request and response part of them. This comes in handy if you want to use a certain value or function across different steps. Read on in the following articles to find out more:

All articles in this category

  • Monitoring Web Services
    You may be familiar with Uptrends’ website monitoring and server monitor types, but Uptrends also supports monitoring the uptime of web services. Read on below to learn more… Which Web Services are supported? Uptrends supports REST, and SOAP, as well as any web services reachable through HTTP, HTTPS. How do these Web Services work with Uptrends? We monitor that the web service response is HTTP 200 OK, and measure resolve time/connection time, download time, and total time, just like HTTP(S) monitors Web service monitoring also supports Basic Authentication, content checks, etc.
  • Multi-step monitoring
    Learn how to work with redirects within your Multi-step API Monitors.
  • Multi-step monitoring Assertions
    Understanding assertions in Multi-step API Monitoring.
  • Multi-step monitoring Authentication
    Learn about the available options for authentication when using Multi-step API Monitoring.
  • Multi-step monitoring Client certificate authentication
    Many APIs require that the caller specifies authentication information to verify their identity, and possibly the access rights of that caller. Authentication information can be passed along using HTTP headers (Basic/NTLM/Digest authentication), by exchanging access tokens (OAuth), by requiring the client to include a client certificate in the request, or a combination. This article discusses the options for client certificates. To set up traditional authentication methods, please read the article on authentication types.
  • Multi-step monitoring comparison operators
    Learn about the comparison operators available to you when setting up Multi-Step API Monitoring.
  • Multi-step monitoring Sources
    How to extract values for assertions or variable assignment when setting up Multi-step API Monitoring.
  • Multi-step monitoring Variables
    How to use variables for storage of values extracted from your API responses for use in later steps.
  • Multi-step monitoring XPath examples
    This article features several examples for extracting content from XML responses using XPath. These XPath queries allow you inspect an XML response coming back from your API or web service as part of a Multi-step API monitor. An XPath query defines which part of the XML response you are interested in - typically a value contained in one of the XML nodes. You can then take that extracted value and check whether it satisfies certain conditions (using assertions), or store it in a variable for later use.
  • Setting up Custom API metric monitoring
    This article describes how you can use the Custom Metrics feature to capture data from APIs. This could be the API of a technical partner you are using for your business, or your own API that you’ve built to support your own customers or processes. It could even be a custom API you’ve built to collect or calculate your internal business metrics or platform metrics. Test tools and monitoring solutions help you to ensure your APIs work correctly, and this should be a vital part of your platform operations.
  • Setting up Multi-step API Monitoring
    Step-by-step instructions for setting up Multi-step API Monitoring.
  • SOAP Setup
    So you’re looking to add a SOAP monitor to your Uptrends account. That’s great! We’ve assembled a handy course on adding monitors in the Academy, but if you’re looking for a more SOAP specific approach, read on… Setting up a SOAP Web Service monitor To test a SOAP service, you typically want to call a method of that web service, by posting input data to it in the form of a SOAP envelope and then verifying that the response is correct.
  • Uptrends' client certificate public key information
    Using Uptrends public keys with your Multi-step API Monitor requests to ensure that API monitors originate from Uptrends.
  • User-defined functions
    An overview of available user-defined functions and how to use them
By using the Uptrends website, you consent to the use of cookies in accordance with our Cookie Policy.