API documentation

Get specific file content from archive

Returns the content of a single file inside an archive without downloading the whole archive. Use it for single files such as password lists or cookie files.

GET/v1/inventory/{id}/content
GETGet specific file content from archive
curl -X GET "https://api.darkradar.com/api/public/v1/inventory/507f1f77bcf86cd799439011/content?path=%2Fpasswords.txt" \
  -H "x-api-key: $DARKRADAR_API_KEY"
Response

Successfully retrieved file content

{
  "success": true,
  "message": "OK",
  "data": {
    "path": "/passwords.txt",
    "content": "base64_encoded_content_here",
    "encoding": "base64",
    "mimeType": "text/plain",
    "size": 1234
  },
  "meta": {
    "timestamp": "2024-02-01T10:30:45.123Z",
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "responseTime": 67
  }
}

Access

Scopeinventory:read
Plan entitlementapi_access

Path parameters

FieldsValues
id · string · requiredUnique identifier of the inventory item · Example: 507f1f77bcf86cd799439011

Query parameters

FieldsValues
path · string · requiredPath to the file within the archive · Example: /passwords.txt

Responses

200Successfully retrieved file content
400Invalid request (malformed id, missing or invalid field)
401Key missing, invalid, expired or revoked
403Insufficient scope, no API access in plan, or product not enabled
404Record not found or not owned by this key’s firm
408The request exceeded its maximum response time
429Rate limit exceeded; retry after a minute

Response limits

Rate limit500 requests per 15 min · per IP

Was this page helpful?