# Shorteners by Grayhatwarfare API reference

> The Shorteners by Grayhatwarfare API searches an index of shortened URLs that point to files, with the target URL, size, extension, MIME type and discovery time. An investigator uses it to find shortlinks to documents or archives by keyword, extension or domain. Base URL is…

Source: https://osinttools.io/apis/grayhatwarfare-shorteners/ (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-shorteners/

- Base URL: https://shorteners.grayhatwarfare.com
- Authentication: Bearer token in the `Authorization` header. Get a key: https://shorteners.grayhatwarfare.com/ Free account gives a key; also accepted as access_token query parameter
- Free tier: yes
- Rate limits: Not stated in the docs
- Vendor docs: https://shorteners.grayhatwarfare.com/docs/api/v1

## Overview

The Shorteners by Grayhatwarfare API searches an index of shortened URLs that point to files, with the target URL, size, extension, MIME type and discovery time. An investigator uses it to find shortlinks to documents or archives by keyword, extension or domain.

Base URL is `https://shorteners.grayhatwarfare.com`. A key from a free account is sent as `Authorization: Bearer` or as `access_token` in the query string. Parameters must be URL-encoded.

Limits depend on the account: premium users can page without a limit with up to 1000 items per page; free users follow the packages page limits (numbers not in the API docs). Regex search and scrolling paging are enterprise only. Offset paging is capped at 1,000,000 results. Rate limits and error codes are not documented.

## Search

### Search shortened URLs by keyword, domain and extension.

`GET /api/v1/files/{start}/{limit}`

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

Paged search over the index of shortened file URLs.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `start` | path | integer | yes | Index of the first URL Example: 0 |
| `limit` | path | integer | yes | Number of URLs, 1 to 1000 Example: 10 |
| `keywords` | query | string | no | Search query Example: report |
| `domains` | query | string | no | Comma-separated subdomains or subdomain IDs Example: www.example.com |
| `ext` | query | string | no | Comma-separated extensions Example: pdf,csv |
| `order` | query | string | no | Sort property One of: size, timestamp |
| `direction` | query | string | no | Sort direction One of: asc, desc |

Response fields:

- `urlsCount` (integer): Total URLs matching the filters
- `start` (integer): Index of the first URL returned
- `limit` (integer): Number of URLs returned
- `urls[].id` (string): Database ID; can change when indexes update
- `urls[].subDomain` (string): Subdomain of the URL
- `urls[].regDomain` (string): Registered domain
- `urls[].size` (integer): Size in bytes; -1 when unknown
- `urls[].url` (string): The full URL
- `urls[].ext` (string): File extension
- `urls[].mimeType` (string): MIME type
- `urls[].shortUrl` (string): The shortened URL
- `urls[].discoveredTimestamp` (integer): Unix time of discovery

```bash
curl 'https://shorteners.grayhatwarfare.com/api/v1/files/0/10' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "urlsCount": 1,
  "start": 0,
  "limit": 10,
  "urls": [
    {
      "id": "abc123",
      "subDomain": "files.example.com",
      "regDomain": "example.com",
      "size": 1024,
      "url": "https://files.example.com/report.pdf",
      "ext": "pdf",
      "mimeType": "application/pdf",
      "shortUrl": "https://short.example.org/x1",
      "discoveredTimestamp": 1767225600
    }
  ]
}
```

### Search subdomains in the index with their URL counts.

`GET /api/v1/subdomains/{start}/{limit}`

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

Paged list of subdomains.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `start` | path | integer | yes | Index of the first subdomain Example: 0 |
| `limit` | path | integer | yes | Number to return, 1 to 1000 Example: 10 |
| `keywords` | query | string | no | Filter subdomains by text Example: example |
| `direction` | query | string | no | Sort direction (order is count) One of: asc, desc |

Response fields:

- `domainsCount` (integer): Total subdomains matching
- `subDomains[].id` (string): Subdomain ID
- `subDomains[].subDomain` (string): Subdomain
- `subDomains[].regDomain` (string): Registered domain
- `subDomains[].urlsCount` (integer): URLs on the subdomain

```bash
curl 'https://shorteners.grayhatwarfare.com/api/v1/subdomains/0/10' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "domainsCount": 1,
  "start": 0,
  "limit": 10,
  "subDomains": [
    {
      "id": "42",
      "subDomain": "files.example.com",
      "regDomain": "example.com",
      "urlsCount": 3
    }
  ],
  "order": "count",
  "direction": "desc"
}
```

### Search shortened URLs within one or more subdomains.

`GET /api/v1/subdomain/{subdomain}/files/{start}/{limit}`

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

Same response structure as the files search.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `subdomain` | path | string | yes | Domain name or subdomain ID; separate several with commas Example: files.example.com |
| `start` | path | integer | yes | First index Example: 0 |
| `limit` | path | integer | yes | Number, 1 to 1000 Example: 10 |
| `keywords` | query | string | no | Search text Example: report |
| `ext` | query | string | no | Comma-separated extensions Example: pdf |

Response fields:

- `urlsCount` (integer): Total URLs matching
- `urls[].url` (string): The full URL
- `urls[].shortUrl` (string): The shortened URL
- `urls[].discoveredTimestamp` (integer): Unix time of discovery

```bash
curl 'https://shorteners.grayhatwarfare.com/api/v1/subdomain/files.example.com/files/0/10' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "urlsCount": 1,
  "start": 0,
  "limit": 10,
  "urls": [
    {
      "url": "https://files.example.com/report.pdf",
      "shortUrl": "https://short.example.org/x1",
      "discoveredTimestamp": 1767225600
    }
  ]
}
```

## Account

### Index statistics.

`GET /api/v1/stats`

- Footprint: passive (the target is not contacted)

The docs place lastUpdated inside stats in the text but at the top level in the example; check the live response.

Response fields:

- `stats.urlsCount` (integer): Total URLs in the index
- `stats.subdomainsCount` (integer): Total subdomains in the index
- `lastUpdated` (integer): Unix time of the last index update
- `notice` (string): Optional notice about your stats

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

Example response (200):

```json
{
  "stats": {
    "urlsCount": 1000,
    "subdomainsCount": 50
  },
  "lastUpdated": 1767225600
}
```

---

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/
