# TheirStack

> Find job postings, companies, buying intent and the technologies companies use.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/theirstack

## Actions

### Count webhook events

Count webhook events.

**Inputs**

- Webhook (`webhook_id`, number, required): ID of the webhook
- Status (`status`, text): Status of the webhook events to filter by. One of: `IN_PROGRESS` (In progress), `SUCCESS`, `FAILED`, `NOT_TRIGGERED` (Not triggered).

**Outputs**

- `data` (number): The response from TheirStack.

**Example output**

```json
{
  "data": 1
}
```

### Create company list

Create company list.

**Inputs**

- Name (`name`, text, required): Name of the company list

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "companies_count": 1,
    "created_at": "example",
    "customer_crm_connection_id": 1,
    "deletable": true,
    "id": 1,
    "name": "example",
    "type": "example",
    "user_id": 1,
    "webhook_id": 1
  }
}
```

### Delete company list

Delete company list.

**Inputs**

- List ID (`list_id`, number, required): List id.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {}
}
```

### Find locations

Find locations.

**Inputs**

- Name (`name`, text): Search value for the location, this will be used to filter the locations by name
- Country code (`country_code`, text): The country code of the location, all the returned locations will be filtered by this country code
- Offset (`offset`, number): The offset of the results. At least 0.
- Limit (`limit`, number): The limit of the results. From 1 to 100000.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "admin1_name": "example",
      "country_code": "example",
      "country_name": "example",
      "display_name": "example",
      "feature_code": "example",
      "feature_name": "example",
      "id": 1,
      "name": "example"
    }
  ]
}
```

### Find technologies and topics

Find technologies and topics.

**Inputs**

- Keyword type (`keyword_type`, text): Keyword type to filter by. One of: `technology`, `software_product` (Software product), `technology_concept` (Technology concept), `operational_activity` (Operational activity), `strategic_initiative` (Strategic initiative), `metric_or_concept` (Metric or concept), `product_or_service_offered` (Product or service offered), `regulation`, `threat_or_risk` (Threat or risk), `event`, and 5 more.
- Keyword type not (`keyword_type_not`, list): Exclude keywords of these types. One or more of: `technology`, `software_product` (Software product), `technology_concept` (Technology concept), `operational_activity` (Operational activity), `strategic_initiative` (Strategic initiative), `metric_or_concept` (Metric or concept), `product_or_service_offered` (Product or service offered), `regulation`, `threat_or_risk` (Threat or risk), `event`, and 5 more.
- Name pattern (`name_pattern`, text): Case-insensitive text to search for in the keyword name
- Slug (`slug`, list): Keyword slug of a single keyword
- Slugs (`slugs`, list): Keyword slugs of one or many keywords
- Category pattern (`category_pattern`, text): Case-insensitive text to search for in the keyword category. For example, `data` to find 'data tools'.
- Category slug (`category_slug`, text): Keyword category slug
- Parent category slug (`parent_category_slug`, text): Keyword parent category slug
- Parent category pattern (`parent_category_pattern`, text): Case-insensitive text to search for in the keyword parent category name
- Q (`q`, text): General search query. Searches across keyword name, keyword type, category, and parent category (case-insensitive). Results where the keyword name starts with the query are ranked first.
- Starts with (`starts_with`, text): Filter keywords whose name starts with this string (e.g. 'A' for glossary). Special value '__other__' selects keywords whose name does not start with letters A-Z.
- Include metadata (`include_metadata`, true/false): Deprecated, metadata is always included now
- Page (`page`, number): Page number. At least 0.
- Limit (`limit`, number): Number of results per page. At least 1.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "limit": 1,
      "page": 1,
      "total_results": 1
    }
  }
}
```

### Get companies in a list

Get companies in a list.

**Inputs**

