{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Search",
    "description": "Tomba Companies lets you identify companies aligned with your ideal customer profile. Add filters to quickly surface qualified companies and proceed to find their contact information.",
    "version": "0.0",
    "x-build-id": "PZa802iDbxGromHb6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tomba-io~company-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tomba-io-company-search",
        "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/tomba-io~company-search/runs": {
      "post": {
        "operationId": "runs-sync-tomba-io-company-search",
        "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/tomba-io~company-search/run-sync": {
      "post": {
        "operationId": "run-sync-tomba-io-company-search",
        "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",
        "required": [
          "tombaApiKey",
          "tombaApiSecret"
        ],
        "properties": {
          "tombaApiKey": {
            "title": "Tomba API Key",
            "type": "string",
            "description": "Your Tomba API key. Get it from https://app.tomba.io/api"
          },
          "tombaApiSecret": {
            "title": "Tomba API Secret",
            "type": "string",
            "description": "Your Tomba API secret. Get it from https://app.tomba.io/api"
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Natural language query to search for companies (e.g., 'technology companies in san francisco')"
          },
          "filters": {
            "title": "Company Filters",
            "type": "object",
            "description": "Advanced filters to refine your company search",
            "properties": {
              "company": {
                "title": "Company Name",
                "type": "object",
                "description": "Filter by company name",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Company names to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Company names to exclude",
                    "editor": "json"
                  }
                }
              },
              "location_country": {
                "title": "Country",
                "type": "object",
                "description": "Filter by country using 2-letter ISO country codes (e.g., US, GB, FR, CA, DE)",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Countries to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Countries to exclude",
                    "editor": "json"
                  }
                }
              },
              "location_city": {
                "title": "City",
                "type": "object",
                "description": "Filter by city",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Cities to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Cities to exclude",
                    "editor": "json"
                  }
                }
              },
              "location_state": {
                "title": "State/Region",
                "type": "object",
                "description": "Filter by state/region",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "States to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "States to exclude",
                    "editor": "json"
                  }
                }
              },
              "industry": {
                "title": "Industry",
                "type": "object",
                "description": "Filter by industry",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Industries to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Industries to exclude",
                    "editor": "json"
                  }
                }
              },
              "size": {
                "title": "Company Size",
                "type": "object",
                "description": "Filter by company size (e.g., '1-10', '11-50', '51-200', '201-500', '501-1000', '1000+')",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Sizes to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Sizes to exclude",
                    "editor": "json"
                  }
                }
              },
              "type": {
                "title": "Company Type",
                "type": "object",
                "description": "Filter by company type",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Types to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Types to exclude",
                    "editor": "json"
                  }
                }
              },
              "keywords": {
                "title": "Keywords",
                "type": "object",
                "description": "Filter by keywords",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Keywords to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Keywords to exclude",
                    "editor": "json"
                  }
                }
              },
              "founded": {
                "title": "Founded Year",
                "type": "object",
                "description": "Filter by founding year",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Years to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Years to exclude",
                    "editor": "json"
                  }
                }
              },
              "technologies": {
                "title": "Technologies",
                "type": "object",
                "description": "Filter by technologies used",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Technologies to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Technologies to exclude",
                    "editor": "json"
                  }
                }
              },
              "similar": {
                "title": "Similar Companies",
                "type": "object",
                "description": "Filter by similar companies",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Similar companies to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Similar companies to exclude",
                    "editor": "json"
                  }
                }
              },
              "revenue": {
                "title": "Revenue Range",
                "type": "object",
                "description": "Filter by revenue range",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "Revenue ranges to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "Revenue ranges to exclude",
                    "editor": "json"
                  }
                }
              },
              "sic": {
                "title": "SIC Code",
                "type": "object",
                "description": "Filter by SIC (Standard Industrial Classification) code",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "SIC codes to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "SIC codes to exclude",
                    "editor": "json"
                  }
                }
              },
              "naics": {
                "title": "NAICS Code",
                "type": "object",
                "description": "Filter by NAICS (North American Industry Classification System) code",
                "editor": "json",
                "properties": {
                  "include": {
                    "title": "Include",
                    "type": "array",
                    "description": "NAICS codes to include",
                    "editor": "json"
                  },
                  "exclude": {
                    "title": "Exclude",
                    "type": "array",
                    "description": "NAICS codes to exclude",
                    "editor": "json"
                  }
                }
              }
            }
          },
          "source": {
            "title": "Source Fields",
            "type": "array",
            "description": "Specify which fields to include in the response. Leave empty for all fields.",
            "items": {
              "type": "string"
            }
          },
          "page": {
            "title": "Starting Page",
            "minimum": 1,
            "type": "integer",
            "description": "Page number to start from (default: 1)",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of companies to return (default: 100)",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}