API
The archive as JSON, with a free account’s key; the JA4X table needs a subscription. Every other route returns what a host, hub or file page shows.
Updated 2026-11-25 · Public Mosaic
Keys
Sign in on /indicators, then choose “Your API keys” to make one. A new key is shown once. An account holds up to 5 active keys, and a revoked key stops working at once.
Send the key in one header: Authorization: Bearer pm_… or x-api-key: pm_…. Where
Authorization is sent, x-api-key is not read, and a key in the URL is never read. The routes send
no CORS headers: call them from a server or a script.
curl -H "Authorization: Bearer $PM_KEY" \ https://publicmosaic.com/api/v1/ip/203.0.113.7 curl -H "x-api-key: $PM_KEY" \ "https://publicmosaic.com/api/v1/asn/64500?page=2"
The daily quota
An account makes up to 100 requests a UTC day, across all its keys. Every counted
response carries x-ratelimit-limit and x-ratelimit-remaining. Past the quota the
answer is a 429, whose retry-after is the seconds to the next UTC day.
A request is counted once its key is valid and its path names a route, whether or not this archive holds the
record, and a HEAD is counted like a GET; the errors below say which answers are not counted. Only GET and HEAD
are answered. Every response with a body is JSON, marked noindex. A client may reuse a response
for 60 seconds.
Free and paid
| What | Needs |
|---|---|
| The archive’s pages and the lookup box | No account |
| Rule files and hash lists | No account |
| The indicator feed and its files | No account |
| The API, except the JA4X table | A free account |
Checks of a pasted list, up to 100 addresses at a time (/indicators#paste) | No account |
The JA4X table: every template in the archive, as one file (/api/v1/ja4x.json) | A subscription |
Routes
| Route | Returns | Pages |
|---|---|---|
GET /api/v1/ip/{ip} | One address: every record this archive holds for it, and what its host page shows. | — |
GET /api/v1/cert/{sha256} | The hosts that presented one TLS certificate, by its SHA-256. | ?page= |
GET /api/v1/ja4x/{ja4x} | The hosts whose certificates share one JA4X template, and the template’s issuance cohorts. | ?page= |
GET /api/v1/asn/{asn} | The hosts on one network. The number may be written 64500 or AS64500. | ?page= |
GET /api/v1/payload/{sha256} | The hosts that served one file, by its SHA-256. | ?page= |
GET /api/v1/sample/{sha256} | One file with a family, and the listeners in this archive that served it. | — |
GET /api/v1/family/{slug} | The hosts of one family, by its slug: the family’s name with - for _. | ?page= |
GET /api/v1/families | Every family with a page, with its slug and the path of its page. | ?page= |
GET /api/v1/ja4x.json | Every JA4X template in the archive, with its JA4X+ entries, as one file. Needs a subscription. | — |
A route marked ?page= returns up to 100 rows a page, with
page and pages. Ask for the next with ?page=2, and stop at
pages. A page past 10,000 is not read.
The same routes, errors and fields as OpenAPI 3.1: /api/openapi.json.
Errors
Bodies are JSON, as served; the 405 has none.
| Status | Body | When | Quota |
|---|---|---|---|
| 401 | { "error": "api key required", "reason": "key-required", "get_a_key": "https://publicmosaic.com/indicators#account" } | No key was read: neither header was sent, or Authorization was sent without a Bearer key. | Not counted |
| 401 | { "error": "invalid api key", "reason": "key-invalid" } | The key is not one this site issued, or it was revoked. | Not counted |
| 402 | { "error": "subscription required", "reason": "not-subscribed" } | The key’s account has no active subscription paid through today: reason is not-subscribed, not-active or lapsed. Only /api/v1/ja4x.json answers it. | Not counted |
| 403 | { "error": "subscription required", "reason": "not-vetted" } | The subscription is paid, and the account is not yet verified for access or has not accepted the acceptable-use terms: reason is not-vetted or terms-not-accepted. Only /api/v1/ja4x.json answers it. | Not counted |
| 404 | { "error": "not found" } | No route matches: an address, hash, template, number or slug of the wrong form, or a page that is not a whole number from 1 to 10,000. | Not counted |
| 404 | { "error": "not found" } | The route matches, and this archive holds no record of the value, or the page is past the last. /api/v1/payload also answers it for a file only one host served, whose record names the file. | Counted |
| 308 | { "error": "moved", "location": "/api/v1/family/{slug}" } | The family is now published under another name. Follow the location header. Only /api/v1/family answers it. | Not counted |
| 410 | { "error": "withdrawn", "reason": "gone" } | The address’s page was removed. Only /api/v1/ip answers it. | Not counted |
| 429 | { "error": "daily quota exceeded", "reason": "quota", "limit": 100, "resets_in_seconds": 3600 } | The account has made its requests for the UTC day. retry-after equals resets_in_seconds. | Counted |
| 503 | { "error": "quota unavailable" } | The request could not be counted, so it was not answered. Retry after retry-after seconds. | Not counted |
| 503 | { "error": "suppression set unavailable" } | The address could not be checked before answering. Retry after retry-after seconds. Only /api/v1/ip answers it. | Not counted |
| 503 | { "error": "subscription unavailable" } | The subscription could not be checked, so the request was not answered. Retry after retry-after seconds. Only /api/v1/ja4x.json answers it. | Not counted |
| 503 | { "error": "archive unavailable" } | The archive could not be read after the request was counted. Retry after retry-after seconds. | Counted |
| 503 | { "error": "api not provisioned" } | The API is switched off. | Not counted |
| 405 | none | A method other than GET or HEAD. The allow header lists both. | Not counted |
Fields
Times are UTC: a field typed instant is RFC 3339, to the millisecond, and one typed day is YYYY-MM-DD. A field marked optional may be left out, and one naming hubs is on those hubs only; every other field is always present. A type with or null may be null. A linked word is defined on Methodology. New fields can appear; ignore what you do not read.
An address /api/v1/ip
| Field | Type | Holds |
|---|---|---|
ip | string | The address asked for. |
listed | boolean | Whether the feed lists any of the address’s records. listed |
records | array | Every record this archive holds for the address, one per listener: below. |
host | object or null | The address as one host. |
host. | instant | When this archive first recorded the address. in this archive since |
host. | day | The UTC day of its last confirmation. last confirmed |
host. | array of strings | The families of its records. |
host. | integer or null | The AS number of its network. |
host. | string or null | That network’s registered name. |
relations | array | The values this address shares with other hosts in this archive, in the host page’s order: below. |
relations_complete | boolean | false when a configuration value could not be counted, so its row is missing. |
unshared | array | How many of the address’s values no other host in this archive carries, by kind. |
unshared[]. | string | The kind of value. |
unshared[]. | integer | How many values of that kind. |
not_a_pivot | array | Values that link no hosts: an empty-name JA4X, a zero-byte file’s hash, or a configuration value too widely shared to link hosts. |
not_a_pivot[]. | string | The kind of value. |
not_a_pivot[]. | array of strings, optional | On a configuration value, the fields it is read under. |
not_a_pivot[]. | string | The value. |
not_a_pivot[]. | string | empty-dn, empty-file or shared-pivot. |
network_context | object | Where the address sits, each only where another host in this archive sits too. |
network_context. | object or null | The /24 around the address. |
network_context. | string | The /24, in CIDR form. |
network_context. | integer | Other hosts in this archive in that /24. other hosts |
network_context. | integer | How many of them are listed. listed |
network_context. | array | The networks the address’s records are on. |
network_context. | integer | The AS number. |
network_context. | string or null | Its registered name. |
network_context. | integer | Other hosts in this archive on that network. other hosts |
network_context. | integer | How many of them are listed. listed |
related | object | Other hosts by kind, at most 40 a kind, sorted by address as text (198.51.100.10 before 198.51.100.9); the /24’s hosts by number. |
related. | object | Hosts presenting the same certificate (cert), JA4X template (ja4x) or Cobalt Strike watermark (watermark), hosts that served the same file (payload), and hosts in the same /24 (net). |
related. | integer | How many such hosts in all. |
related. | array | The first of them, in that order. |
related. | string | The host’s address. |
related. | boolean | Whether the feed lists it. listed |
related. | string or null | One of its families. |
listing_recorded_since | day or null | When this archive began recording the days the feed lists an address. |
listed_days | integer or null | On how many of the recorded days the feed listed the address. Null, as are the four after it, where the host page states no count. |
days_recorded | integer or null | How many days this archive recorded in that range. |
listed_days_from | day or null | The range’s first day. |
listed_days_to | day or null | Its last day. |
listed_days_at_least | boolean or null | true when the count is a floor. |
served_files | array | The files the address served, one row per file and port, most recently seen first, at most 100. |
served_files[]. | string or null | The file’s SHA-256. |
served_files[]. | string or null | Its family. |
served_files[]. | integer or null | The port it was served on. |
served_files[]. | instant or null | When the file itself was first seen, not when this address served it. |
served_files[]. | instant or null | When the file was last seen. |
served_files_shown | integer | How many different files the rows name. |
served_files_total | integer | How many files the address served in all. |
changes_recorded_since | instant or null | When this archive began recording changes. Each record’s changes cover the time since. |
A record each of /api/v1/ip’s records
A field is omitted when the record carries no value for it or when the value cannot be published, so an omitted field never proves the record has none.
| Field | Type | Holds |
|---|---|---|
indicator | string | The listener, as ip:port. |
type | string | ip-port, domain-name or ipv4-addr. |
ip | string | The address. |
port | integer | The port. |
domain | string, optional | A name on the record: on a domain-name record, the name the record is for; on any other, the name the listener’s certificate presented. |
observed_host | string, optional | On any record but a domain-name record, the same name as domain: a name the certificate presented, often one borrowed from someone else. |
asn | integer, optional | The AS number of the record’s network. |
framework | string | The family. |
confidence | integer | The scanner’s score for the identification, 90 to 100. confidence |
transport | string | The transport protocol, such as tcp. |
first_seen | string | When the scanner first confirmed the listener, in its own form. The uuid is made from this text. first seen |
last_seen | string | When the scanner last confirmed it, in the same form. last confirmed |
cert_sha256 | string, optional | The SHA-256 of the TLS certificate the listener presented. |
ja4x | string, optional | The JA4X fingerprint of that certificate’s template. |
jarm | string, optional | The listener’s JARM fingerprint. |
cs_watermark | integer, optional | The Cobalt Strike watermark. |
payload_sha256 | string, optional | The SHA-256 of a file the listener served. |
payload_magic | string, optional | What that file is: elf, pe, or ctype where only its Content-Type header said so. |
host_role | string, optional | Where the host is not an ordinary listener, the scanner’s word for what it is; indicator_class gives the class. |
cs_beacon_config | object, optional | The Cobalt Strike beacon’s settings, by architecture. Each architecture’s keys: beacon_type, watermark, cs_version, port, http-get.uri, http-get.verb, http-post.uri, http-post.verb, useragent_header, sleeptime, jitter, server.publickey_md5, process-inject.stub, post-ex.spawnto_x86, post-ex.spawnto_x64, http-get.client, http-post.client, masked_watermark, process-inject.execute, procinj_transform_x86, gargle_sections. |
cert_detail | object, optional | The certificate’s fields, as presented. Keys: subject_cn, subject_o, issuer_cn, issuer_o, sans, not_before, not_after, self_signed, pubkey_bits, serial. |
configs | object, optional | Settings recovered from files, by family. Where basis is endpoint, the file’s configuration names this listener; where it is served_sample, the file is one this address served, and its settings describe that file and may name another host. Each family’s keys: host, port, uri, user_agent, mutex, sleep, jitter, version, campaign, group, install_path, type, beacon_type, basis. |
episode_id | integer or null | This archive’s id for the listener. |
rule_sid | integer or null | The sid every rule file gives the listener while the feed lists it. |
uuid | string or null | A version 5 UUID of the listener, which anyone can work out again: below. |
listed | boolean | Whether the feed lists this record. listed |
first_archived | instant or null | When this archive first recorded it. in this archive since |
first_seen_utc | instant or null | first_seen in RFC 3339, to the millisecond. |
last_seen_utc | instant or null | last_seen in RFC 3339. |
framework_prev | string or null | The one family this record was published under before, where it was relabelled. |
reclassified | boolean | Whether the record was ever relabelled. |
indicator_class | string | What the listener is: c2, phishing, booter, distribution, botnet, tool, unclassified or infected. |
asn_name | string or null | The registered name of the record’s network. |
cohort | object or null | The issuance cohort the certificate belongs to: certificates that share an issuance template. |
cohort. | string | The cohort’s key. |
cohort. | integer | The scanner’s count of its hosts. |
changes | array | What changed on the record since changes_recorded_since, by field, newest first. |
changes[]. | string | The record’s field, or cs_server_key: the team-server key inside cs_beacon_config. |
changes[]. | integer | How many changes to it. |
changes[]. | instant or null | When this archive recorded the first. |
changes[]. | array | The newest 3. |
changes[]. | string or null, optional | The value before, null where there was none. |
changes[]. | string or null, optional | The value after, null where there is none. |
changes[]. | instant or null | When this archive recorded the change. |
A relation each of /api/v1/ip’s relations
| Field | Type | Holds |
|---|---|---|
kind | string | payload, cskey, cert, cohort, ja4x, config, callback, callee or watermark. |
fields | array of strings, optional | On a configuration value, the fields it is read under. |
value | string | The value. |
other_hosts | integer | Other hosts in this archive that carry it. other hosts |
listed | integer or null | How many of them are listed. listed |
band | string | How widely it is shared: rare, uncommon or common. how widely a value is shared |
weak | boolean | true for callback, callee or watermark, which link hosts more loosely. |
hub | string or null | The path of the value’s page, or null where its hosts are listed on the host page alone. |
families | array | The other hosts’ families, most hosts first, at most 3. |
families[]. | string | The family. |
families[]. | integer | Its hosts among them. |
other_families | integer | How many more families. |
networks | integer or null | How many networks those hosts are on. |
same_hosts_as | object or null | On a cohort whose other hosts are exactly a certificate’s, that certificate. |
same_hosts_as. | string | Its kind. |
same_hosts_as. | string | Its value. |
A hub /api/v1/cert, ja4x, asn, payload and family
| Field | Type | Holds |
|---|---|---|
kind | string | cert, ja4x, asn, payload or family. |
key | string | The value, as the route reads it. |
page | integer | This page. |
pages | integer | How many pages. |
asn_name | string or null | The network’s registered name. On asn. |
org_name | string or null | The organisation the network is published under, where the feed carries one. On asn. |
mitre_attack | object or null | The family’s software as MITRE ATT&CK lists it; null where ATT&CK does not. On family. |
mitre_attack. | string | Its ATT&CK ID, such as S0154. On family. |
mitre_attack. | string | Its software type, as ATT&CK names it. On family. |
mitre_attack. | string | Its name in ATT&CK. On family. |
cohorts_total | integer | How many issuance cohorts the template has. On ja4x. |
cohorts | array | Its largest issuance cohorts the feed carries, at most 8: certificates that share an issuance template. On ja4x. |
cohorts[]. | string | The cohort’s key. On ja4x. |
cohorts[]. | string or null | The issuer name its certificates share. On ja4x. |
cohorts[]. | day | The day their validity begins. On ja4x. |
cohorts[]. | integer | The scanner’s count of its hosts. On ja4x. |
cohorts[]. | instant or null | When the feed last carried the cohort. On ja4x. |
relocations | array, optional | The scanner’s estimates of where the family’s hosts moved in the last 30 days, newest first, at most 12, each shown only where this archive also holds a host of this family on the network they moved to. On family. |
relocations[]. | integer | The network they moved to. On family. |
relocations[]. | day | The day of the estimate. On family. |
relocations[]. | string | Its size, as small, medium or large. On family. |
relocations[]. | string or null | That size as a range of hosts, as the page prints it. On family. |
relocations[]. | array of integers | The networks they were on before, lowest number first, at most 10; a list of 10 may be part of them. On family. |
relocations_total | integer, optional | How many estimates the 30 days hold. On family. |
relocations_total_at_least | boolean, optional | true when that count is a floor. On family. |
stats | object | Counts over every host on the hub, not this page alone. |
stats. | integer | Hosts. |
stats. | integer | How many of them are listed. listed |
stats. | integer | Their records. |
stats. | integer | The networks they are on. |
stats. | integer | Their families. |
stats. | instant or null | The earliest first sighting among them. first seen |
stats. | instant or null | The latest confirmation. last confirmed |
stats. | object | Hosts by class, keyed by the class. On cert, ja4x, asn, family. |
stats. | object | One class. On cert, ja4x, asn, family. |
stats. | integer | Its hosts. On cert, ja4x, asn, family. |
stats. | integer | How many are listed. On cert, ja4x, asn, family. listed |
stats. | integer | How many were seen serving a file. On cert, ja4x, asn, family. |
cert_detail | object, optional | The certificate’s fields, as presented. Keys: subject_cn, subject_o, issuer_cn, issuer_o, sans, not_before, not_after, self_signed, pubkey_bits, serial. On cert. |
ports | array, optional | The ports with the most hosts, at most 8. |
ports[]. | integer | The port. |
ports[]. | integer | Hosts using it. |
ports_total | integer, optional | How many ports the hosts use in all. |
hosts | array, optional | This page’s hosts, at most 100. |
hosts[]. | string | The address. |
hosts[]. | instant or null | Its first sighting on the hub. first seen |
hosts[]. | instant or null | Its last confirmation. last confirmed |
hosts[]. | boolean | Whether the feed lists it. listed |
hosts[]. | string or null | One of its families on the hub; families_n says how many. |
hosts[]. | integer | How many families it has there. |
hosts[]. | integer or null | Its AS number. |
hosts[]. | string or null | Its class over its records on the hub: the first of theirs in the order c2, phishing, booter, distribution, botnet, tool, unclassified, infected, or mixed where an infected record sits beside another class. |
hosts[]. | string or null | Its network’s registered name. |
hosts[]. | integer | Its records on the hub. |
A file /api/v1/sample
| Field | Type | Holds |
|---|---|---|
sha256 | string | The file’s SHA-256. |
family | string or null | Its family. |
confidence | integer | The score for that family, 90 to 100. confidence |
first_seen | string or null | When it was first seen, in the scanner’s own form. |
last_seen | string or null | When it was last seen. |
first_archived | instant or null | When this archive first recorded it. in this archive since |
first_seen_utc | instant or null | first_seen in RFC 3339. |
last_seen_utc | instant or null | last_seen in RFC 3339. |
served_by | array | The listeners in this archive that served it. |
served_by[]. | string | The address. |
served_by[]. | integer | The port. |
served_by[]. | boolean | Whether the feed lists it. listed |
served_by[]. | string or null | Its family. |
served_by_total | integer | How many listeners in all. |
The families /api/v1/families
| Field | Type | Holds |
|---|---|---|
page | integer | This page. |
pages | integer | How many pages. |
total | integer | How many families. |
families | array | This page’s families, tools included. |
families[]. | string | The family. |
families[]. | string or null | Its slug, for /api/v1/family/{slug}. |
families[]. | string or null | The path of its page. |
families[]. | integer | Hosts in this archive. |
families[]. | integer | How many of them are listed. listed |
families[]. | integer | Their records. |
families[]. | object or null | The family’s software as MITRE ATT&CK lists it; null where ATT&CK does not. |
families[]. | string | Its ATT&CK ID, such as S0154. |
families[]. | string | Its software type, as ATT&CK names it. |
families[]. | string | Its name in ATT&CK. |
moved | array | Families now published under another name. |
moved[]. | string | The earlier name. |
moved[]. | string | Its slug, which answers 308 to the other’s route. |
moved[]. | string | The family it is published as. |
moved[]. | string or null | That family’s page. |
The JA4X table /api/v1/ja4x.json
| Field | Type | Holds |
|---|---|---|
generated | instant | When this archive last read the feed: the table is as of then. feed checked |
source | string | This site’s address. |
tlp | string | The sharing label: CLEAR. |
scope | string | What the table covers. |
caveat | string | How to read a template. |
templates | array | Each template, most hosts first, at most 5,000. A template whose certificates name nothing is left out. |
templates[]. | string | The template’s JA4X fingerprint. |
templates[]. | string | The path of its page. |
templates[]. | integer | How many hosts presented a certificate of it. |
templates[]. | integer | How many of them the feed lists. listed |
templates[]. | array of strings | Their families. |
templates[]. | array of integers | The AS numbers of their networks. |
templates[]. | instant or null | The earliest first sighting among them. |
templates[]. | instant or null | The latest sighting among them. |
templates[]. | boolean | false where one host presented it, or hosts of several families did. |
templates[]. | array | Its JA4X+ entries, most hosts first: the template with a certificate’s issuer name and the day its validity begins. The whole table holds at most 5,000, those with the most hosts. |
templates[]. | string or null | The issuer name, at most 120 characters. |
templates[]. | day or null | The day the certificate’s validity begins. |
templates[]. | integer | How many hosts presented it. |
templates[]. | integer | How many of them the feed lists. listed |
Every response every route but /api/v1/ja4x.json
| Field | Type | Holds |
|---|---|---|
meta | object | When the body was read. |
meta. | instant or null | When this archive last read the feed. feed checked |
meta. | boolean | true while the feed is not updating: the dates are as of as_of. |
Listener ids
episode_id is this archive’s id for a listener: an address on a port from one first sighting. rule_sid is the sid every rule file gives it, 9,100,000 plus episode_id, inside the band 9,100,000 to 9,999,999, and null where it would fall outside. A listener keeps its sid in every rule file, so load one Suricata file, or let suricata-update merge them. A newer file replaces an older one.
uuid is a version 5 UUID of {ip}|{port}|{first_seen} in the namespace 6fad56c1-89e4-504d-b065-3a73ecfc244c, with first_seen exactly as the record prints it, so any UUID library works it out again from the record alone: 203.0.113.7|443|2026-10-01T05:00:00.000000+00:00 gives 418a48eb-c74e-53a0-8b93-6485a034440e.
For automated readers
Without an account: this page and /api/openapi.json, the indicator feed’s JSON at
/api/iocs.json, network names at /api/asns.json, the files under /feed/
and the archive’s pages and files (a few rule files and downloads need a subscription), and the pages about
the site.
With a key, sent as above: these routes at the daily quota (the JA4X table with a subscription).
To cite a record, give its host page, the listener and its uuid, and the day of meta.as_of in the response you read:
Public Mosaic, 203.0.113.7:443 (uuid 418a48eb-c74e-53a0-8b93-6485a034440e), https://publicmosaic.com/ip/203.0.113.7, as of 2026-10-14.
A 404 from /api/v1/ip means: “No record in this archive. That is not a finding that it is clean.”
Changes
- 2026-11-25
- /api/v1/families and /api/v1/family/{token} carry mitre_attack: the family’s MITRE ATT&CK software ID, type and name, or null.
- 2026-11-25
- /api/iocs.json, the files under /feed/ and the archive answer without a key or a session.
- 2026-11-23
- A tool’s hub is /tools/{slug}; /c2/{slug} redirects there.
- 2026-11-20
- Breaking: /api/iocs.json and the files under /feed/ need a key or a signed-in session, as the archive does; without one they answer 401.
- Breaking: the RSS feed at /feed/feed.xml is off.
- 2026-11-20
- This reference published.
- Every record carries episode_id, rule_sid and uuid, and first_seen_utc and last_seen_utc. Where domain is a name a certificate presented, observed_host stands beside it.
- /api/v1/ip carries what the host page shows: relations to changes_recorded_since. Every hub adds ports_total; the family hub, relocations_total, relocations_total_at_least and each relocation’s population_range; the JA4X hub, cohorts_total. /api/v1/families is new.
- Breaking: cohort.feed_hosts and changes_recorded_since replace two earlier fields, host.last_seen_day is now a day, and /api/v1/asn returns one field fewer.
- A counted 404 carries the x-ratelimit headers, and an archive that cannot be read answers a 503 with a JSON body.
- Breaking: /api/v1/ja4x.json needs a subscription.