7 Ways to Validate that Your APIs Are Working Correctly

Online products that provide a complex service typically rely on Application Programming Interfaces (APIs), utilizing online resources to provide basic information. The added value is in how their own software uses this information to create a new product that is of value to their users. The APIs that are utilized to create this unique product often include internal APIs developed by the company’s own developers.

A failure of any of the APIs that are involved in creating the final product means that the product will appear either down or partially down to the company’s user base. Therefore, all APIs that are critical components of a company’s product must be monitored, so that appropriate actions can be taken when an outage of some sort occurs.

There are many ways in which an API can be not fully functional. These include…

Continue reading

Tutorial: Creating Custom API Monitor Dashboards Using Javascript and JSON

API monitoring platforms like API Science provide the means for monitoring the APIs that are critical for your application. With the API Science platform, you can check APIs for uptime and performance each minute, define alerts that will be sent to your team based on the latest status of those APIs, review the performance history […]

Continue reading

Using JQuery and AJAX to Display API Data on a Web Page

My last post demonstrated how JavaScript and JQuery can be used to make a API call and embed the response into a Document Object Model (DOM) instance. In this post, I show how to access the API response data and present it on the web page. This is the next step in illustrating how the API Science API can be utilized to develop custom consoles and other applications that address your particular needs.

Continue reading

Using JavaScript and JQuery to Access API Monitor Data

The API Science API provides the capability for your custom software to access information about your API monitors. In this post, I provide an example of how you can create a web page that utilizes JQuery and custom JavaScript to bring data about a specific API monitor into a browser’s Document Object Model (DOM). Once […]

Continue reading

Introduction: Javascript and Custom API Dashboards

Javascript provides the capability for a company whose product is based on APIs to create custom dashboards that show their team the current status of the APIs that are critical for their product. If certain APIs are down, then their product is either down or partially down from the point of view of their customers. […]

Continue reading

How to Use the Results From One API Call in Another API Call

In many cases, the availability of your product depends on a sequence of API calls (to both external and internal APIs). Information retrieved from one API may be a critical input for your subsequent call to a different API. If the first call fails, the second can’t return a valid result. So, a question is: […]

Continue reading

Validating API Responses and Performance Using JavaScript

Determining the present state of an API that’s critical to your product’s performance is the reason why companies apply API monitoring on a 24/7 basis. If your product depends on a sequence of calls to multiple APIs (perhaps internal as well as external), your product could appear “down” to your customers if even one of […]

Continue reading

Using Regular Expressions and JavaScript to Validate API Responses

Regular expressions (RegEx) are “a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching.” Amazingly, the RegEx concept was invented back in the 1950s, by U.S. mathematician Stephen Cole Kleene, who was a student of Alan Turing, among others. In his book Mastering Regular Expressions, […]

Continue reading

Using JavaScript to Validate API Response Bodies

In prior posts, I’ve illustrated how API Science’s JavaScript validations capability can be used to validate API response timing versus data size, API HTTP response headers, and HTTP response status codes. What hasn’t yet been investigated is how you can use the API Science JavaScript validation facility to validate the API response body. We’ll use […]

Continue reading