{
  "openapi": "3.0.1",
  "info": {
    "title": "Connecticut Auto Dealer & Repair Shop Licenses (open data)",
    "description": "Search Connecticut DMV-licensed car dealers (new and used), repair shops, leasing companies, manufacturers and recyclers by name, licence type, city, ZIP or expiration. One record per licence with all DBA names. Official state open data. Street addresses off by default.",
    "version": "0.1",
    "x-build-id": "jaakuVo0UO9bIyT73"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pennant~ct-auto-dealers-repairers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pennant-ct-auto-dealers-repairers",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/pennant~ct-auto-dealers-repairers/runs": {
      "post": {
        "operationId": "runs-sync-pennant-ct-auto-dealers-repairers",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/pennant~ct-auto-dealers-repairers/run-sync": {
      "post": {
        "operationId": "run-sync-pennant-ct-auto-dealers-repairers",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "licenseTypes": {
            "title": "Licence types",
            "type": "array",
            "description": "Connecticut DMV licence types, any match. Default: all except 'online registration purposes only'.",
            "items": {
              "type": "string",
              "enum": [
                "USED_DEALER",
                "NEW_DEALER",
                "GENERAL_REPAIRER",
                "LEASING",
                "MANUFACTURER",
                "RECYCLER",
                "ONLINE_REG"
              ],
              "enumTitles": [
                "Used car dealer",
                "New car dealer",
                "General repairer (repair shop)",
                "Leasing company",
                "Manufacturer",
                "Recycler (salvage/parts)",
                "Online registration purposes only"
              ]
            },
            "default": [
              "USED_DEALER",
              "NEW_DEALER",
              "GENERAL_REPAIRER",
              "LEASING",
              "MANUFACTURER",
              "RECYCLER"
            ]
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Case-insensitive substring of the licensed name or any DBA name, e.g. 'toyota'. Matching licences are returned with all their names. Max 500 results in this mode."
          },
          "licenseNumbers": {
            "title": "Licence numbers",
            "type": "array",
            "description": "CT DMV licence numbers, e.g. N2851 or O0530.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Unexpired licences only",
            "type": "boolean",
            "description": "Only licences whose expiration date is today or later (Connecticut time). Turn off to include expired ones still listed.",
            "default": true
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Business cities (case-insensitive exact match), e.g. HARTFORD.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter state of the business address. Most licences are CT; leasing companies and manufacturers are often out of state.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit ZIP codes.",
            "items": {
              "type": "string"
            }
          },
          "expiresFrom": {
            "title": "Expires on or after",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "expiresTo": {
            "title": "Expires on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Useful to find licences coming up for renewal."
          },
          "entitiesOnly": {
            "title": "Business names only",
            "type": "boolean",
            "description": "Skip licences held under what looks like a person's name (sole proprietors) and hide personal-looking names next to a trade name. Strongly recommended.",
            "default": true
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "licenseNumber",
              "expiration",
              "expirationLatest"
            ],
            "type": "string",
            "description": "Result order. Expiration sorts skip rows without a date.",
            "default": "licenseNumber"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on results (each licence is one billable event). The whole dataset is about 5,000 licences.",
            "default": 100
          },
          "includeStreetAddress": {
            "title": "Include street address and map point",
            "type": "boolean",
            "description": "If on, the street line, address line 2 and the State's geocoded point are returned too; otherwise only city, state and ZIP.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between pages (ms)",
            "minimum": 1000,
            "type": "integer",
            "description": "Politeness delay between API pages (robots.txt Crawl-delay: 1).",
            "default": 1100
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries on timeouts, HTTP 408/429/5xx with exponential backoff and Retry-After.",
            "default": 4
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}