Skip to main content
GET
/
v1
/
asset
/
{asset_id}
/
changelogs
Get Asset Changelogs for a given asset_id
curl --request GET \
  --url https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.projectdiscovery.io/v1/asset/{asset_id}/changelogs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "message": "<string>",
  "current_page": 123,
  "result_count": 123,
  "total_results": 123,
  "total_pages": 123,
  "data": [
    {
      "id": 123,
      "enumeration_id": "<string>",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "status_code": 123,
      "technologies": [
        "<string>"
      ],
      "webserver": "<string>",
      "request": "<string>",
      "response": "<string>",
      "cname": [
        "<string>"
      ],
      "labels": [
        "<string>"
      ],
      "ip": "<string>",
      "content_length": 123,
      "title": "<string>",
      "host": "<string>",
      "port": 123,
      "technology_details": "<string>",
      "is_new": true,
      "body": "<string>",
      "change_event": [
        {
          "name": "<string>",
          "from": "<unknown>",
          "to": "<unknown>"
        }
      ]
    }
  ]
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Path Parameters

asset_id
integer<int64>
required

Query Parameters

time
enum<string>
default:all_time

time filter to select

Available options:
last_day,
last_week,
last_month,
last_3_months,
last_6_months,
last_12_months,
all_time
event_type
string

comma separated event_type e.g. event_type=vul_status,vul_status_change

sort_asc
string

comma separated ascending sorting e.g sort_asc=created_at,severity

sort_desc
string

comma separated descending sorting e.g sort_desc=created_at,severity

limit
integer

number of results to get

offset
integer

number of results to skip

Response

Example response

message
string
required
current_page
integer
required
result_count
integer
required
total_results
integer
required
total_pages
integer
required
data
object[]
required