- List ID (`list_id`, number, required): List id.
- Order by (`order_by`, text): Order by field. One of: `revealed_at` (Revealed at), `name`.
- Order direction (`order_direction`, text): Order direction. One of: `asc`, `desc`.
- Company name partial (`company_name_partial`, text): Pass a partial company name to filter the list of companies
- Limit (`limit`, number): Number of results per page. At least 1.
- Page (`page`, number): Page number. Required when using page-based pagination. At least 0.
- Offset (`offset`, number): Number of results to skip. Required for offset-based pagination. At least 0.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "added_at": "example",
      "company_name": "example",
      "company_object": {},
      "revealed_at": "example"
    }
  ]
}
```

### Get company buying intents

Get company buying intents.

**Inputs**

- Company ID (`company_id`, text): Only return companies that match this TheirStack Company ID exactly. This ID is temporary and internal and will change in the future and become stable. Until then, it is only meant to be used internally by our UI (app.theirstack.com). For deduplication logic, use company_domain or company_linkedin_url instead.
- Company name (`company_name`, text): Only return companies that match this name exactly, case-sensitively.
- Company domain (`company_domain`, text): Only return companies that match this domain exactly. It accepts full urls (https://www.google.com/) and emails (andrew@stripe.com).
- Offset (`offset`, number): Number of results to skip. Required for offset-based pagination. At least 0.0.
- Limit (`limit`, number): Number of results per page. At least 1.0.
- Technology slug or (`technology_slug_or`, list): Deprecated: use `keyword_slug_or` instead. Only return these technologies. Case sensitive. Pass slugs.
- First date found gte (`first_date_found_gte`, date): Only return keywords (technologies or buying intent topics) where the first time they were found was after or on this date. Format: "YYYY-MM-DD"
- Last date found gte (`last_date_found_gte`, date): Only return keywords (technologies or buying intent topics) where the last time they were found was after or on this date. Format: "YYYY-MM-DD"

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "total_companies": 1,
      "total_results": 1,
      "truncated_companies": 1,
      "truncated_results": 1
    }
  }
}
```

### Get company list

Get company list.

**Inputs**

- List ID (`list_id`, number, required): List id.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "companies_count": 1,
    "created_at": "example",
    "customer_crm_connection_id": 1,
    "deletable": true,
    "id": 1,
    "name": "example",
    "type": "example",
    "user_id": 1,
    "webhook_id": 1
  }
}
```

### Get company technographics

Get company technographics.

**Inputs**

- Company ID (`company_id`, text): Only return companies that match this TheirStack Company ID exactly. This ID is temporary and internal and will change in the future and become stable. Until then, it is only meant to be used internally by our UI (app.theirstack.com). For deduplication logic, use company_domain or company_linkedin_url instead.
- Company name (`company_name`, text): Only return companies that match this name exactly, case-sensitively.
- Company domain (`company_domain`, text): Only return companies that match this domain exactly. It accepts full urls (https://www.google.com/) and emails (andrew@stripe.com).
- Offset (`offset`, number): Number of results to skip. Required for offset-based pagination. At least 0.0.
- Limit (`limit`, number): Number of results per page. At least 1.0.
- Technology slug or (`technology_slug_or`, list): Deprecated: use `keyword_slug_or` instead. Only return these technologies. Case sensitive. Pass slugs.
- First date found gte (`first_date_found_gte`, date): Only return keywords (technologies or buying intent topics) where the first time they were found was after or on this date. Format: "YYYY-MM-DD"
- Last date found gte (`last_date_found_gte`, date): Only return keywords (technologies or buying intent topics) where the last time they were found was after or on this date. Format: "YYYY-MM-DD"

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "total_companies": 1,
      "total_results": 1,
      "truncated_companies": 1,
      "truncated_results": 1
    }
  }
}
```

### Get credit balance

Get credit balance.

