{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companyfinders-com/json-schema/companyfinders-com-count-schema.json",
  "title": "Count",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companyfinders-com-openapi.yml#/components/schemas/Count",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Business type id."
    },
    "city": {
      "type": "string",
      "description": "The city searched."
    },
    "radius_km": {
      "type": "integer",
      "description": "Distance searched, in km."
    },
    "no_website": {
      "type": "integer",
      "description": "Businesses with a phone number that list no website. Permanently closed ones are not counted."
    },
    "with_website": {
      "type": "integer",
      "description": "Businesses that list a website. Permanently closed ones are not counted."
    },
    "list_size": {
      "type": "integer",
      "description": "Businesses a list would hold: up to 1,000 that list no website and up to 1,000 that list one, the most-reviewed of each. Less than no_website plus with_website when either is over 1,000."
    },
    "list_cost_credits": {
      "type": "integer",
      "description": "Credits that list would cost."
    },
    "list_cost_usd": {
      "type": "number",
      "description": "The same in US dollars."
    },
    "counted_on": {
      "type": "string",
      "description": "The day of the count. A count is kept for up to 30 days.",
      "format": "date"
    },
    "place_chosen": {
      "type": "string",
      "description": "The full label of the city used. When the name sent is shared, a count or new-list answer also has place_chosen, the full label of the city used, and other_places, the labels of up to 5 other cities of that name, largest first. Both are left out when the name is not shared."
    },
    "other_places": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 5,
      "description": "The labels of up to 5 other cities of the name sent, largest first. Send one of them to count there instead."
    }
  }
}