{
  "openapi": "3.1.0",
  "info": {
    "title": "Public Mosaic API",
    "version": "2026-11-25",
    "description": "The archive as JSON, with a free account’s key: 100 requests a UTC day. /api/v1/ja4x.json needs a subscription. Every route, field and error is described on the reference."
  },
  "externalDocs": {
    "description": "The API reference",
    "url": "https://publicmosaic.com/api"
  },
  "servers": [
    {
      "url": "https://publicmosaic.com"
    }
  ],
  "security": [
    {
      "bearer": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/v1/ip/{ip}": {
      "get": {
        "operationId": "getIp",
        "summary": "An address",
        "description": "One address: every record this archive holds for it, and what its host page shows.",
        "parameters": [
          {
            "name": "ip",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$",
              "format": "ipv4"
            },
            "example": "203.0.113.7"
          }
        ],
        "responses": {
          "200": {
            "description": "One address: every record this archive holds for it, and what its host page shows.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Address"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "410": {
            "description": "The address’s page was removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "410-1": {
                    "summary": "The address’s page was removed.",
                    "value": {
                      "error": "withdrawn",
                      "reason": "gone"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The address could not be checked before answering. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The address could not be checked before answering. Retry after retry-after seconds.",
                    "value": {
                      "error": "suppression set unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-4": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cert/{sha256}": {
      "get": {
        "operationId": "getCert",
        "summary": "A certificate’s hosts",
        "description": "The hosts that presented one TLS certificate, by its SHA-256.",
        "parameters": [
          {
            "name": "sha256",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]{64}$"
            },
            "example": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hosts that presented one TLS certificate, by its SHA-256.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Hub"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ja4x/{ja4x}": {
      "get": {
        "operationId": "getJa4x",
        "summary": "A JA4X template’s hosts",
        "description": "The hosts whose certificates share one JA4X template, and the template’s issuance cohorts.",
        "parameters": [
          {
            "name": "ja4x",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]{12}_[0-9a-fA-F]{12}_[0-9a-fA-F]{12}$"
            },
            "example": "a1b2c3d4e5f6_a1b2c3d4e5f6_a1b2c3d4e5f6"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hosts whose certificates share one JA4X template, and the template’s issuance cohorts.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Hub"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/asn/{asn}": {
      "get": {
        "operationId": "getAsn",
        "summary": "A network’s hosts",
        "description": "The hosts on one network. The number may be written 64500 or AS64500.",
        "parameters": [
          {
            "name": "asn",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^(?:[Aa][Ss])?0*[1-9]\\d{0,9}$"
            },
            "example": "64500"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hosts on one network. The number may be written 64500 or AS64500.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Hub"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payload/{sha256}": {
      "get": {
        "operationId": "getPayload",
        "summary": "A file’s hosts",
        "description": "The hosts that served one file, by its SHA-256.",
        "parameters": [
          {
            "name": "sha256",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]{64}$"
            },
            "example": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hosts that served one file, by its SHA-256.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Hub"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sample/{sha256}": {
      "get": {
        "operationId": "getSample",
        "summary": "A file",
        "description": "One file with a family, and the listeners in this archive that served it.",
        "parameters": [
          {
            "name": "sha256",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]{64}$"
            },
            "example": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
          }
        ],
        "responses": {
          "200": {
            "description": "One file with a family, and the listeners in this archive that served it.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Sample"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/family/{slug}": {
      "get": {
        "operationId": "getFamily",
        "summary": "A family’s hosts",
        "description": "The hosts of one family, by its slug: the family’s name with - for _.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hosts of one family, by its slug: the family’s name with - for _.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Hub"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "308": {
            "description": "The family is now published under another name. Follow the location header.",
            "headers": {
              "location": {
                "description": "The family’s route under the name it is now published as.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "308-1": {
                    "summary": "The family is now published under another name. Follow the location header.",
                    "value": {
                      "error": "moved",
                      "location": "/api/v1/family/{slug}"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/families": {
      "get": {
        "operationId": "listFamilies",
        "summary": "The families",
        "description": "Every family with a page, with its slug and the path of its page.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every family with a page, with its slug and the path of its page.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Families"
                    },
                    {
                      "$ref": "#/components/schemas/Meta"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ja4x.json": {
      "get": {
        "operationId": "getJa4xTable",
        "summary": "The JA4X table",
        "description": "Every JA4X template in the archive, with its JA4X+ entries, as one file. Needs a subscription.",
        "responses": {
          "200": {
            "description": "Every JA4X template in the archive, with its JA4X+ entries, as one file. Needs a subscription.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ja4xTable"
                }
              }
            }
          },
          "401": {
            "description": "No key was read: neither header was sent, or Authorization was sent without a Bearer key. The key is not one this site issued, or it was revoked.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "401-1": {
                    "summary": "No key was read: neither header was sent, or Authorization was sent without a Bearer key.",
                    "value": {
                      "error": "api key required",
                      "reason": "key-required",
                      "get_a_key": "https://publicmosaic.com/indicators#account"
                    }
                  },
                  "401-2": {
                    "summary": "The key is not one this site issued, or it was revoked.",
                    "value": {
                      "error": "invalid api key",
                      "reason": "key-invalid"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "The key’s account has no active subscription paid through today: reason is not-subscribed, not-active or lapsed.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "402-1": {
                    "summary": "The key’s account has no active subscription paid through today: reason is not-subscribed, not-active or lapsed.",
                    "value": {
                      "error": "subscription required",
                      "reason": "not-subscribed"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "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.",
            "headers": {
              "x-auth-reason": {
                "description": "The body’s reason: key-required, key-invalid, not-subscribed, not-active, lapsed, not-vetted or terms-not-accepted.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "403-1": {
                    "summary": "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.",
                    "value": {
                      "error": "subscription required",
                      "reason": "not-vetted"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "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. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "404-1": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "404-2": {
                    "summary": "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.",
                    "value": {
                      "error": "not found"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET or HEAD. The allow header lists both.",
            "headers": {
              "allow": {
                "description": "The methods the route answers: GET, HEAD.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "429-1": {
                    "summary": "The account has made its requests for the UTC day. retry-after equals resets_in_seconds.",
                    "value": {
                      "error": "daily quota exceeded",
                      "reason": "quota",
                      "limit": 100,
                      "resets_in_seconds": 3600
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request could not be counted, so it was not answered. Retry after retry-after seconds. The subscription could not be checked, so the request was not answered. Retry after retry-after seconds. The archive could not be read after the request was counted. Retry after retry-after seconds. The API is switched off.",
            "headers": {
              "retry-after": {
                "description": "Seconds to wait before asking again.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit": {
                "description": "The account’s requests a UTC day.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining": {
                "description": "What is left of them today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "503-1": {
                    "summary": "The request could not be counted, so it was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "quota unavailable"
                    }
                  },
                  "503-2": {
                    "summary": "The subscription could not be checked, so the request was not answered. Retry after retry-after seconds.",
                    "value": {
                      "error": "subscription unavailable"
                    }
                  },
                  "503-3": {
                    "summary": "The archive could not be read after the request was counted. Retry after retry-after seconds.",
                    "value": {
                      "error": "archive unavailable"
                    }
                  },
                  "503-4": {
                    "summary": "The API is switched off.",
                    "value": {
                      "error": "api not provisioned"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authorization: Bearer pm_…"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Read only when no Authorization header is sent."
      }
    },
    "schemas": {
      "Address": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "description": "The address asked for."
          },
          "listed": {
            "type": "boolean",
            "description": "Whether the feed lists any of the address’s records.",
            "x-definition": "https://publicmosaic.com/methodology#term-listed"
          },
          "records": {
            "type": "array",
            "description": "Every record this archive holds for the address, one per listener: below.",
            "items": {
              "$ref": "#/components/schemas/Record"
            }
          },
          "host": {
            "type": [
              "object",
              "null"
            ],
            "description": "The address as one host.",
            "properties": {
              "first_archived": {
                "type": "string",
                "format": "date-time",
                "description": "When this archive first recorded the address.",
                "x-definition": "https://publicmosaic.com/methodology#term-in-archive-since"
              },
              "last_seen_day": {
                "type": "string",
                "format": "date",
                "description": "The UTC day of its last confirmation.",
                "x-definition": "https://publicmosaic.com/methodology#term-last-confirmed"
              },
              "families": {
                "type": "array",
                "description": "The families of its records.",
                "items": {
                  "type": "string"
                }
              },
              "asn": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The AS number of its network."
              },
              "asn_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "That network’s registered name."
              }
            },
            "required": [
              "first_archived",
              "last_seen_day",
              "families",
              "asn",
              "asn_name"
            ]
          },
          "relations": {
            "type": "array",
            "description": "The values this address shares with other hosts in this archive, in the host page’s order: below.",
            "items": {
              "$ref": "#/components/schemas/Relation"
            }
          },
          "relations_complete": {
            "type": "boolean",
            "description": "false when a configuration value could not be counted, so its row is missing."
          },
          "unshared": {
            "type": "array",
            "description": "How many of the address’s values no other host in this archive carries, by kind.",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "description": "The kind of value."
                },
                "count": {
                  "type": "integer",
                  "description": "How many values of that kind."
                }
              },
              "required": [
                "kind",
                "count"
              ]
            }
          },
          "not_a_pivot": {
            "type": "array",
            "description": "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.",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "description": "The kind of value."
                },
                "fields": {
                  "type": "array",
                  "description": "On a configuration value, the fields it is read under.",
                  "items": {
                    "type": "string"
                  }
                },
                "value": {
                  "type": "string",
                  "description": "The value."
                },
                "reason": {
                  "type": "string",
                  "description": "empty-dn, empty-file or shared-pivot."
                }
              },
              "required": [
                "kind",
                "value",
                "reason"
              ]
            }
          },
          "network_context": {
            "type": "object",
            "description": "Where the address sits, each only where another host in this archive sits too.",
            "properties": {
              "slash24": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The /24 around the address.",
                "properties": {
                  "prefix": {
                    "type": "string",
                    "description": "The /24, in CIDR form."
                  },
                  "other_hosts": {
                    "type": "integer",
                    "description": "Other hosts in this archive in that /24.",
                    "x-definition": "https://publicmosaic.com/methodology#term-other-hosts"
                  },
                  "listed": {
                    "type": "integer",
                    "description": "How many of them are listed.",
                    "x-definition": "https://publicmosaic.com/methodology#term-listed"
                  }
                },
                "required": [
                  "prefix",
                  "other_hosts",
                  "listed"
                ]
              },
              "networks": {
                "type": "array",
                "description": "The networks the address’s records are on.",
                "items": {
                  "type": "object",
                  "properties": {
                    "asn": {
                      "type": "integer",
                      "description": "The AS number."
                    },
                    "asn_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Its registered name."
                    },
                    "other_hosts": {
                      "type": "integer",
                      "description": "Other hosts in this archive on that network.",
                      "x-definition": "https://publicmosaic.com/methodology#term-other-hosts"
                    },
                    "listed": {
                      "type": "integer",
                      "description": "How many of them are listed.",
                      "x-definition": "https://publicmosaic.com/methodology#term-listed"
                    }
                  },
                  "required": [
                    "asn",
                    "asn_name",
                    "other_hosts",
                    "listed"
                  ]
                }
              }
            },
            "required": [
              "slash24",
              "networks"
            ]
          },
          "related": {
            "type": "object",
            "description": "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.",
            "additionalProperties": {
              "type": "object",
              "description": "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).",
              "properties": {
                "total": {
                  "type": "integer",
                  "description": "How many such hosts in all."
                },
                "hosts": {
                  "type": "array",
                  "description": "The first of them, in that order.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "ip": {
                        "type": "string",
                        "description": "The host’s address."
                      },
                      "listed": {
                        "type": "boolean",
                        "description": "Whether the feed lists it.",
                        "x-definition": "https://publicmosaic.com/methodology#term-listed"
                      },
                      "framework": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "One of its families."
                      }
                    },
                    "required": [
                      "ip",
                      "listed",
                      "framework"
                    ]
                  }
                }
              },
              "required": [
                "total",
                "hosts"
              ]
            }
          },
          "listing_recorded_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When this archive began recording the days the feed lists an address."
          },
          "listed_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "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": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many days this archive recorded in that range."
          },
          "listed_days_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The range’s first day."
          },
          "listed_days_to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Its last day."
          },
          "listed_days_at_least": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "true when the count is a floor."
          },
          "served_files": {
            "type": "array",
            "description": "The files the address served, one row per file and port, most recently seen first, at most 100.",
            "items": {
              "type": "object",
              "properties": {
                "sha256": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The file’s SHA-256."
                },
                "family": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its family."
                },
                "port": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "The port it was served on."
                },
                "file_first_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When the file itself was first seen, not when this address served it."
                },
                "file_last_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When the file was last seen."
                }
              },
              "required": [
                "sha256",
                "family",
                "port",
                "file_first_seen",
                "file_last_seen"
              ]
            }
          },
          "served_files_shown": {
            "type": "integer",
            "description": "How many different files the rows name."
          },
          "served_files_total": {
            "type": "integer",
            "description": "How many files the address served in all."
          },
          "changes_recorded_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this archive began recording changes. Each record’s changes cover the time since."
          }
        },
        "required": [
          "ip",
          "listed",
          "records",
          "host",
          "relations",
          "relations_complete",
          "unshared",
          "not_a_pivot",
          "network_context",
          "related",
          "listing_recorded_since",
          "listed_days",
          "days_recorded",
          "listed_days_from",
          "listed_days_to",
          "listed_days_at_least",
          "served_files",
          "served_files_shown",
          "served_files_total",
          "changes_recorded_since"
        ]
      },
      "Record": {
        "type": "object",
        "properties": {
          "indicator": {
            "type": "string",
            "description": "The listener, as ip:port."
          },
          "type": {
            "type": "string",
            "description": "ip-port, domain-name or ipv4-addr."
          },
          "ip": {
            "type": "string",
            "description": "The address."
          },
          "port": {
            "type": "integer",
            "description": "The port."
          },
          "domain": {
            "type": "string",
            "description": "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": {
            "type": "string",
            "description": "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": {
            "type": "integer",
            "description": "The AS number of the record’s network."
          },
          "framework": {
            "type": "string",
            "description": "The family."
          },
          "confidence": {
            "type": "integer",
            "description": "The scanner’s score for the identification, 90 to 100.",
            "x-definition": "https://publicmosaic.com/methodology#term-confidence"
          },
          "transport": {
            "type": "string",
            "description": "The transport protocol, such as tcp."
          },
          "first_seen": {
            "type": "string",
            "description": "When the scanner first confirmed the listener, in its own form. The uuid is made from this text.",
            "x-definition": "https://publicmosaic.com/methodology#term-first-seen"
          },
          "last_seen": {
            "type": "string",
            "description": "When the scanner last confirmed it, in the same form.",
            "x-definition": "https://publicmosaic.com/methodology#term-last-confirmed"
          },
          "cert_sha256": {
            "type": "string",
            "description": "The SHA-256 of the TLS certificate the listener presented."
          },
          "ja4x": {
            "type": "string",
            "description": "The JA4X fingerprint of that certificate’s template."
          },
          "jarm": {
            "type": "string",
            "description": "The listener’s JARM fingerprint."
          },
          "cs_watermark": {
            "type": "integer",
            "description": "The Cobalt Strike watermark."
          },
          "payload_sha256": {
            "type": "string",
            "description": "The SHA-256 of a file the listener served."
          },
          "payload_magic": {
            "type": "string",
            "description": "What that file is: elf, pe, or ctype where only its Content-Type header said so."
          },
          "host_role": {
            "type": "string",
            "description": "Where the host is not an ordinary listener, the scanner’s word for what it is; indicator_class gives the class."
          },
          "cs_beacon_config": {
            "type": "object",
            "description": "The Cobalt Strike beacon’s settings, by architecture.",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "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": {
            "type": "object",
            "description": "The certificate’s fields, as presented.",
            "properties": {
              "subject_cn": {},
              "subject_o": {},
              "issuer_cn": {},
              "issuer_o": {},
              "sans": {},
              "not_before": {},
              "not_after": {},
              "self_signed": {},
              "pubkey_bits": {},
              "serial": {}
            }
          },
          "configs": {
            "type": "object",
            "description": "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.",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "host": {},
                "port": {},
                "uri": {},
                "user_agent": {},
                "mutex": {},
                "sleep": {},
                "jitter": {},
                "version": {},
                "campaign": {},
                "group": {},
                "install_path": {},
                "type": {},
                "beacon_type": {},
                "basis": {}
              }
            }
          },
          "episode_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "This archive’s id for the listener."
          },
          "rule_sid": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The sid every rule file gives the listener while the feed lists it."
          },
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "A version 5 UUID of the listener, which anyone can work out again: below."
          },
          "listed": {
            "type": "boolean",
            "description": "Whether the feed lists this record.",
            "x-definition": "https://publicmosaic.com/methodology#term-listed"
          },
          "first_archived": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this archive first recorded it.",
            "x-definition": "https://publicmosaic.com/methodology#term-in-archive-since"
          },
          "first_seen_utc": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "first_seen in RFC 3339, to the millisecond."
          },
          "last_seen_utc": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "last_seen in RFC 3339."
          },
          "framework_prev": {
            "type": [
              "string",
              "null"
            ],
            "description": "The one family this record was published under before, where it was relabelled."
          },
          "reclassified": {
            "type": "boolean",
            "description": "Whether the record was ever relabelled."
          },
          "indicator_class": {
            "type": "string",
            "description": "What the listener is: c2, phishing, booter, distribution, botnet, tool, unclassified or infected."
          },
          "asn_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The registered name of the record’s network."
          },
          "cohort": {
            "type": [
              "object",
              "null"
            ],
            "description": "The issuance cohort the certificate belongs to: certificates that share an issuance template.",
            "properties": {
              "ja4x_plus": {
                "type": "string",
                "description": "The cohort’s key."
              },
              "feed_hosts": {
                "type": "integer",
                "description": "The scanner’s count of its hosts."
              }
            },
            "required": [
              "ja4x_plus",
              "feed_hosts"
            ]
          },
          "changes": {
            "type": "array",
            "description": "What changed on the record since changes_recorded_since, by field, newest first.",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "The record’s field, or cs_server_key: the team-server key inside cs_beacon_config."
                },
                "total": {
                  "type": "integer",
                  "description": "How many changes to it."
                },
                "first_recorded": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When this archive recorded the first."
                },
                "recent": {
                  "type": "array",
                  "description": "The newest 3.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "old": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The value before, null where there was none."
                      },
                      "new": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The value after, null where there is none."
                      },
                      "recorded": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "description": "When this archive recorded the change."
                      }
                    },
                    "required": [
                      "recorded"
                    ]
                  }
                }
              },
              "required": [
                "field",
                "total",
                "first_recorded",
                "recent"
              ]
            }
          }
        },
        "required": [
          "indicator",
          "type",
          "ip",
          "port",
          "framework",
          "confidence",
          "transport",
          "first_seen",
          "last_seen",
          "episode_id",
          "rule_sid",
          "uuid",
          "listed",
          "first_archived",
          "first_seen_utc",
          "last_seen_utc",
          "framework_prev",
          "reclassified",
          "indicator_class",
          "asn_name",
          "cohort",
          "changes"
        ]
      },
      "Relation": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "payload, cskey, cert, cohort, ja4x, config, callback, callee or watermark."
          },
          "fields": {
            "type": "array",
            "description": "On a configuration value, the fields it is read under.",
            "items": {
              "type": "string"
            }
          },
          "value": {
            "type": "string",
            "description": "The value."
          },
          "other_hosts": {
            "type": "integer",
            "description": "Other hosts in this archive that carry it.",
            "x-definition": "https://publicmosaic.com/methodology#term-other-hosts"
          },
          "listed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many of them are listed.",
            "x-definition": "https://publicmosaic.com/methodology#term-listed"
          },
          "band": {
            "type": "string",
            "description": "How widely it is shared: rare, uncommon or common.",
            "x-definition": "https://publicmosaic.com/methodology#term-specificity"
          },
          "weak": {
            "type": "boolean",
            "description": "true for callback, callee or watermark, which link hosts more loosely."
          },
          "hub": {
            "type": [
              "string",
              "null"
            ],
            "description": "The path of the value’s page, or null where its hosts are listed on the host page alone."
          },
          "families": {
            "type": "array",
            "description": "The other hosts’ families, most hosts first, at most 3.",
            "items": {
              "type": "object",
              "properties": {
                "family": {
                  "type": "string",
                  "description": "The family."
                },
                "hosts": {
                  "type": "integer",
                  "description": "Its hosts among them."
                }
              },
              "required": [
                "family",
                "hosts"
              ]
            }
          },
          "other_families": {
            "type": "integer",
            "description": "How many more families."
          },
          "networks": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many networks those hosts are on."
          },
          "same_hosts_as": {
            "type": [
              "object",
              "null"
            ],
            "description": "On a cohort whose other hosts are exactly a certificate’s, that certificate.",
            "properties": {
              "kind": {
                "type": "string",
                "description": "Its kind."
              },
              "value": {
                "type": "string",
                "description": "Its value."
              }
            },
            "required": [
              "kind",
              "value"
            ]
          }
        },
        "required": [
          "kind",
          "value",
          "other_hosts",
          "listed",
          "band",
          "weak",
          "hub",
          "families",
          "other_families",
          "networks",
          "same_hosts_as"
        ]
      },
      "Hub": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "cert, ja4x, asn, payload or family."
          },
          "key": {
            "type": "string",
            "description": "The value, as the route reads it."
          },
          "page": {
            "type": "integer",
            "description": "This page."
          },
          "pages": {
            "type": "integer",
            "description": "How many pages."
          },
          "asn_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The network’s registered name.",
            "x-hub-kinds": [
              "asn"
            ]
          },
          "org_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The organisation the network is published under, where the feed carries one.",
            "x-hub-kinds": [
              "asn"
            ]
          },
          "mitre_attack": {
            "type": [
              "object",
              "null"
            ],
            "description": "The family’s software as MITRE ATT&CK lists it; null where ATT&CK does not.",
            "x-hub-kinds": [
              "family"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Its ATT&CK ID, such as S0154.",
                "x-hub-kinds": [
                  "family"
                ]
              },
              "type": {
                "type": "string",
                "description": "Its software type, as ATT&CK names it.",
                "x-hub-kinds": [
                  "family"
                ]
              },
              "name": {
                "type": "string",
                "description": "Its name in ATT&CK.",
                "x-hub-kinds": [
                  "family"
                ]
              }
            },
            "required": [
              "id",
              "type",
              "name"
            ]
          },
          "cohorts_total": {
            "type": "integer",
            "description": "How many issuance cohorts the template has.",
            "x-hub-kinds": [
              "ja4x"
            ]
          },
          "cohorts": {
            "type": "array",
            "description": "Its largest issuance cohorts the feed carries, at most 8: certificates that share an issuance template.",
            "x-hub-kinds": [
              "ja4x"
            ],
            "items": {
              "type": "object",
              "properties": {
                "ja4x_plus": {
                  "type": "string",
                  "description": "The cohort’s key.",
                  "x-hub-kinds": [
                    "ja4x"
                  ]
                },
                "issuer_cn": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The issuer name its certificates share.",
                  "x-hub-kinds": [
                    "ja4x"
                  ]
                },
                "not_before_day": {
                  "type": "string",
                  "format": "date",
                  "description": "The day their validity begins.",
                  "x-hub-kinds": [
                    "ja4x"
                  ]
                },
                "hosts": {
                  "type": "integer",
                  "description": "The scanner’s count of its hosts.",
                  "x-hub-kinds": [
                    "ja4x"
                  ]
                },
                "last_carried": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When the feed last carried the cohort.",
                  "x-hub-kinds": [
                    "ja4x"
                  ]
                }
              },
              "required": [
                "ja4x_plus",
                "issuer_cn",
                "not_before_day",
                "hosts",
                "last_carried"
              ]
            }
          },
          "relocations": {
            "type": "array",
            "description": "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.",
            "x-hub-kinds": [
              "family"
            ],
            "items": {
              "type": "object",
              "properties": {
                "to_asn": {
                  "type": "integer",
                  "description": "The network they moved to.",
                  "x-hub-kinds": [
                    "family"
                  ]
                },
                "observed_day": {
                  "type": "string",
                  "format": "date",
                  "description": "The day of the estimate.",
                  "x-hub-kinds": [
                    "family"
                  ]
                },
                "population": {
                  "type": "string",
                  "description": "Its size, as small, medium or large.",
                  "x-hub-kinds": [
                    "family"
                  ]
                },
                "population_range": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "That size as a range of hosts, as the page prints it.",
                  "x-hub-kinds": [
                    "family"
                  ]
                },
                "from_asns": {
                  "type": "array",
                  "description": "The networks they were on before, lowest number first, at most 10; a list of 10 may be part of them.",
                  "x-hub-kinds": [
                    "family"
                  ],
                  "items": {
                    "type": "integer"
                  }
                }
              },
              "required": [
                "to_asn",
                "observed_day",
                "population",
                "population_range",
                "from_asns"
              ]
            }
          },
          "relocations_total": {
            "type": "integer",
            "description": "How many estimates the 30 days hold.",
            "x-hub-kinds": [
              "family"
            ]
          },
          "relocations_total_at_least": {
            "type": "boolean",
            "description": "true when that count is a floor.",
            "x-hub-kinds": [
              "family"
            ]
          },
          "stats": {
            "type": "object",
            "description": "Counts over every host on the hub, not this page alone.",
            "properties": {
              "hosts": {
                "type": "integer",
                "description": "Hosts."
              },
              "listed": {
                "type": "integer",
                "description": "How many of them are listed.",
                "x-definition": "https://publicmosaic.com/methodology#term-listed"
              },
              "records": {
                "type": "integer",
                "description": "Their records."
              },
              "networks": {
                "type": "integer",
                "description": "The networks they are on."
              },
              "families": {
                "type": "integer",
                "description": "Their families."
              },
              "oldest": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "The earliest first sighting among them.",
                "x-definition": "https://publicmosaic.com/methodology#term-first-seen"
              },
              "newest": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "The latest confirmation.",
                "x-definition": "https://publicmosaic.com/methodology#term-last-confirmed"
              },
              "classes": {
                "type": "object",
                "description": "Hosts by class, keyed by the class.",
                "x-hub-kinds": [
                  "cert",
                  "ja4x",
                  "asn",
                  "family"
                ],
                "additionalProperties": {
                  "type": "object",
                  "description": "One class.",
                  "x-hub-kinds": [
                    "cert",
                    "ja4x",
                    "asn",
                    "family"
                  ],
                  "properties": {
                    "hosts": {
                      "type": "integer",
                      "description": "Its hosts.",
                      "x-hub-kinds": [
                        "cert",
                        "ja4x",
                        "asn",
                        "family"
                      ]
                    },
                    "listed": {
                      "type": "integer",
                      "description": "How many are listed.",
                      "x-definition": "https://publicmosaic.com/methodology#term-listed",
                      "x-hub-kinds": [
                        "cert",
                        "ja4x",
                        "asn",
                        "family"
                      ]
                    },
                    "served": {
                      "type": "integer",
                      "description": "How many were seen serving a file.",
                      "x-hub-kinds": [
                        "cert",
                        "ja4x",
                        "asn",
                        "family"
                      ]
                    }
                  },
                  "required": [
                    "hosts",
                    "listed",
                    "served"
                  ]
                }
              }
            },
            "required": [
              "hosts",
              "listed",
              "records",
              "networks",
              "families",
              "oldest",
              "newest"
            ]
          },
          "cert_detail": {
            "type": "object",
            "description": "The certificate’s fields, as presented.",
            "x-hub-kinds": [
              "cert"
            ],
            "properties": {
              "subject_cn": {},
              "subject_o": {},
              "issuer_cn": {},
              "issuer_o": {},
              "sans": {},
              "not_before": {},
              "not_after": {},
              "self_signed": {},
              "pubkey_bits": {},
              "serial": {}
            }
          },
          "ports": {
            "type": "array",
            "description": "The ports with the most hosts, at most 8.",
            "items": {
              "type": "object",
              "properties": {
                "port": {
                  "type": "integer",
                  "description": "The port."
                },
                "hosts": {
                  "type": "integer",
                  "description": "Hosts using it."
                }
              },
              "required": [
                "port",
                "hosts"
              ]
            }
          },
          "ports_total": {
            "type": "integer",
            "description": "How many ports the hosts use in all."
          },
          "hosts": {
            "type": "array",
            "description": "This page’s hosts, at most 100.",
            "items": {
              "type": "object",
              "properties": {
                "ip": {
                  "type": "string",
                  "description": "The address."
                },
                "first_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Its first sighting on the hub.",
                  "x-definition": "https://publicmosaic.com/methodology#term-first-seen"
                },
                "last_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Its last confirmation.",
                  "x-definition": "https://publicmosaic.com/methodology#term-last-confirmed"
                },
                "listed": {
                  "type": "boolean",
                  "description": "Whether the feed lists it.",
                  "x-definition": "https://publicmosaic.com/methodology#term-listed"
                },
                "framework": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "One of its families on the hub; families_n says how many."
                },
                "families_n": {
                  "type": "integer",
                  "description": "How many families it has there."
                },
                "asn": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Its AS number."
                },
                "indicator_class": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "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."
                },
                "asn_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its network’s registered name."
                },
                "records": {
                  "type": "integer",
                  "description": "Its records on the hub."
                }
              },
              "required": [
                "ip",
                "first_seen",
                "last_seen",
                "listed",
                "framework",
                "families_n",
                "asn",
                "indicator_class",
                "asn_name",
                "records"
              ]
            }
          }
        },
        "required": [
          "kind",
          "key",
          "page",
          "pages",
          "stats"
        ]
      },
      "Sample": {
        "type": "object",
        "properties": {
          "sha256": {
            "type": "string",
            "description": "The file’s SHA-256."
          },
          "family": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its family."
          },
          "confidence": {
            "type": "integer",
            "description": "The score for that family, 90 to 100.",
            "x-definition": "https://publicmosaic.com/methodology#term-confidence"
          },
          "first_seen": {
            "type": [
              "string",
              "null"
            ],
            "description": "When it was first seen, in the scanner’s own form."
          },
          "last_seen": {
            "type": [
              "string",
              "null"
            ],
            "description": "When it was last seen."
          },
          "first_archived": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this archive first recorded it.",
            "x-definition": "https://publicmosaic.com/methodology#term-in-archive-since"
          },
          "first_seen_utc": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "first_seen in RFC 3339."
          },
          "last_seen_utc": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "last_seen in RFC 3339."
          },
          "served_by": {
            "type": "array",
            "description": "The listeners in this archive that served it.",
            "items": {
              "type": "object",
              "properties": {
                "ip": {
                  "type": "string",
                  "description": "The address."
                },
                "port": {
                  "type": "integer",
                  "description": "The port."
                },
                "listed": {
                  "type": "boolean",
                  "description": "Whether the feed lists it.",
                  "x-definition": "https://publicmosaic.com/methodology#term-listed"
                },
                "framework": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its family."
                }
              },
              "required": [
                "ip",
                "port",
                "listed",
                "framework"
              ]
            }
          },
          "served_by_total": {
            "type": "integer",
            "description": "How many listeners in all."
          }
        },
        "required": [
          "sha256",
          "family",
          "confidence",
          "first_seen",
          "last_seen",
          "first_archived",
          "first_seen_utc",
          "last_seen_utc",
          "served_by",
          "served_by_total"
        ]
      },
      "Families": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "This page."
          },
          "pages": {
            "type": "integer",
            "description": "How many pages."
          },
          "total": {
            "type": "integer",
            "description": "How many families."
          },
          "families": {
            "type": "array",
            "description": "This page’s families, tools included.",
            "items": {
              "type": "object",
              "properties": {
                "family": {
                  "type": "string",
                  "description": "The family."
                },
                "slug": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its slug, for /api/v1/family/{slug}."
                },
                "hub": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The path of its page."
                },
                "hosts": {
                  "type": "integer",
                  "description": "Hosts in this archive."
                },
                "listed": {
                  "type": "integer",
                  "description": "How many of them are listed.",
                  "x-definition": "https://publicmosaic.com/methodology#term-listed"
                },
                "records": {
                  "type": "integer",
                  "description": "Their records."
                },
                "mitre_attack": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The family’s software as MITRE ATT&CK lists it; null where ATT&CK does not.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Its ATT&CK ID, such as S0154."
                    },
                    "type": {
                      "type": "string",
                      "description": "Its software type, as ATT&CK names it."
                    },
                    "name": {
                      "type": "string",
                      "description": "Its name in ATT&CK."
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "name"
                  ]
                }
              },
              "required": [
                "family",
                "slug",
                "hub",
                "hosts",
                "listed",
                "records",
                "mitre_attack"
              ]
            }
          },
          "moved": {
            "type": "array",
            "description": "Families now published under another name.",
            "items": {
              "type": "object",
              "properties": {
                "family": {
                  "type": "string",
                  "description": "The earlier name."
                },
                "slug": {
                  "type": "string",
                  "description": "Its slug, which answers 308 to the other’s route."
                },
                "moved_to": {
                  "type": "string",
                  "description": "The family it is published as."
                },
                "hub": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "That family’s page."
                }
              },
              "required": [
                "family",
                "slug",
                "moved_to",
                "hub"
              ]
            }
          }
        },
        "required": [
          "page",
          "pages",
          "total",
          "families",
          "moved"
        ]
      },
      "Ja4xTable": {
        "type": "object",
        "properties": {
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When this archive last read the feed: the table is as of then.",
            "x-definition": "https://publicmosaic.com/methodology#term-feed-checked"
          },
          "source": {
            "type": "string",
            "description": "This site’s address."
          },
          "tlp": {
            "type": "string",
            "description": "The sharing label: CLEAR."
          },
          "scope": {
            "type": "string",
            "description": "What the table covers."
          },
          "caveat": {
            "type": "string",
            "description": "How to read a template."
          },
          "templates": {
            "type": "array",
            "description": "Each template, most hosts first, at most 5,000. A template whose certificates name nothing is left out.",
            "items": {
              "type": "object",
              "properties": {
                "ja4x": {
                  "type": "string",
                  "description": "The template’s JA4X fingerprint."
                },
                "url": {
                  "type": "string",
                  "description": "The path of its page."
                },
                "hosts": {
                  "type": "integer",
                  "description": "How many hosts presented a certificate of it."
                },
                "listed": {
                  "type": "integer",
                  "description": "How many of them the feed lists.",
                  "x-definition": "https://publicmosaic.com/methodology#term-listed"
                },
                "families": {
                  "type": "array",
                  "description": "Their families.",
                  "items": {
                    "type": "string"
                  }
                },
                "networks": {
                  "type": "array",
                  "description": "The AS numbers of their networks.",
                  "items": {
                    "type": "integer"
                  }
                },
                "first_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "The earliest first sighting among them."
                },
                "last_seen": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "The latest sighting among them."
                },
                "discriminating": {
                  "type": "boolean",
                  "description": "false where one host presented it, or hosts of several families did."
                },
                "plus": {
                  "type": "array",
                  "description": "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.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "issuer_cn": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The issuer name, at most 120 characters."
                      },
                      "not_before_day": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date",
                        "description": "The day the certificate’s validity begins."
                      },
                      "hosts": {
                        "type": "integer",
                        "description": "How many hosts presented it."
                      },
                      "listed": {
                        "type": "integer",
                        "description": "How many of them the feed lists.",
                        "x-definition": "https://publicmosaic.com/methodology#term-listed"
                      }
                    },
                    "required": [
                      "issuer_cn",
                      "not_before_day",
                      "hosts",
                      "listed"
                    ]
                  }
                }
              },
              "required": [
                "ja4x",
                "url",
                "hosts",
                "listed",
                "families",
                "networks",
                "first_seen",
                "last_seen",
                "discriminating",
                "plus"
              ]
            }
          }
        },
        "required": [
          "generated",
          "source",
          "tlp",
          "scope",
          "caveat",
          "templates"
        ]
      },
      "Meta": {
        "type": "object",
        "properties": {
          "meta": {
            "type": "object",
            "description": "When the body was read.",
            "properties": {
              "as_of": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When this archive last read the feed.",
                "x-definition": "https://publicmosaic.com/methodology#term-feed-checked"
              },
              "stale": {
                "type": "boolean",
                "description": "true while the feed is not updating: the dates are as of as_of."
              }
            },
            "required": [
              "as_of",
              "stale"
            ]
          }
        },
        "required": [
          "meta"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "get_a_key": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "resets_in_seconds": {
            "type": "integer"
          }
        },
        "required": [
          "error"
        ]
      }
    }
  }
}
