Get request log data
deprecated
Project-scoped operation. Successful JSON and status-only responses vary by operation. The service does not declare a stable response schema for this operation; do not assume a collection envelope or undocumented fields.
GET
/
shield
/
analytics
/
requests
Get request log data
curl --request GET \
--url https://api.aptranet.com/shield/analytics/requests \
--header 'Aptranet-Secret: <api-key>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aptranet.com/shield/analytics/requests"
headers = {
"Authorization": "Bearer <token>",
"Aptranet-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Aptranet-Secret': '<api-key>'}
};
fetch('https://api.aptranet.com/shield/analytics/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aptranet.com/shield/analytics/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Aptranet-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"error_description": "<string>"
}Authorizations
Project API access key.
Current secret for the access key.
Query Parameters
Example:
"request_time"
Example:
"2024-04-13T00:00:00+01:00"
Required range:
0 <= x <= 100Required range:
0 <= x <= 100000Maximum array length:
10Required range:
100 <= x <= 599Available options:
DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE Maximum string length:
100Available options:
blocked, monitored, allowed, passed Available options:
captcha, challenge Maximum string length:
100Maximum array length:
10Maximum array length:
10Maximum array length:
10Maximum string length:
300Maximum array length:
10Maximum string length:
50Maximum array length:
10Maximum string length:
50Maximum array length:
5Maximum string length:
50Maximum array length:
10Maximum string length:
100Maximum array length:
10Maximum string length:
300Maximum array length:
10Maximum string length:
50Maximum array length:
10Maximum string length:
50Maximum array length:
10Maximum array length:
10Maximum array length:
5Maximum string length:
50Maximum array length:
10Maximum string length:
100Required range:
100 <= x <= 599Available options:
DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE Available options:
captcha, challenge Available options:
blocked, monitored, allowed, passed Response
Successful response.
Get request log data
curl --request GET \
--url https://api.aptranet.com/shield/analytics/requests \
--header 'Aptranet-Secret: <api-key>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aptranet.com/shield/analytics/requests"
headers = {
"Authorization": "Bearer <token>",
"Aptranet-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Aptranet-Secret': '<api-key>'}
};
fetch('https://api.aptranet.com/shield/analytics/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aptranet.com/shield/analytics/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Aptranet-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"error_description": "<string>"
}