{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presentofai-com/json-schema/presentofai-com-company-list-schema.json",
  "title": "CompanyList",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presentofai-com-openapi.json#/components/schemas/CompanyList",
  "type": "object",
  "required": [
    "source",
    "attribution",
    "license",
    "url",
    "companies",
    "total"
  ],
  "properties": {
    "source": {
      "type": "string",
      "const": "Present of AI"
    },
    "attribution": {
      "type": "string",
      "description": "Data from presentofai.com, CC BY 4.0, link back to the page you use"
    },
    "license": {
      "type": "string",
      "const": "CC BY 4.0"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical presentofai.com page for this response. Link back to it."
    },
    "count": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "filters": {
      "type": "object"
    },
    "companies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Company"
      }
    }
  },
  "$defs": {
    "Company": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "page_url"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "one_liner": {
          "type": "string"
        },
        "sector": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "founded": {
          "type": [
            "integer",
            "null"
          ]
        },
        "stage": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "funding": {
          "oneOf": [
            {
              "$ref": "#/$defs/Funding"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiring_count": {
          "type": "integer"
        },
        "has_full_spotlight": {
          "type": "boolean"
        },
        "page_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "Funding": {
      "type": "object",
      "properties": {
        "total_raised_usd": {
          "type": [
            "integer",
            "null"
          ]
        },
        "total_raised_as_of": {
          "type": [
            "string",
            "null"
          ]
        },
        "total_raised_source": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_round": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "stage": {
              "type": [
                "string",
                "null"
              ]
            },
            "amount_usd": {
              "type": [
                "integer",
                "null"
              ]
            },
            "date": {
              "type": [
                "string",
                "null"
              ]
            },
            "lead": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}