Skip to main content

Introduction

Scripted APIs allow you to monitor your APIs by writing scripts that simulate API requests and responses. You can use the IDE-style script editor to write scripts that make API requests, validate responses, and ensure specific elements are present.

Using the node-fetch module

API tests are powered by the node-fetch module, which is available through the $http object. The $http object provides a way to make HTTP requests and interact with the response. You can use the $http object to make GET, POST, PUT, DELETE, and other types of requests.

Result timing and har details will be provided as long as you use the $http object.

tip

Result timing and har details will be provided as long as you use the $http object.

FAQs

Can I write my own scripts?

  • Yes, you can write your own scripts to monitor your APIs. You can use the IDE-style script editor to write scripts that simulate API requests and responses.

How do I know if my APIs is functioning correctly?

  • You can monitor your APIs by writing scripts that simulate API requests and responses. You can use the IDE-style script editor to write scripts that make API requests, validate responses, and ensure specific elements are present.

Can I monitor my APIs from different locations?

  • Yes, you can monitor your APIs from different locations by selecting the desired location when creating a scripted monitor.

How do I view the results of my scripted monitor?

  • You can view the results of your scripted monitor in the Boltic console. The results include detailed logs, screenshots, and performance metrics.

Can I schedule my scripts to run at specific intervals?

  • Yes, you can schedule your scripts to run at specific intervals by setting up a monitoring schedule in the scripted monitor settings.

How do I debug my scripts?

  • You can debug your scripts by using the built-in validation tools in the IDE-style script editor. The validation tools help you identify and fix issues in your scripts.