Skip to main content

Get Residential Logs

Gets historical residential logs for the reseller account with pagination and filtering support. Logs are returned in reverse chronological order (newest first). The starting_after parameter enables cursor-based pagination.
GET/resi/logs

Authentication

Basic username/password authentication

Query Parameters

limit
Optional
Type:number
Description:

Number of logs to return

Validation:

Must be between 1 and 100

Default:10
starting_after
Optional
Type:string
Description:

For pagination, the ID of the log to start after. Returns logs that come before/older than this log, since logs are displayed in reverse chronological order

Validation:

Must be a valid log ID

startDate
Optional
Type:number
Description:

Filter logs from this timestamp onwards

Validation:

Must be a valid Unix timestamp

endDate
Optional
Type:number
Description:

Filter logs up to this timestamp

Validation:

Must be a valid Unix timestamp

Code Example

const axios = require('axios');

const url = "https://api.unknownproxies.com/api/v1/resi/logs";
const headers = {
"Authorization": "Basic dXNlcjpwYXNz",
"Content-Type": "application/json"
};

try {
const response = await axios.get(url, {
headers
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}

Response Example

{
  "logs": [
    {
      "id": "-OX23aaa3Vmaaar5b-Zi",
      "requestMethod": "GET",
      "requestedUrl": "/api/v1/resi/logs?limit=2&starting_after=-OX0aaaRYc4_aaasHaaa",
      "requestorIp": "127.0.0.1",
      "requestorUsername": "test1",
      "resellerUsername": "test1",
      "responseBody": {
        "hasMore": true,
        "logs": [...]
      },
      "responseStatus": 200,
      "responseTime": 574,
      "timestamp": 1754000027,
      "userAgent": "PostmanRuntime/7.45.0"
    }
  ],
  "hasMore": true,
  "starting_after": "-OX0i1e3JQON_8OlGlbW"
}