{
  "openapi": "3.0.1",
  "info": {
    "title": "Company KYB API - $0.40/1K Companies, LEI + SEC | Johto Data",
    "description": "Verify companies in one call: GLEIF LEI records (status, registration no., jurisdiction, address, direct/ultimate parent) + SEC EDGAR identity (CIK, ticker, EIN, SIC, last filing). Fresh, clean company data. $0.40 per 1,000 rows.",
    "version": "0.1",
    "x-build-id": "1pMLksQvuj70ETdF4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johto.data~company-kyb-verification/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johto.data-company-kyb-verification",
        "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/johto.data~company-kyb-verification/runs": {
      "post": {
        "operationId": "runs-sync-johto.data-company-kyb-verification",
        "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/johto.data~company-kyb-verification/run-sync": {
      "post": {
        "operationId": "run-sync-johto.data-company-kyb-verification",
        "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": {
          "query": {
            "title": "Company name",
            "type": "string",
            "description": "Legal name to look up in GLEIF (top matches) and SEC listed companies (exact or prefix match). Empty input runs the demo 'Tesla, Inc.'. Use when: you only have a company's legal name. Don't use when: you have an LEI, CIK or ticker (use those fields for an exact match)."
          },
          "queries": {
            "title": "More company names",
            "type": "array",
            "description": "Several names; each gets its own matches. Use when: you check a batch of names in one run.",
            "items": {
              "type": "string"
            }
          },
          "lei": {
            "title": "LEIs",
            "type": "array",
            "description": "20-character Legal Entity Identifiers, e.g. 54930043XZGB27CTOV49. Use when: you have the LEI and want the exact GLEIF record plus parents.",
            "items": {
              "type": "string"
            }
          },
          "cik": {
            "title": "SEC CIKs",
            "type": "array",
            "description": "SEC Central Index Keys, e.g. 1318605. Use when: the company files with the SEC and you have its CIK.",
            "items": {
              "type": "string"
            }
          },
          "ticker": {
            "title": "Tickers",
            "type": "array",
            "description": "US tickers resolved to a CIK via SEC company_tickers.json, e.g. TSLA. Use when: the company is US-listed. Don't use when: it is private or non-US (use query or lei).",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (ISO-2)",
            "type": "string",
            "description": "Only GLEIF entities whose legal address is in this country, e.g. US, DE, GB. Any value other than US also skips the SEC name match. Use when: a common name returns entities from many countries."
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Empty = both. EU VIES is not offered because its terms forbid retransmission. Use gleif only for non-US entities; use sec only for US-listed identity (CIK, EIN, SIC, last filing).",
            "items": {
              "type": "string",
              "enum": [
                "gleif",
                "sec"
              ]
            }
          },
          "includeParents": {
            "title": "Include LEI parents",
            "type": "boolean",
            "description": "Adds the direct and ultimate parent (or the reporting exception) to GLEIF rows. 2-4 extra GLEIF calls per row. Turn off when you need speed and no ownership data.",
            "default": true
          },
          "matchesPerQuery": {
            "title": "GLEIF matches per name",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many GLEIF matches to return per company name, ranked by GLEIF relevance. Raise it when the top match may be the wrong entity.",
            "default": 3
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on rows returned (and billed, $0.0004 per row, $0.40 per 1,000). Use it to cap spend.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}