> For the complete documentation index, see [llms.txt](https://agpt.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agpt.co/docs/integrations/block-integrations/companies.md).

# Treg Companies

Find and look up companies through [Treg](https://treg.to), which routes each request across company-data providers and bills per call with no provider signup. Needs a Treg API key from treg.to. Every paid call is billed by Treg from your team's prepaid balance at the provider's price, and the block reports the charge as `cost_usd`. Treg blocks run on your own Treg key, and the platform charges no credits for them.

## Treg Enrich Company

### What it is

Look up a company (what it does, size, industry, founding year, headquarters and LinkedIn) from its domain, name, LinkedIn page or an employee's email, through Treg.

### How it works

The block sends one request to `POST https://treg.to/call/treg.companies.enrich` with your Treg key in the `X-Treg-Token` header. Treg tries the providers that do this job, your team's own keys first and then the cheapest per answer, and moves on when one fails or has no answer, until one answers or `max_cost_usd` (sent as `X-Treg-Route-Max-Cost`) would be passed. Turning off `try_more_providers` stops after the first provider. When nobody has an answer the block emits `found: false` rather than an error; some providers bill a miss, so `cost_usd` can be above zero. Failed calls raise a block error with Treg's reason (for example an empty balance, with the top-up link) and are not retried, because a repeated paid call can be billed again. Give a domain, a name, a LinkedIn company page or anyone's work email at the company; the block returns the standard fields any provider fills, and `raw` holds the rest.

### Inputs

| Input                | Description                                                                                                                                              | Type  | Required |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | -------- |
| max\_cost\_usd       | The most this run may spend, in USD, across every provider Treg tries. A call that would go over it is refused without charge.                           | float | No       |
| try\_more\_providers | When a provider has no answer, try the next cheapest one, up to the spending cap. Some providers bill a miss. Turn off to stop after the first provider. | bool  | No       |
| domain               | The company's website domain, e.g. 'modal.com'.                                                                                                          | str   | No       |
| name                 | The company's name.                                                                                                                                      | str   | No       |
| linkedin\_url        | Its LinkedIn company page URL.                                                                                                                           | str   | No       |
| email                | Anyone's work email at the company.                                                                                                                      | str   | No       |

### Outputs

| Output           | Description                                                                                                               | Type            |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- | --------------- |
| error            | Error message if the operation failed                                                                                     | str             |
| found            | True when a provider had an answer, false when none did.                                                                  | bool            |
| served\_by       | The Treg tool that answered, e.g. 'hunter.email.finder'. Emitted only when one did.                                       | str             |
| providers\_tried | Providers Treg asked, in order.                                                                                           | List\[str]      |
| cost\_usd        | What Treg charged for this run, in USD.                                                                                   | float           |
| call\_id         | Treg's id for this call, to look it up in your Treg activity.                                                             | str             |
| advice           | Treg's note on how far to trust the answer, e.g. that an email was found but not checked. Emitted only when there is one. | str             |
| raw              | The serving provider's full answer, with fields beyond the standard ones. Emitted only when one answered.                 | Dict\[str, Any] |
| name             | Company name.                                                                                                             | str             |
| domain           | Website domain.                                                                                                           | str             |
| website          | Website URL.                                                                                                              | str             |
| description      | What the company does.                                                                                                    | str             |
| industry         | Industry.                                                                                                                 | str             |
| employees        | Headcount or headcount range.                                                                                             | str             |
| founded          | Year founded.                                                                                                             | int             |
| location         | Headquarters.                                                                                                             | str             |
| linkedin\_url    | LinkedIn company page URL.                                                                                                | str             |

### Possible use case

**Lead routing**: Size and categorise a company from a signup's email domain.

**Account research**: Get a one-line description, headcount and headquarters for each target account.

***

## Treg Find Company Jobs

### What it is

List a company's open job listings, a strong signal of what it is investing in, through Treg.

### How it works

The block sends one request to `POST https://treg.to/call/treg.companies.jobs.search` with your Treg key in the `X-Treg-Token` header. Treg tries the providers that do this job, your team's own keys first and then the cheapest per answer, and moves on when one fails or has no answer, until one answers or `max_cost_usd` (sent as `X-Treg-Route-Max-Cost`) would be passed. Turning off `try_more_providers` stops after the first provider. When nobody has an answer the block emits `found: false` rather than an error; some providers bill a miss, so `cost_usd` can be above zero. Failed calls raise a block error with Treg's reason (for example an empty balance, with the top-up link) and are not retried, because a repeated paid call can be billed again. Give a company's domain or name; the block returns open job listings in the serving provider's own format.

### Inputs

| Input                | Description                                                                                                                                              | Type  | Required |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | -------- |
| max\_cost\_usd       | The most this run may spend, in USD, across every provider Treg tries. A call that would go over it is refused without charge.                           | float | No       |
| try\_more\_providers | When a provider has no answer, try the next cheapest one, up to the spending cap. Some providers bill a miss. Turn off to stop after the first provider. | bool  | No       |
| domain               | The company's website domain.                                                                                                                            | str   | No       |
| name                 | The company's name.                                                                                                                                      | str   | No       |
| limit                | How many results to return. Most providers bill per result, so this is the main price dial.                                                              | int   | No       |

### Outputs

| Output           | Description                                                                                                               | Type                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| error            | Error message if the operation failed                                                                                     | str                    |
| found            | True when a provider had an answer, false when none did.                                                                  | bool                   |
| served\_by       | The Treg tool that answered, e.g. 'hunter.email.finder'. Emitted only when one did.                                       | str                    |
| providers\_tried | Providers Treg asked, in order.                                                                                           | List\[str]             |
| cost\_usd        | What Treg charged for this run, in USD.                                                                                   | float                  |
| call\_id         | Treg's id for this call, to look it up in your Treg activity.                                                             | str                    |
| advice           | Treg's note on how far to trust the answer, e.g. that an email was found but not checked. Emitted only when there is one. | str                    |
| raw              | The serving provider's full answer, with fields beyond the standard ones. Emitted only when one answered.                 | Dict\[str, Any]        |
| jobs             | Open job listings, in the serving provider's own format.                                                                  | List\[Dict\[str, Any]] |
| count            | How many listings came back.                                                                                              | int                    |

### Possible use case

**Buying signals**: Spot accounts hiring for roles that need your product.

**Recruiting intelligence**: Track what a competitor is hiring for.

***

## Treg Find Similar Companies

### What it is

Find companies similar to one you name, through Treg.

### How it works

The block sends one request to `POST https://treg.to/call/treg.companies.similar` with your Treg key in the `X-Treg-Token` header. Treg tries the providers that do this job, your team's own keys first and then the cheapest per answer, and moves on when one fails or has no answer, until one answers or `max_cost_usd` (sent as `X-Treg-Route-Max-Cost`) would be passed. Turning off `try_more_providers` stops after the first provider. When nobody has an answer the block emits `found: false` rather than an error; some providers bill a miss, so `cost_usd` can be above zero. Failed calls raise a block error with Treg's reason (for example an empty balance, with the top-up link) and are not retried, because a repeated paid call can be billed again. Give a company's domain; the block returns lookalike companies in the serving provider's own format.

### Inputs

| Input                | Description                                                                                                                                              | Type  | Required |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | -------- |
| max\_cost\_usd       | The most this run may spend, in USD, across every provider Treg tries. A call that would go over it is refused without charge.                           | float | No       |
| try\_more\_providers | When a provider has no answer, try the next cheapest one, up to the spending cap. Some providers bill a miss. Turn off to stop after the first provider. | bool  | No       |
| domain               | The company to find lookalikes of, by website domain, e.g. 'modal.com'.                                                                                  | str   | Yes      |

### Outputs

| Output           | Description                                                                                                               | Type                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| error            | Error message if the operation failed                                                                                     | str                    |
| found            | True when a provider had an answer, false when none did.                                                                  | bool                   |
| served\_by       | The Treg tool that answered, e.g. 'hunter.email.finder'. Emitted only when one did.                                       | str                    |
| providers\_tried | Providers Treg asked, in order.                                                                                           | List\[str]             |
| cost\_usd        | What Treg charged for this run, in USD.                                                                                   | float                  |
| call\_id         | Treg's id for this call, to look it up in your Treg activity.                                                             | str                    |
| advice           | Treg's note on how far to trust the answer, e.g. that an email was found but not checked. Emitted only when there is one. | str                    |
| raw              | The serving provider's full answer, with fields beyond the standard ones. Emitted only when one answered.                 | Dict\[str, Any]        |
| companies        | Matching companies, in the serving provider's own format.                                                                 | List\[Dict\[str, Any]] |
| count            | How many companies came back.                                                                                             | int                    |

### Possible use case

**Expansion**: Find more accounts like your best customers.

**Competitive research**: List a company's closest competitors.

***

## Treg Search Companies

### What it is

Find companies by description, name, industry or the technology they use. Treg routes the search across many company-data providers.

### How it works

The block sends one request to `POST https://treg.to/call/treg.companies.search` with your Treg key in the `X-Treg-Token` header. Treg tries the providers that do this job, your team's own keys first and then the cheapest per answer, and moves on when one fails or has no answer, until one answers or `max_cost_usd` (sent as `X-Treg-Route-Max-Cost`) would be passed. Turning off `try_more_providers` stops after the first provider. When nobody has an answer the block emits `found: false` rather than an error; some providers bill a miss, so `cost_usd` can be above zero. Failed calls raise a block error with Treg's reason (for example an empty balance, with the top-up link) and are not retried, because a repeated paid call can be billed again. Describe the kind of company in plain words, or give a name, industry or technology they use, plus an optional country. `limit` is the main price dial. Rows come back in the serving provider's own format.

### Inputs

| Input                | Description                                                                                                                                              | Type  | Required |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | -------- |
| max\_cost\_usd       | The most this run may spend, in USD, across every provider Treg tries. A call that would go over it is refused without charge.                           | float | No       |
| try\_more\_providers | When a provider has no answer, try the next cheapest one, up to the spending cap. Some providers bill a miss. Turn off to stop after the first provider. | bool  | No       |
| description          | What kind of company, in plain words, e.g. 'Series A developer tools startups in Berlin'.                                                                | str   | No       |
| name                 | Look for a company by name.                                                                                                                              | str   | No       |
| industry             | Only companies in this industry.                                                                                                                         | str   | No       |
| technology           | Only companies that use this technology, e.g. 'Snowflake'.                                                                                               | str   | No       |
| country              | Two-letter country code, e.g. 'DE', where the provider supports it.                                                                                      | str   | No       |
| limit                | How many results to return. Most providers bill per result, so this is the main price dial.                                                              | int   | No       |

### Outputs

| Output           | Description                                                                                                               | Type                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| error            | Error message if the operation failed                                                                                     | str                    |
| found            | True when a provider had an answer, false when none did.                                                                  | bool                   |
| served\_by       | The Treg tool that answered, e.g. 'hunter.email.finder'. Emitted only when one did.                                       | str                    |
| providers\_tried | Providers Treg asked, in order.                                                                                           | List\[str]             |
| cost\_usd        | What Treg charged for this run, in USD.                                                                                   | float                  |
| call\_id         | Treg's id for this call, to look it up in your Treg activity.                                                             | str                    |
| advice           | Treg's note on how far to trust the answer, e.g. that an email was found but not checked. Emitted only when there is one. | str                    |
| raw              | The serving provider's full answer, with fields beyond the standard ones. Emitted only when one answered.                 | Dict\[str, Any]        |
| companies        | Matching companies, in the serving provider's own format.                                                                 | List\[Dict\[str, Any]] |
| count            | How many companies came back.                                                                                             | int                    |

### Possible use case

**Market maps**: List companies in a niche or region.

**Technographic targeting**: Find companies that use a technology your product integrates with.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://agpt.co/docs/integrations/block-integrations/companies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