**Inputs**: None.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "api_credits": 1,
    "earliest_expiration": "example",
    "ui_credits": 1,
    "used_api_credits": 1,
    "used_ui_credits": 1
  }
}
```

### List api keys

List api keys.

**Inputs**

- Window days (`window_days`, number): Window days. From 1 to 90.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "calls_in_window": 1,
      "created_at": "example",
      "created_by": 1,
      "created_by_email": "example",
      "created_by_is_active_member": true,
      "daily_calls": [
        {}
      ],
      "id": "example",
      "last_used_at": "example",
      "name": "example"
    }
  ]
}
```

### List company lists

List company lists.

**Inputs**: None.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "companies_count": 1,
      "created_at": "example",
      "customer_crm_connection_id": 1,
      "deletable": true,
      "id": 1,
      "name": "example",
      "type": "example",
      "user_id": 1,
      "webhook_id": 1
    }
  ]
}
```

### List industries

List industries.

**Inputs**

- Industry (`industry`, text): Name of an industry, case-insensitive. Will return industries that contain the given string either in their name, hierarchy or description
- Page (`page`, number): Page number. At least 0.
- Limit (`limit`, number): Number of results per page. At least 1.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "total_results": 1
    }
  }
}
```

### List saved searches

List saved searches.

**Inputs**

- User IDS (`user_ids`, list): Get saved searches from users with these IDs. The IDs must be from people in the current users' team.
- Types (`types`, list): Filter by type of search. One or more of: `companies`, `jobs`.
- Order by (`order_by`, text): Order by field. One of: `name`, `created_at` (Created at), `updated_at` (Updated at).
- Order direction (`order_direction`, text): Order direction. One of: `asc`, `desc`.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "creator": {},
      "id": 1,
      "is_alert_active": true,
      "name": "example",
      "path": "example",
      "query": "example",
      "querystring_params": {},
      "team_id": 1,
      "type": "example",
      "updated_at": "example",
      "user_id": 1
    }
  ]
}
```

### List webhook event types

List webhook event types.

**Inputs**

- Search type (`search_type`, text): Filter event types by search type: 'jobs' or 'companies'. One of: `jobs`, `companies`.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "credits_per_event": 1,
      "description": "example",
      "details": "example",
      "example_payload": {},
      "public_name": "example",
      "record_type": "example",
      "type": "example"
    }
  ]
}
```

### List webhook events

List webhook events.

**Inputs**

- Webhook (`webhook_id`, number, required): ID of the webhook
- Status (`status`, text): Status of the webhook events to filter by. One of: `IN_PROGRESS` (In progress), `SUCCESS`, `FAILED`, `NOT_TRIGGERED` (Not triggered).
- Offset (`offset`, number): Number of results to skip. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "company_name": "example",
      "created_at": "example",
      "event_type": "example",
      "id": 1,
      "job_id": 1,
      "response_body": "example",
      "response_status_code": 1,
      "status": "example",
      "triggered_at": "example",
      "updated_at": "example",
      "webhook_id": 1
    }
  ]
}
```

### List webhooks

List webhooks.

**Inputs**

- Include archived (`include_archived`, true/false): Include archived webhooks in the response. They no longer deliver events, but their event history is retained and their name is needed to label past events.

**Outputs**

- `data` (list): The response from TheirStack.

**Example output**

```json
{
  "data": [
    {
      "active_event_types": [
        "example"
      ],
      "description": "example",
      "id": 1,
      "is_active": true,
      "is_archived": true,
      "listening_start_time": "example",
      "max_events_per_day": 1,
      "search_id": 1,
      "team_id": 1,
      "trigger_once_per_company": true,
      "url": "example",
      "user_id": 1
    }
  ]
}
```

### Rename company list

Rename company list.

**Inputs**

- List ID (`list_id`, number, required): List id.
- New name (`new_name`, text, required): New name of the company list

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "companies_count": 1,
    "created_at": "example",
    "customer_crm_connection_id": 1,
    "deletable": true,
    "id": 1,
    "name": "example",
    "type": "example",
    "user_id": 1,
    "webhook_id": 1
  }
}
```

