- Takes: Domain
- Takes: Name
- Passive: the target is not contacted
Returns files matching the keywords and filters. Keywords match the file name unless full-path is set.
Query parameters
keywordsSearch query (a regular expression when regexp is set)
bucketsComma-separated bucket IDs or URLs to search in
full-pathMatch keywords against the full path, not only the file name
extensionsComma-separated extensions to include
stopextensionsComma-separated extensions to exclude
typesComma-separated bucket types
orderSort property
directionSort direction
size-fromMinimum size in bytes
size-toMaximum size in bytes
limitResults per page, 1 to 1000
startOffset, used in offset paging mode
Response fields · 10ShowHide
results
Total matching files
id
File ID (may change when the index is updated)
bucket
Bucket name
bucketId
Bucket ID
filename
File name
fullPath
Full path in the bucket
url
URL of the file
size
Size in bytes
type
Bucket type
lastModified
Unix timestamp
curl 'https://buckets.grayhatwarfare.com/api/v2/files' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"meta": {
"results": 1
},
"files": [
{
"id": 1,
"bucket": "example-bucket",
"bucketId": 10,
"filename": "report.pdf",
"fullPath": "docs/report.pdf",
"url": "https://example-bucket.s3.amazonaws.com/docs/report.pdf",
"size": 2048,
"type": "aws",
"lastModified": 1700000000
}
]
}