FlapMyPort API if fairly simple because it does only one task: gives you information about what happened on your network devices for a given period of time. You’ll find all supported requests on this page.

API usage examples

Get Review:

http://<path-to-api>/?review

(Default period is one hour)

Get Review Using Filter:

http://<path-to-api>/?review&filter=value

Filter is a simple string passed to server. API will return information only about events where hostname or interface name or interface description contains the string.

*Values should be URLEncoded. Only [A-Za-z0-9/-_] symbols are allowed.

Get Review Using Start time and End time:

http://<path-to-api>/?review&start=2016-07-17%2012:01&end=2016-07-17%2014:00:00

Get Review Using time interval in seconds:

http://<path-to-api>/?review&interval=7200

Get FlapChart by port and host:

http://<path-to-api>/?flaphistory&host=192.168.168.21&ifindex=509

Get FlapChart Using Start time and End time:

http://<path-to-api>/?flaphistory&host=192.168.168.21&ifindex=509&start=2016-07-17%2012:01&end=2016-07-17%2014:00:00

Check API

We recommend you to check user given API with built-in simple verifications mechanism.
Request the following URL:

http://<path-to-api>/api/?check

The response should be:

{"checkResult":"flapmyport"}

Virtual API

You can test some fetures with our Virtual API. See this page for more details.