# GrayhatWarfare Public Buckets API reference

> 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…

Source: https://osinttools.io/apis/grayhatwarfare-buckets/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/grayhatwarfare-buckets/

- Base URL: https://buckets.grayhatwarfare.com/api/v2
- Authentication: Bearer token in the `Authorization` header. Get a key: https://buckets.grayhatwarfare.com/ The key can also be sent as the access_token query parameter.
- Rate limits: No request rate stated; pages are capped at 1000 items and offset paging at 1,000,000 results
- Vendor docs: https://buckets.grayhatwarfare.com/docs/api/v2

## Overview

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.

## Search

### Search files in indexed open buckets.

`GET /files`

- Takes: Domain, Name
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `keywords` | query | string | no | Search query (a regular expression when regexp is set) Example: example |
| `buckets` | query | string | no | Comma-separated bucket IDs or URLs to search in Example: example-bucket |
| `full-path` | query | boolean | no | Match keywords against the full path, not only the file name Example: true |
| `extensions` | query | string | no | Comma-separated extensions to include Example: pdf,xlsx |
| `stopextensions` | query | string | no | Comma-separated extensions to exclude Example: jpg |
| `types` | query | string | no | Comma-separated bucket types Example: aws,azure |
| `order` | query | string | no | Sort property Example: size One of: size, last_modified |
| `direction` | query | string | no | Sort direction Example: desc One of: asc, desc |
| `size-from` | query | integer | no | Minimum size in bytes Example: 1000 |
| `size-to` | query | integer | no | Maximum size in bytes Example: 1000000 |
| `limit` | query | integer | no | Results per page, 1 to 1000 Example: 100 |
| `start` | query | integer | no | Offset, used in offset paging mode Example: 0 |

Response fields:

- `meta.results` (integer): Total matching files
- `files[].id` (integer): File ID (may change when the index is updated)
- `files[].bucket` (string): Bucket name
- `files[].bucketId` (integer): Bucket ID
- `files[].filename` (string): File name
- `files[].fullPath` (string): Full path in the bucket
- `files[].url` (string): URL of the file
- `files[].size` (integer): Size in bytes
- `files[].type` (string): Bucket type
- `files[].lastModified` (integer): Unix timestamp

```bash
curl 'https://buckets.grayhatwarfare.com/api/v2/files' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

### List and filter indexed buckets by name.

`GET /buckets`

- Takes: Domain, Name
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `keywords` | query | string | no | Search by bucket name Example: example |
| `type` | query | string | no | Filter by bucket type Example: aws One of: aws, azure, dos, gcp, ali |
| `order` | query | string | no | Sort property Example: fileCount One of: fileCount, bucketName |
| `direction` | query | string | no | Sort direction Example: desc One of: asc, desc |
| `limit` | query | integer | no | Results per page, 1 to 1000 Example: 100 |
| `start` | query | integer | no | Offset Example: 0 |

Response fields:

- `meta.results` (integer): Total matching buckets
- `buckets[].id` (integer): Bucket ID
- `buckets[].bucket` (string): Bucket name
- `buckets[].fileCount` (integer): Files indexed in the bucket
- `buckets[].type` (string): Bucket type

```bash
curl 'https://buckets.grayhatwarfare.com/api/v2/buckets' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "meta": {
    "results": 1
  },
  "buckets": [
    {
      "id": 10,
      "bucket": "example-bucket",
      "fileCount": 42,
      "type": "aws"
    }
  ]
}
```

## Account and index

### Statistics about the index.

`GET /stats`

- Footprint: passive (the target is not contacted)

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

Response fields:

- `stats.filesCount` (integer): Total files indexed
- `stats.awsCount` (integer): AWS files
- `stats.azureCount` (integer): Azure files
- `stats.dosCount` (integer): DigitalOcean Spaces files
- `stats.gcpCount` (integer): GCP files
- `stats.aliCount` (integer): Alibaba files
- `lastUpdated` (integer): Unix timestamp

```bash
curl 'https://buckets.grayhatwarfare.com/api/v2/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "stats": {
    "filesCount": 1000,
    "awsCount": 500,
    "azureCount": 200,
    "dosCount": 100,
    "gcpCount": 150,
    "aliCount": 50
  },
  "lastUpdated": 1700000000
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
