Scripted API
Scripted API monitors are a flexible monitor type that let you test API behavior. Scripting lets you deploy monitors that respond to your API like a customer might, choosing different paths across your API depending on conditions you've scripted.
📄️ 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.
📄️ Getting Started
Get started with scripted APIs by creating a monitor to test the availability and functionality of your APIs in different locations. Scripted APIs allow you to monitor your APIs by writing scripts that simulate API requests and responses. node-fetch is the underlying technology that powers these monitors.
📄️ Examples
To execute your scripted API monitors using node-fetch make sure your script's syntax uses the variable $http to interact with and page respectively.