Skip to content
OSINTtools.io

GrayhatWarfare Public Buckets API

Search engine for files in publicly open cloud storage buckets on AWS, Azure, Google Cloud, DigitalOcean and Alibaba.

Base URL
https://buckets.grayhatwarfare.com/api/v2
Sign-in
Bearer token
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from buckets.grayhatwarfare.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Buckets API searches the files and bucket names that GrayhatWarfare has indexed from publicly open cloud storage buckets (AWS, Azure, DigitalOcean Spaces, GCP, Alibaba). An investigator uses it to find exposed files or buckets by keyword, extension, size or date.

Calls go to https://buckets.grayhatwarfare.com/api/v2/ and need an API key from a free registration, sent as a Bearer token or as the access_token query parameter. GET parameters must be URL-encoded.

The docs state result and feature limits rather than a request rate: each page is capped at 1000 items, offset paging stops at 1,000,000 results, and regex search and unlimited scrolling are enterprise-only. IDs may change when the index is updated.

Quick start

  1. Get a key

    Create an account with GrayhatWarfare Public Buckets and copy your bearer token. Where to get it

  2. Make your first request

    Search files in indexed open buckets.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://buckets.grayhatwarfare.com/api/v2/files' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "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
        }
      ]
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

The key can also be sent as the access_token query parameter.

Get a key from GrayhatWarfare Public Buckets

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

No request rate stated; pages are capped at 1000 items and offset paging at 1,000,000 results

Returns files matching the keywords and filters. Keywords match the file name unless full-path is set.

Query parameters

keywordsstringtakes your name

Search query (a regular expression when regexp is set)

Example: example
bucketsstring

Comma-separated bucket IDs or URLs to search in

Example: example-bucket
full-pathboolean

Match keywords against the full path, not only the file name

Example: true
extensionsstring

Comma-separated extensions to include

Example: pdf,xlsx
stopextensionsstring

Comma-separated extensions to exclude

Example: jpg
typesstring

Comma-separated bucket types

Example: aws,azure
orderstring

Sort property

Example: sizeOne of: size, last_modified
directionstring

Sort direction

Example: descOne of: asc, desc
size-frominteger

Minimum size in bytes

Example: 1000
size-tointeger

Maximum size in bytes

Example: 1000000
limitinteger

Results per page, 1 to 1000

Example: 100Default: 100
startinteger

Offset, used in offset paging mode

Example: 0Default: 0
Response fields · 10Show

resultsinteger

Total matching files

idinteger

File ID (may change when the index is updated)

bucketstring

Bucket name

bucketIdinteger

Bucket ID

filenamestring

File name

fullPathstring

Full path in the bucket

urlstring

URL of the file

sizeinteger

Size in bytes

typestring

Bucket type

lastModifiedinteger

Unix timestamp

curl 'https://buckets.grayhatwarfare.com/api/v2/files' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
    }
  ]
}

Returns buckets whose name matches the keywords, with their file counts.

Query parameters

keywordsstringtakes your domain

Search by bucket name

Example: example
typestring

Filter by bucket type

Example: awsOne of: aws, azure, dos, gcp, ali
orderstring

Sort property

Example: fileCountOne of: fileCount, bucketName
directionstring

Sort direction

Example: descOne of: asc, desc
limitinteger

Results per page, 1 to 1000

Example: 100Default: 100
startinteger

Offset

Example: 0Default: 0
Response fields · 5Show

resultsinteger

Total matching buckets

idinteger

Bucket ID

bucketstring

Bucket name

fileCountinteger

Files indexed in the bucket

typestring

Bucket type

curl 'https://buckets.grayhatwarfare.com/api/v2/buckets' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "meta": {
    "results": 1
  },
  "buckets": [
    {
      "id": 10,
      "bucket": "example-bucket",
      "fileCount": 42,
      "type": "aws"
    }
  ]
}

Account and index

  • Passive: the target is not contacted

Returns file counts by bucket type and the time of the last index update.

Response fields · 7Show

filesCountinteger

Total files indexed

awsCountinteger

AWS files

azureCountinteger

Azure files

dosCountinteger

DigitalOcean Spaces files

gcpCountinteger

GCP files

aliCountinteger

Alibaba files

lastUpdatedinteger

Unix timestamp

curl 'https://buckets.grayhatwarfare.com/api/v2/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "stats": {
    "filesCount": 1000,
    "awsCount": 500,
    "azureCount": 200,
    "dosCount": 100,
    "gcpCount": 150,
    "aliCount": 50
  },
  "lastUpdated": 1700000000
}