Jump to main content

Example calls

A good starting point in different environments.

These examples read the same collection. Change the filename to use another endpoint.

curl

curl -s https://dropsuite.surf/api/v1/http-status.json

Python

import urllib.request, json
url = "https://dropsuite.surf/api/v1/http-status.json"
data = json.load(urllib.request.urlopen(url))

fetch

const res = await fetch("https://dropsuite.surf/api/v1/http-status.json");
const data = await res.json();