{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prospectapis/json-schema/prospectapis-company-technologies-schema.json",
  "title": "CompanyTechnologies",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prospectapis-companies-api-openapi.yml#/components/schemas/CompanyTechnologies",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string"
        },
        "company_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "none_detected"
          ]
        },
        "technologies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Technology"
          }
        },
        "count": {
          "type": "integer"
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "partial": {
          "type": "boolean"
        },
        "retrieved_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "charged_usd": {
      "type": "number"
    }
  },
  "$defs": {
    "Technology": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "script_src",
                  "link_href",
                  "html",
                  "meta_generator",
                  "header",
                  "cookie",
                  "dns_txt",
                  "dns_mx",
                  "dns_cname"
                ]
              },
              "match": {
                "type": "string"
              },
              "source": {
                "type": "string"
              }
            }
          }
        },
        "source": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "page",
                "dns"
              ]
            },
            "url": {
              "type": "string"
            }
          }
        },
        "fetched_at": {
          "type": "string",
          "format": "date-time"
        },
        "first_seen_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_seen_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}