{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companyfinders-com/json-schema/companyfinders-com-list-schema.json",
  "title": "List",
  "description": "Businesses whose listing marks them as permanently closed are left out, and are never counted or charged for; temporarily closed ones stay in.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companyfinders-com-openapi.yml#/components/schemas/List",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The list's id.",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "description": "Where the build stands.",
      "enum": [
        "queued",
        "running",
        "done",
        "failed"
      ]
    },
    "type": {
      "type": "string",
      "description": "Business type id."
    },
    "city": {
      "type": "string",
      "description": "The city searched."
    },
    "radius_km": {
      "type": "integer",
      "description": "Distance searched, in km."
    },
    "websites_checked": {
      "type": "integer",
      "description": "Websites visited so far."
    },
    "websites_to_check": {
      "type": "integer",
      "description": "Websites this list has to visit."
    },
    "businesses": {
      "type": "integer",
      "description": "Businesses in the list. Permanently closed ones are left out and not charged for."
    },
    "leads": {
      "type": "integer",
      "description": "Businesses with no website, a broken one or an out-of-date one."
    },
    "credits_held": {
      "type": "integer",
      "description": "Credits this list holds. Credits it did not use are given back when it finishes."
    },
    "created_at": {
      "type": "string",
      "description": "When the list was asked for.",
      "format": "date-time"
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the build finished."
    },
    "error": {
      "type": "string",
      "description": "Present when status is failed: what happened. The credits held were given back."
    }
  }
}