How to Monitor an API
Adding an API to Pulsetic
Login to your Pulsetic account and add this monitor example: https://www.flickr.com/services/rest/
Go to Advanced Settings on this monitor after you've added it.
Now click on Request Settings and choose the HTTP Method you need: POST or GET in our case.
Using the Request Header section, we'll add two headers:
- method flickr.photos.getRecent
- api_key 327dbc2d2fbf49e534617ba694bf0a9f
Click the Update button.
Now, click the Response Settings tab and add rsp sta to the Response Text area.
Click the Update button.
On the right sidebar, click the Run Check & See Result button.
What should happen? Which should be the result of our example? A post/get request is being made to flickr.com with the following information attached:
- method = flickr.photos.getRecent
- api_key = 327dbc2d2fbf49e534617ba694bf0a9f
Based on the request, the website is returning an XML formatted response. Pulsetic is verifying whether the response contains the string "rsp sta" or not. If it exists, the status "200 OK" will be shown.