List portal user activity
1 min
GET
https://api.detected.app/api/v2/public/portal-users/activity
Query Parameters
- idstringDescription
- user_idstringDescription
- profile_idstringDescription
- emailstringDescription
- ipstringDescription
- typesstringDescription
- namestringDescription
- order_bystringDescriptionAlloweddescasc
- sort_bystringDescription
- pagestringDescription
Responses
200
- object
- dataProfilePortalUserActivityResponse
- idnumberrequiredDescription
- typestring<access_log>requiredDescriptionAllowedaccess_log
- userobjectDescription
- idnumberrequiredDescription
- namestringDescription
- emailstringrequiredDescription
- ipstringrequiredDescription
- browser_agentstringDescription
- session_informationobjectDescription
- citystringDescription
- regionstringDescription
- country_codestringDescription
- latitudestringDescription
- longitudestringDescription
- time_zonestringDescription
- privacy_nodeobjectDescription
- torbooleanDescription
- vpnbooleanDescription
- proxybooleanDescription
- relaybooleanDescription
- hostingbooleanDescription
- servicestringDescription
- updated_atstringrequiredDescription
- created_atstringrequiredDescription
Response Headers
- X-RateLimit-Limit
- X-RateLimit-Remaining
401
- object
- messagestringDescription
404
- object
- messagestringDescription
422
- object
- messagestringDescription
- example_fieldstring[]Description
429
- object
- messagestringDescription
curl
curl --request GET \
--url https://api.detected.app/api/v2/public/portal-users/activity \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.detected.app/api/v2/public/portal-users/activity", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.detected.app/api/v2/public/portal-users/activity")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.detected.app/api/v2/public/portal-users/activity"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK
{
"data": {
"id": 0,
"type": "",
"user": {
"id": 0,
"name": "",
"email": ""
},
"ip": "",
"browser_agent": "",
"session_information": {
"city": "",
"region": "",
"country_code": "",
"latitude": "",
"longitude": "",
"time_zone": "",
"privacy_node": {
"tor": false,
"vpn": false,
"proxy": false,
"relay": false,
"hosting": false,
"service": ""
}
},
"updated_at": "",
"created_at": ""
}
}401
// Unauthorized. The access token is missing, invalid or has expired.
{
"message": ""
}404
// Not Found. The requested resource does not exist, or is not available to your account.
{
"message": ""
}422
// Unprocessable Content. The request was understood but failed validation. The response lists the fields that failed and why.
{
"message": "",
"example_field": [
""
]
}429
// Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the Retry-After header before trying again.
{
"message": ""
}