Paginated request log history
curl --request GET \
--url https://api.ngnmarket.com/v1/account/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ngnmarket.com/v1/account/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ngnmarket.com/v1/account/logs', 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.ngnmarket.com/v1/account/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ngnmarket.com/v1/account/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ngnmarket.com/v1/account/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ngnmarket.com/v1/account/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"logs": [
{
"id": 18471,
"method": "GET",
"endpoint": "/market/snapshot",
"status_code": 200,
"latency_ms": 42,
"ip_address": "102.89.23.14",
"timestamp": "2026-04-17T14:32:10.000Z"
},
{
"id": 18470,
"method": "GET",
"endpoint": "/companies/DANGCEM",
"status_code": 200,
"latency_ms": 67,
"ip_address": "102.89.23.14",
"timestamp": "2026-04-17T14:31:58.000Z"
}
],
"pagination": {
"page": 1,
"limit": 100,
"total": 4821,
"pages": 49
}
},
"meta": {
"plan": "starter",
"calls_used": 4822,
"calls_remaining": 95178,
"reset_at": "2026-05-15T23:57:00.000Z"
}
}Paginated request log history
Returns a paginated, reverse-chronological list of authenticated API requests made by the user over the last 30 days. Filter by status class or endpoint path using query parameters.
Plan required: Starter or higher
GET
/
account
/
logs
Paginated request log history
curl --request GET \
--url https://api.ngnmarket.com/v1/account/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ngnmarket.com/v1/account/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ngnmarket.com/v1/account/logs', 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.ngnmarket.com/v1/account/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ngnmarket.com/v1/account/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ngnmarket.com/v1/account/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ngnmarket.com/v1/account/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"logs": [
{
"id": 18471,
"method": "GET",
"endpoint": "/market/snapshot",
"status_code": 200,
"latency_ms": 42,
"ip_address": "102.89.23.14",
"timestamp": "2026-04-17T14:32:10.000Z"
},
{
"id": 18470,
"method": "GET",
"endpoint": "/companies/DANGCEM",
"status_code": 200,
"latency_ms": 67,
"ip_address": "102.89.23.14",
"timestamp": "2026-04-17T14:31:58.000Z"
}
],
"pagination": {
"page": 1,
"limit": 100,
"total": 4821,
"pages": 49
}
},
"meta": {
"plan": "starter",
"calls_used": 4822,
"calls_remaining": 95178,
"reset_at": "2026-05-15T23:57:00.000Z"
}
}Authorizations
Pass your API key as a Bearer token: Authorization: Bearer ngm_live_YOUR_KEY.
Generate keys at ngnmarket.com/dashboard/developer.
Query Parameters
Page number (1-based).
Required range:
x >= 1Number of log entries per page (1–1000).
Required range:
1 <= x <= 1000Filter by HTTP status class.
Available options:
2xx, 4xx, 5xx Filter by endpoint path (partial match).
Example:
"/market"