Skip to content
OSINTtools.io

Shorteners by Grayhatwarfare API

Searchable index of URLs found behind public link-shortener codes, filterable by keyword, domain and file type.

Base URL
https://shorteners.grayhatwarfare.com
Sign-in
Bearer token
Free tier
Free tier
Format
REST
Endpoints
4

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

Introduction

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.

Quick start

  1. Get a key

    Create an account with Shorteners by Grayhatwarfare and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Search shortened URLs by keyword, domain and extension.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://shorteners.grayhatwarfare.com/api/v1/files/0/10' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

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

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Free account gives a key; also accepted as access_token query parameter

Get a key from Shorteners by Grayhatwarfare

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

Rate limits and pricing

Not stated in the docs

Free tier.

Paged search over the index of shortened file URLs.

Path parameters

startintegerrequired

Index of the first URL

Example: 0Default: 0
limitintegerrequired

Number of URLs, 1 to 1000

Example: 10Default: 100

Query parameters

keywordsstring

Search query

Example: report
domainsstringtakes your domain

Comma-separated subdomains or subdomain IDs

Example: www.example.com
extstring

Comma-separated extensions

Example: pdf,csv
orderstring

Sort property

One of: size, timestamp
directionstring

Sort direction

One of: asc, desc
Response fields · 12Show

urlsCountinteger

Total URLs matching the filters

startinteger

Index of the first URL returned

limitinteger

Number of URLs returned

idstring

Database ID; can change when indexes update

subDomainstring

Subdomain of the URL

regDomainstring

Registered domain

sizeinteger

Size in bytes; -1 when unknown

urlstring

The full URL

extstring

File extension

mimeTypestring

MIME type

shortUrlstring

The shortened URL

discoveredTimestampinteger

Unix time of discovery

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

Paged list of subdomains.

Path parameters

startintegerrequired

Index of the first subdomain

Example: 0Default: 0
limitintegerrequired

Number to return, 1 to 1000

Example: 10Default: 100

Query parameters

keywordsstringtakes your domain

Filter subdomains by text

Example: example
directionstring

Sort direction (order is count)

One of: asc, desc
Response fields · 5Show

domainsCountinteger

Total subdomains matching

idstring

Subdomain ID

subDomainstring

Subdomain

regDomainstring

Registered domain

urlsCountinteger

URLs on the subdomain

curl 'https://shorteners.grayhatwarfare.com/api/v1/subdomains/0/10' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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}

Same response structure as the files search.

Path parameters

subdomainstringrequiredtakes your domain

Domain name or subdomain ID; separate several with commas

Example: files.example.com
startintegerrequired

First index

Example: 0Default: 0
limitintegerrequired

Number, 1 to 1000

Example: 10Default: 100

Query parameters

keywordsstring

Search text

Example: report
extstring

Comma-separated extensions

Example: pdf
Response fields · 4Show

urlsCountinteger

Total URLs matching

urlstring

The full URL

shortUrlstring

The shortened URL

discoveredTimestampinteger

Unix time of discovery

curl 'https://shorteners.grayhatwarfare.com/api/v1/subdomain/files.example.com/files/0/10' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • 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 · 4Show

urlsCountinteger

Total URLs in the index

subdomainsCountinteger

Total subdomains in the index

lastUpdatedinteger

Unix time of the last index update

noticestring

Optional notice about your stats

curl 'https://shorteners.grayhatwarfare.com/api/v1/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "stats": {
    "urlsCount": 1000,
    "subdomainsCount": 50
  },
  "lastUpdated": 1767225600
}