### Search companies

Search companies.

**Inputs**

- Order by (`order_by`, list): List of column objects. You can pass several columns to order by, in order of priority. Only `field` is required, `desc` is True by default
- Company name or (`company_name_or`, list): Only return companies that match these names exactly, case-sensitively. This filter acts as an OR filter, so if you pass more than one company name, it will return companies that match any of the names.
- Company domain or (`company_domain_or`, list): Only return companies that match these domains exactly. It accepts full urls (https://www.google.com/) and emails (andrew@stripe.com). This filter acts as an OR filter, so if you pass more than one company domain, it will return companies that match any of the domains.
- Limit (`limit`, number): Number of results per page. At least 1.0.
- Cursor (`cursor`, text): Cursor for pagination
- Funding stage or (`funding_stage_or`, list): Funding stage or.
- Industry or (`industry_or`, list): Names of industries, case-insensitive. Results will only include companies that belong to any of the industries specified in this parameter. Available values: GET /v0/catalog/industries
- Company type (`company_type`, text): Filter by company type. One of: `recruiting_agency` (Recruiting agency), `direct_employer` (Direct employer), `all`.
- Company country code or (`company_country_code_or`, list): Return companies whose HQ country code is any of the ones passed here, case sensitive. Pass ISO2 country codes.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "total_companies": 1,
      "total_results": 1,
      "truncated_companies": 1,
      "truncated_results": 1
    }
  }
}
```

### Search jobs

Search jobs.

**Inputs**

- Order by (`order_by`, list): List of column objects. You can pass several columns to order by, in order of priority. Only `field` is required, `desc` is True by default.
- Limit (`limit`, number): Number of results per page. At least 1.0.
- Cursor (`cursor`, text): Cursor for pagination
- Job title or (`job_title_or`, list): Job title or.
- Job country code or (`job_country_code_or`, list): 2-letter ISO country code of the location of the job. Can pass more than 1
- Posted at gte (`posted_at_gte`, date): ISO 8601 date string (yyyy-mm-dd). Only jobs published in this date or after will be returned. A datetime is accepted too and only its date in UTC is used.
- Posted at lte (`posted_at_lte`, date): ISO 8601 date string (yyyy-mm-dd). Only jobs published in this date or before will be returned. A datetime is accepted too and only its date in UTC is used.
- Remote (`remote`, true/false): Deprecated. Use workplace_types_or instead. True: only show remote jobs. False: only show non-remote jobs. None: show all jobs.
- Workplace types or (`workplace_types_or`, list): Filter jobs by workplace type. Returns jobs that match any of the specified workplace types. `on_site` matches jobs that are neither hybrid nor remote. If no values are provided or an empty list is sent, jobs are not filtered by workplace type. One or more of: `on_site` (On site), `hybrid`, `remote`.
- Employment statuses or (`employment_statuses_or`, list): Filter jobs by employment status. Returns jobs that match any of the specified employment types. If no values are provided or an empty list is sent, all jobs regardless of employment status will be returned. One or more of: `full_time` (Full time), `part_time` (Part time), `temporary`, `internship`, `contract`, `freelance`, `co_founder` (Co founder), `apprenticeship`, `seasonal`, `volunteer`, `other`.
- Is closed (`is_closed`, true/false): If True, only return closed jobs (jobs where TheirStack detected the posting was closed). If False, only return open jobs. If None, return all jobs regardless of closure status.
- Company domain or (`company_domain_or`, list): Only return companies that match these domains exactly. It accepts full urls (https://www.google.com/) and emails (andrew@stripe.com). This filter acts as an OR filter, so if you pass more than one company domain, it will return companies that match any of the domains.

**Outputs**

- `data` (object): The response from TheirStack.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "metadata": {
      "total_companies": 1,
      "total_results": 1,
      "truncated_companies": 1,
      "truncated_results": 1
    }
  }
}
```
