{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipecorn-com/json-schema/pipecorn-com-account-enrichment-schema.json",
  "title": "AccountEnrichment",
  "description": "Enriched company account. Any field Pipecorn's companies database does not hold for this company is omitted from the response rather than returned as `null`.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipecorn-com-openapi.json#/components/schemas/AccountEnrichment",
  "type": "object",
  "properties": {
    "company_name": {
      "type": "string",
      "description": "Company name"
    },
    "description": {
      "type": "string",
      "description": "Company description"
    },
    "industry": {
      "type": "string",
      "description": "Primary industry"
    },
    "company_type": {
      "type": "string",
      "description": "Company type"
    },
    "location": {
      "type": "string",
      "description": "Full location string"
    },
    "headquarters": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "description": "Country name"
        },
        "city": {
          "type": "string",
          "description": "City name"
        }
      }
    },
    "revenue_range": {
      "type": "object",
      "properties": {
        "estimated_min_revenue": {
          "type": "object",
          "properties": {
            "currency_code": {
              "type": "string"
            },
            "amount": {
              "type": "number"
            },
            "unit": {
              "type": "string"
            }
          }
        },
        "estimated_max_revenue": {
          "type": "object",
          "properties": {
            "currency_code": {
              "type": "string"
            },
            "amount": {
              "type": "number"
            },
            "unit": {
              "type": "string"
            }
          }
        }
      },
      "description": "Estimated revenue bounds in USD, each expressed as an amount plus the largest unit it clears (`THOUSAND`, `MILLION`, `BILLION`, `TRILLION`, or `NONE` below a thousand)."
    },
    "website": {
      "type": "string",
      "description": "Company website as stored, including scheme"
    },
    "domain": {
      "type": "string",
      "description": "Company website domain"
    },
    "linkedin_id": {
      "type": "string",
      "description": "LinkedIn company id"
    },
    "linkedin_url": {
      "type": "string",
      "format": "uri",
      "description": "LinkedIn company profile URL"
    },
    "entity_urn": {
      "type": "string",
      "description": "LinkedIn company URN identifier"
    },
    "employee_count": {
      "type": "integer",
      "description": "Current number of employees"
    },
    "employee_display_count": {
      "type": "string",
      "description": "Employee count as a display string"
    },
    "employee_range": {
      "type": "string",
      "description": "Employee count range"
    },
    "employee_count_info": {
      "type": "object",
      "description": "Detailed employee count information",
      "properties": {
        "monthly_change": {
          "type": "integer",
          "description": "Monthly employee count change"
        },
        "employee_count": {
          "type": "integer",
          "description": "Current number of employees"
        },
        "employee_display_count": {
          "type": "string",
          "description": "Employee count as a display string"
        }
      }
    },
    "department_headcount": {
      "type": "object",
      "description": "Current headcount per department. Keys are department names.",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "headcount_growth": {
      "type": "object",
      "description": "Company-wide headcount growth over each window, in percent.",
      "properties": {
        "mom": {
          "type": "number",
          "description": "Month-on-month change, in percent"
        },
        "qoq": {
          "type": "number",
          "description": "Quarter-on-quarter change, in percent"
        },
        "six_months": {
          "type": "number",
          "description": "Six-month change, in percent"
        },
        "yoy": {
          "type": "number",
          "description": "Year-on-year change, in percent"
        },
        "two_years": {
          "type": "number",
          "description": "Two-year change, in percent"
        }
      }
    },
    "department_headcount_growth": {
      "type": "object",
      "description": "Headcount growth per department. Keys are department names; each value carries the same growth windows as `headcount_growth`.",
      "additionalProperties": {
        "type": "object",
        "description": "Headcount growth for this department, in percent.",
        "properties": {
          "mom": {
            "type": "number",
            "description": "Month-on-month change, in percent"
          },
          "qoq": {
            "type": "number",
            "description": "Quarter-on-quarter change, in percent"
          },
          "six_months": {
            "type": "number",
            "description": "Six-month change, in percent"
          },
          "yoy": {
            "type": "number",
            "description": "Year-on-year change, in percent"
          },
          "two_years": {
            "type": "number",
            "description": "Two-year change, in percent"
          }
        }
      }
    },
    "monthly_visitors": {
      "type": "integer",
      "description": "Estimated monthly visitors to the company website"
    },
    "monthly_visitor_mom_pct": {
      "type": "number",
      "description": "Month-on-month change in monthly visitors, in percent"
    },
    "monthly_visitor_qoq_pct": {
      "type": "number",
      "description": "Quarter-on-quarter change in monthly visitors, in percent"
    },
    "funding_and_investment": {
      "type": "object",
      "description": "Funding history, when Pipecorn holds any for the company.",
      "properties": {
        "crunchbase_total_investment_usd": {
          "type": [
            "number",
            "null"
          ],
          "description": "Total investment raised, in USD"
        },
        "last_funding_round_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Type of the most recent round, e.g. `series_a`"
        },
        "last_funding_round_investment_usd": {
          "type": [
            "number",
            "null"
          ],
          "description": "Amount raised in the most recent round, in USD"
        },
        "days_since_last_fundraise": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Days since the most recent round closed"
        },
        "crunchbase_investors": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Named investors"
        },
        "funding_milestones_timeseries": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object"
          },
          "description": "Funding milestones over time"
        },
        "acquired_by": {
          "type": [
            "string",
            "null"
          ],
          "description": "Acquirer, if the company was acquired"
        },
        "acquisitions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Companies this company has acquired"
        }
      }
    },
    "last_updated": {
      "type": "string",
      "format": "date-time",
      "description": "When Pipecorn last refreshed this company record"
    }
  }
}