> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecorn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# # people at company

> Count matching profiles based on job titles and locations.

**Rate limit:** 2 requests per minute

# Count Profiles

The Count Profiles endpoint allows you to count the number of employee profiles matching specific criteria for a company. You can filter by job titles and locations to get precise counts of potential prospects.

## Required Parameters

You must provide one of the following to identify the target company:

* `company_linkedin_id`: The LinkedIn company identifier
* `company_linkedin_url`: The full URL of the company's LinkedIn profile (regular or Sales Navigator)

## Location IDs Reference

Location IDs used in this endpoint can be retrieved using the [Location Ids endpoint](/api-reference/endpoints/miscellaneous/location-ids). Simply provide a location name (e.g., "San Francisco") and the API will return all matching locations with their IDs.

## Request Example

```json theme={null}
{
  "company_linkedin_id": "1234567",  // Required if company_linkedin_url is not provided
  "title_to_include": ["Software Engineer", "Developer"],
  "title_to_exclude": ["Junior"],
  "included_locations": ["105015875", "102221843"],
  "excluded_locations": ["103644278"]
}
```

Alternative company identification:

```json theme={null}
{
  "company_linkedin_url": "https://www.linkedin.com/company/microsoft",  // Required if company_linkedin_id is not provided
  // ... other parameters ...
}
```

## Response Example

```json theme={null}
{
  "total": 26,
  "title_to_include": ["Software Engineer", "Developer"],
  "title_to_exclude": ["Junior"],
  "included_locations": ["105015875", "102221843"],
  "excluded_locations": ["103644278"]
}
```

## Understanding the Response

* `total`: The total number of profiles matching your criteria
* `title_to_include`: List of job titles that were included in the search
* `title_to_exclude`: List of job titles that were excluded from the search
* `included_locations`: List of Location IDs that were included
* `excluded_locations`: List of Location IDs that were excluded

## Tips

* Use location IDs to target specific geographic areas
* Combine title inclusions and exclusions to refine your search
* Keep your title filters relevant to ensure accurate results


## OpenAPI

````yaml POST /accounts/count_profiles
openapi: 3.0.1
info:
  title: Pipecorn Accounts API
  description: Pipecorn Accounts API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.pipecorn.com/api/v2/
security:
  - defaultApiKey: []
paths:
  /accounts/count_profiles:
    post:
      summary: Count matching profiles
      description: |-
        Count matching profiles based on job titles and locations.

        **Rate limit:** 2 requests per minute
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title_to_include:
                  type: array
                  items:
                    type: string
                  description: List of job titles that were included in the search
                  example:
                    - Software Engineer
                    - Developer
                title_to_exclude:
                  type: array
                  items:
                    type: string
                  description: List of job titles that were excluded from the search
                  example:
                    - Junior
                included_locations:
                  type: array
                  items:
                    type: string
                  description: List of Location IDs that were included in the search
                  example:
                    - '105015875'
                    - '102221843'
                excluded_locations:
                  type: array
                  items:
                    type: string
                  description: List of Location IDs that were excluded from the search
                  example:
                    - '103644278'
              oneOf:
                - type: object
                  required:
                    - company_linkedin_id
                  properties:
                    company_linkedin_id:
                      type: string
                      description: LinkedIn company identifier
                      example: '1234567'
                - type: object
                  required:
                    - company_linkedin_url
                  properties:
                    company_linkedin_url:
                      type: string
                      format: uri
                      description: >-
                        LinkedIn company profile URL (regular or Sales
                        Navigator)
                      example: https://www.linkedin.com/company/microsoft
      responses:
        '200':
          description: Successfully counted matching profiles
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                    description: Total number of matching profiles
                    example: 26
                  title_to_include:
                    type: array
                    items:
                      type: string
                    description: List of job titles that were included in the search
                    example:
                      - Software Engineer
                      - Developer
                  title_to_exclude:
                    type: array
                    items:
                      type: string
                    description: List of job titles that were excluded from the search
                    example:
                      - Junior
                  included_locations:
                    type: array
                    items:
                      type: string
                    description: List of Location IDs that were included in the search
                    example:
                      - '105015875'
                      - '102221843'
                  excluded_locations:
                    type: array
                    items:
                      type: string
                    description: List of Location IDs that were excluded from the search
                    example:
                      - '103644278'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (2 requests per minute)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    defaultApiKey:
      type: apiKey
      in: header
      description: Your API key
      name: X-API-KEY

````