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}/contentGETGet specific file content from archivecurl -X GET "https://api.darkradar.com/api/public/v1/inventory/507f1f77bcf86cd799439011/content?path=%2Fpasswords.txt" \ -H "x-api-key: $DARKRADAR_API_KEY"
Response
{
"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
}
}Path parameters
| Fields | Values |
|---|---|
id · string · required | Unique identifier of the inventory item · Example: 507f1f77bcf86cd799439011 |
Query parameters
| Fields | Values |
|---|---|
path · string · required | Path to the file within the archive · Example: /passwords.txt |
Responses
200Successfully retrieved file content400Invalid request (malformed id, missing or invalid field)401Key missing, invalid, expired or revoked403Insufficient scope, no API access in plan, or product not enabled404Record not found or not owned by this key’s firm408The request exceeded its maximum response time429Rate limit exceeded; retry after a minuteResponse limits
Rate limit500 requests per 15 min · per IP