Skip to content
OSINTtools.io

URLhaus API

abuse.ch and Spamhaus database of URLs used to distribute malware, searchable on the web and through APIs and feeds.

Base URL
https://urlhaus-api.abuse.ch/v1
Sign-in
API key
Free tier
Free tier
Pricing
Free
Format
REST
Endpoints
5

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

Introduction

The URLhaus API answers questions about URLs that abuse.ch has recorded as distributing malware: whether a URL, host, payload hash, tag or malware family is known, and what is linked to it. An investigator uses it to check a suspicious link, a domain or IP, or a file hash.

Base URL is https://urlhaus-api.abuse.ch/v1/. Every request needs an Auth-Key header; keys are free from the abuse.ch Authentication Portal. The lookup endpoints are POST requests with form data and the recent-lists are GET. Responses are JSON and start with query_status.

The docs describe it as free under abuse.ch fair use; commercial use may need a paid plan. The payload download endpoint (/download/<sha256>/, a ZIP that may trigger antivirus) and the bulk dumps are not covered here.

Quick start

  1. Get a key

    Create an account with URLhaus and copy your api key (free tier). Where to get it

  2. Make your first request

    Recently added malware URLs (past 3 days, up to 1000).. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://urlhaus-api.abuse.ch/v1/urls/recent/' \
      -H 'Auth-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "query_status": "ok",
      "urls": [
        {
          "id": "100001",
          "url": "http://example.com/files/bin.sh",
          "url_status": "online",
          "host": "example.com",
          "date_added": "2026-01-01 00:00:00 UTC",
          "threat": "malware_download",
          "tags": [
            "elf"
          ]
        }
      ]
    }

Authentication

Send your API key in the Auth-Key header of every request.

Free key from the abuse.ch Authentication Portal

Get a key from URLhaus

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. Pricing: free.

Errors

StatusMeaning
200Errors are reported in the body as query_status: no_results, invalid_url, invalid_host, invalid_md5, invalid_sha256, http_get_expected, http_post_expected

Lookups

Returns the URL's status, threat, tags, blacklist listings and the payloads seen on it (up to 100).

Request body (form) · 1Show

urlstringalways present

The URL to look up

Response fields · 9Show

query_statusstring

ok, no_results, invalid_url

idstring

URLhaus ID

urlstring

The URL

url_statusstring

online, offline or unknown

hoststring

Hostname or IP of the URL

date_addedstring

When the URL was added

threatstring

malware_download

tagsarray

Tags on the URL

payloads[]object

Payloads seen on this URL (up to 100): file type, hashes, signature

curl -X POST 'https://urlhaus-api.abuse.ch/v1/url/' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "url": "http://example.com/files/bin.sh"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "id": "100001",
  "url": "http://example.com/files/bin.sh",
  "url_status": "offline",
  "host": "example.com",
  "date_added": "2026-01-01 00:00:00 UTC",
  "threat": "malware_download",
  "tags": [
    "elf"
  ],
  "payloads": [
    {
      "filename": "bin.sh",
      "file_type": "sh",
      "response_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "signature": null
    }
  ]
}

Returns first seen date, URL count, blacklist listings (not for IP addresses) and up to 100 URLs. Case-insensitive.

Request body (form) · 1Show

hoststringalways present

IPv4 address, hostname or domain

Response fields · 5Show

query_statusstring

ok or no_results

firstseenstring

When the host was first seen

url_countstring

Number of URLs on the host

blacklistsobject

surbl and spamhaus_dbl listings

urls[]object

URLs on the host (up to 100)

curl -X POST 'https://urlhaus-api.abuse.ch/v1/host/' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "host": "example.com"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "firstseen": "2026-01-01 00:00:00 UTC",
  "url_count": "1",
  "blacklists": {
    "surbl": "not listed",
    "spamhaus_dbl": "not listed"
  },
  "urls": [
    {
      "url": "http://example.com/files/bin.sh",
      "url_status": "offline"
    }
  ]
}

Returns file type, size, signature, first and last seen and up to 100 URLs that served it.

Request body (form) · 2Show

md5_hashstring

MD5 hash (use this or sha256_hash)

sha256_hashstring

SHA256 hash (use this or md5_hash)

Response fields · 7Show

query_statusstring

ok, no_results, invalid_md5, invalid_sha256

md5_hashstring

MD5 of the payload

sha256_hashstring

SHA256 of the payload

file_typestring

File type

signaturestring

Malware family signature

url_countstring

Number of URLs that served it

urls[]object

URLs (up to 100): url_id, url, url_status, filename, firstseen, lastseen

curl -X POST 'https://urlhaus-api.abuse.ch/v1/payload/' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "md5_hash": "00000000000000000000000000000000",
  "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
  "file_type": "elf",
  "signature": "ExampleFamily",
  "url_count": "1",
  "urls": [
    {
      "url_id": "100001",
      "url": "http://example.com/files/bin.sh",
      "url_status": "offline"
    }
  ]
}
  • Passive: the target is not contacted

Returns first and last seen, URL count and up to 1000 URLs. Case-insensitive.

Request body (form) · 1Show

tagstringalways present

Tag to look up

Response fields · 5Show

query_statusstring

ok or no_results

firstseenstring

First seen

lastseenstring

Last seen

url_countstring

Number of URLs with the tag

urls[]object

URLs with the tag (up to 1000)

curl -X POST 'https://urlhaus-api.abuse.ch/v1/tag/' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "tag": "elf"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "firstseen": "2026-01-01 00:00:00 UTC",
  "url_count": "1",
  "urls": [
    {
      "url": "http://example.com/files/bin.sh"
    }
  ]
}

Recent additions

  • Passive: the target is not contacted

Append limit/N/ to the path to cap the count, as in /urls/recent/limit/10/.

Response fields · 8Show

query_statusstring

ok

idstring

URLhaus ID

urlstring

The URL

url_statusstring

online, offline or unknown

hoststring

Host of the URL

date_addedstring

When added

threatstring

malware_download

tagsarray

Tags

curl 'https://urlhaus-api.abuse.ch/v1/urls/recent/' \
  -H 'Auth-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "urls": [
    {
      "id": "100001",
      "url": "http://example.com/files/bin.sh",
      "url_status": "online",
      "host": "example.com",
      "date_added": "2026-01-01 00:00:00 UTC",
      "threat": "malware_download",
      "tags": [
        "elf"
      ]
    }
  ]
}