Latency Testing Examples
Ddosify Latency Testing API Examples
Here are the examples of the Load Testing API with cURL and Python.
cURL
Python
curl --location 'https://api.ddosify.com/v1/latency/test/' \
--header 'X-API-KEY: <API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"target": "https://ddosify.com",
"locations": ["*"]
}'
import requests
import json
url = "https://api.ddosify.com/v1/latency/test/"
payload = json.dumps({
"target": "https://ddosify.com",
"locations": [
"*"
]
})
headers = {
'X-API-KEY': '<API_KEY>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Last modified 3mo ago