{
  "openapi": "3.0.1",
  "info": {
    "title": "New York Business Entity Search Scraper — NY DOS",
    "description": "Search active New York corporations and LLCs by name, former name or DOS ID, up to 50 at once. Get entity type, filing date, county, agent and recent filings. USD 10 per 1,000.",
    "version": "1.0",
    "x-build-id": "geWcHbgV5YwiLvrtN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~ny-business-entity-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-ny-business-entity-scraper",
        "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/muhammadafzal~ny-business-entity-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-ny-business-entity-scraper",
        "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/muhammadafzal~ny-business-entity-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-ny-business-entity-scraper",
        "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": {
          "searchBy": {
            "title": "Search by",
            "enum": [
              "entityName",
              "dosId"
            ],
            "type": "string",
            "description": "Use this when choosing whether the query is a New York entity name or a Department of State identification number. Accepted values are entityName or dosId; entityName is the default. This is not a filing-document number or tax ID selector.",
            "default": "entityName"
          },
          "query": {
            "title": "Business name or DOS ID",
            "type": "string",
            "description": "Use this when searching one New York business name or DOS ID. Enter a name such as IBM or a digits-only DOS ID such as 1234567. Defaults to IBM for the Apify health test. Ignored when Search terms has values.",
            "default": "IBM"
          },
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "Use this to search up to 50 business names or DOS IDs in one run; replaces Business name or DOS ID when it has values. Results are taken from each term in turn, so every term is covered before Maximum results is reached.",
            "items": {
              "type": "string"
            }
          },
          "searchFunctionality": {
            "title": "Name matching",
            "enum": [
              "beginsWith",
              "contains",
              "exactMatch"
            ],
            "type": "string",
            "description": "Use this when controlling how a name query matches New York active records. Choose beginsWith, contains, or exactMatch; beginsWith is the default. This option is ignored for DOS ID searches.",
            "default": "beginsWith"
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "active",
              "inactive"
            ],
            "type": "string",
            "description": "Use this when declaring the status scope needed for the search. The actor's official NY Open Data source currently contains active entities; active is the default and inactive exits with an actionable warning. This is not a legal good-standing opinion.",
            "default": "active"
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Use this when limiting the active New York records to entity categories. Select any of corporation, limitedLiabilityCompany, limitedPartnership, or limitedLiabilityPartnership; all four are used by default. This is a client-side filter over the official active-entity dataset.",
            "items": {
              "type": "string",
              "enum": [
                "corporation",
                "limitedLiabilityCompany",
                "limitedPartnership",
                "limitedLiabilityPartnership"
              ],
              "enumTitles": [
                "Corporation",
                "Limited liability company",
                "Limited partnership",
                "Limited liability partnership"
              ]
            },
            "default": [
              "corporation",
              "limitedLiabilityCompany",
              "limitedPartnership",
              "limitedLiabilityPartnership"
            ]
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Use this when capping the number of unique active entity records returned and charged. Enter an integer from 1 to 500; the default is 50. This is a result cap, not a page count or API request limit.",
            "default": 50
          },
          "requestDelayMs": {
            "title": "API delay (ms)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Use this when pacing requests to the official New York Open Data API. Enter 100 to 5000 milliseconds; the default is 400. Use a larger value for repeated runs, not as a substitute for a valid query.",
            "default": 400
          },
          "includeHistoricalNames": {
            "title": "Match former and assumed names",
            "type": "boolean",
            "description": "Use this to also find active entities whose former or assumed names match the search term, from New York's name-history dataset. Each matching row lists those names in historicalNames. Name searches only; ignored for DOS IDs.",
            "default": false
          },
          "includeFilings": {
            "title": "Add recent filings",
            "type": "boolean",
            "description": "Use this to attach each entity's recent DOS filings, such as articles, amendments, biennial statements or dissolutions, newest first. Filings add no charge.",
            "default": false
          },
          "maxFilingsPerEntity": {
            "title": "Filings per entity",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Use this to cap the filings attached to each entity when Add recent filings is on. 1 to 20; default 5. This is not a cap on entity results.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}