---
title: "Scroll over all companies"
method: GET
path: "/companies/scroll"
tags: ["Companies"]
---

# Scroll over all companies

`GET /companies/scroll`

The `list all companies` functionality does not work well for huge datasets, and can result in errors and performance problems when paging deeply. The Scroll API provides an efficient mechanism for iterating over all companies in a dataset.

- Each app can only have 1 scroll open at a time. You'll get an error message if you try to have more than one open per app.
- If the scroll isn't used for 1 minute, it expires and calls with that scroll param will fail
- If the end of the scroll is reached, "companies" will be empty and the scroll parameter will expire

{% admonition type="info" name="Scroll Parameter" %}
  You can get the first page of companies by simply sending a GET request to the scroll endpoint.
  For subsequent requests you will need to use the scroll parameter from the response.
{% /admonition %}
{% admonition type="danger" name="Scroll network timeouts" %}
  Since scroll is often used on large datasets network errors such as timeouts can be encountered. When this occurs you will see a HTTP 500 error with the following message:
  "Request failed due to an internal network error. Please restart the scroll operation."
  If this happens, you will need to restart your scroll query: It is not possible to continue from a specific point when using scroll.
{% /admonition %}

## Query parameters

- `scroll_param` string

## Headers

- `Intercom-Version` '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '2.0' | '2.1' | '2.2' | '2.3' | '2.4' | '2.5' | '2.6' | '2.7' | '2.8' | '2.9' | '2.10' | '2.11' | '2.12' | '2.13' | '2.14' — Intercom API version.</br>By default, it's equal to the version set in the app package.

## Response `200`

Successful

- CompanyScroll, nullable — Companies allow you to represent organizations using your product. Each company will have its own description and be associated with contacts. You can fetch, create, update and list companies.
  - `type` 'list' — The type of object - `list`
  - `data` Company[]
    - `type` 'company' — Value is `company`
    - `id` string — The Intercom defined id representing the company.
    - `name` string — The name of the company.
    - `app_id` string — The Intercom defined code of the workspace the company is associated to.
    - `plan` object
      - `type` string — Value is always "plan"
      - `id` string — The id of the plan
      - `name` string — The name of the plan
    - `company_id` string — The company id you have defined for the company.
    - `remote_created_at` integer — The time the company was created by you.
    - `created_at` integer — The time the company was added in Intercom.
    - `updated_at` integer — The last time the company was updated.
    - `last_request_at` integer — The time the company last recorded making a request.
    - `size` integer — The number of employees in the company.
    - `website` string — The URL for the company website.
    - `industry` string — The industry that the company operates in.
    - `monthly_spend` integer — How much revenue the company generates for your business.
    - `session_count` integer — How many sessions the company has recorded.
    - `user_count` integer — The number of users in the company.
    - `custom_attributes` object — The custom attributes you have set on the company.
    - `tags` object — The list of tags associated with the company
      - `type` 'tag.list' — The type of the object
      - `tags` TagBasic[]
        - `type` string — value is "tag"
        - `id` string — The id of the tag
        - `name` string — The name of the tag
    - `segments` object — The list of segments associated with the company
      - `type` 'segment.list' — The type of the object
      - `segments` Segment[]
        - `type` 'segment' — The type of object.
        - `id` string — The unique identifier representing the segment.
        - `name` string — The name of the segment.
        - `created_at` integer — The time the segment was created.
        - `updated_at` integer — The time the segment was updated.
        - `person_type` 'contact' | 'user' — Type of the contact: contact (lead) or user.
        - `count` integer, nullable — The number of items in the user segment. It's returned when `include_count=true` is included in the request.
  - `pages` CursorPages, nullable — Cursor-based pagination is a technique used in the Intercom API to navigate through large amounts of data. A "cursor" or pointer is used to keep track of the current position in the result set, allowing the API to return the data in small chunks or "pages" as needed.
    - `type` 'pages' — the type of object `pages`.
    - `page` integer — The current page
    - `next` StartingAfterPaging, nullable
      - `per_page` integer — The number of results to fetch per page.
      - `starting_after` string, nullable — The cursor to use in the next request to get the next page of results.
    - `per_page` integer — Number of results per page
    - `total_pages` integer — Total number of pages
  - `total_count` integer, nullable — The total number of companies
  - `scroll_param` string — The scroll parameter to use in the next request to fetch the next page of results.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/intercom/apis/intercom-api.md) · [All operations](https://skmtc.net/intercom/apis/intercom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/intercom/intercom-api/revisions/9517e80f2642/schema)
