{
  "openapi": "3.0.1",
  "info": {
    "title": "NY DMV Auto Dealer & Repair Shop Leads",
    "description": "New York DMV-licensed car dealers, repair & body shops, inspection stations and dismantlers: business name, address, facility type, license issue/renewal/expiry dates. Filter by county, city, ZIP, type. No owner names. $2/1,000. Not an official NY DMV product.",
    "version": "0.1",
    "x-build-id": "LX6RcokfTv2Vr16YB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/infocomp~ny-dmv-dealer-repair-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-infocomp-ny-dmv-dealer-repair-leads",
        "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/infocomp~ny-dmv-dealer-repair-leads/runs": {
      "post": {
        "operationId": "runs-sync-infocomp-ny-dmv-dealer-repair-leads",
        "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/infocomp~ny-dmv-dealer-repair-leads/run-sync": {
      "post": {
        "operationId": "run-sync-infocomp-ny-dmv-dealer-repair-leads",
        "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": {
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "New York county names (e.g. Kings, Queens, Erie, Suffolk) or 4-letter DMV codes (KING, ERIE). Brooklyn, Manhattan and Staten Island also work. Empty = all of New York State (about 33,000 facilities).",
            "default": [
              "Kings"
            ],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "Optional. Facility city as DMV lists it, e.g. Buffalo, Rochester, Brooklyn. Matches the start of the name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes (optional)",
            "type": "array",
            "description": "Optional. 5-digit ZIP codes of the facility.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "facilityTypes": {
            "title": "Facility / license types",
            "type": "array",
            "description": "Optional. Keep facilities that hold at least one of these DMV licenses. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "DLN",
                "DLU",
                "DLW",
                "DLB",
                "DLS",
                "ATV",
                "ABK",
                "YTB",
                "RS",
                "RSB",
                "ISP",
                "ISD",
                "ISF",
                "DIS",
                "SCC",
                "SCP",
                "SLP",
                "MCC",
                "TRS",
                "IVC",
                "DIA"
              ],
              "enumTitles": [
                "New Car Dealer (DLN) - Dealer",
                "Used Car Dealer (DLU) - Dealer",
                "Wholesale Dealer (DLW) - Dealer",
                "Boat Dealer (DLB) - Dealer",
                "Snowmobile Dealer (DLS) - Dealer",
                "ATV Only Dealership (ATV) - Dealer",
                "Automobile Broker (ABK) - Dealer",
                "Yacht Broker (YTB) - Dealer",
                "Repair Shop (RS) - Repair shop",
                "Repair Shop Body (RSB) - Repair shop",
                "Public Inspection Station (ISP) - Inspection station",
                "Dealer Inspection Station (ISD) - Inspection station",
                "Fleet Inspection Station (ISF) - Inspection station",
                "Dismantler (DIS) - Salvage & scrap",
                "Scrap Collector (SCC) - Salvage & scrap",
                "Scrap Processor (SCP) - Salvage & scrap",
                "Salvage Pool (SLP) - Salvage & scrap",
                "Mobile Car Crusher (MCC) - Salvage & scrap",
                "Transporter (TRS) - Other",
                "Itinerant Vehicle (IVC) - Other",
                "Drive-in Appraiser (DIA) - Other"
              ]
            },
            "default": []
          },
          "nameContains": {
            "title": "Business name contains",
            "type": "string",
            "description": "Optional. Only businesses whose name contains this text, e.g. 'collision' or 'Toyota'."
          },
          "firstLicensedSince": {
            "title": "License first issued on or after",
            "type": "string",
            "description": "Optional. Find newer businesses: keep facilities with a license (of the selected types) first issued on or after this date, e.g. 2025-01-01."
          },
          "expiringWithinMonths": {
            "title": "License expiring within (months)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "Optional. Keep facilities whose next active license expires within this many months (0 = this month)."
          },
          "includeExpired": {
            "title": "Include expired licenses",
            "type": "boolean",
            "description": "Off (default): only facilities with at least one active (unexpired) license, and only active licenses are listed. On: also include licenses that expired in the last ~6 years (DMV keeps them in the file).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many facility leads. Each lead is one charged row. Kings County has about 1,300 active facilities; New York State about 25,000.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}