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

# Find Custom Headcount

> - Discover the count of employees within a specific company who meet designated criteria. 

 - 1 credit per call.

```bash cURL theme={null}
curl --request POST \
	--url 'https://live-fetch.p.rapidapi.com/find-custom-headcount' \
	--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
	--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
	--header 'Content-Type: application/json' \
	--data '{"linkedin_url": "https://www.linkedin.com/company/amazon", "keywords": "", "where_they_live": [103644278, 102713980], "where_they_studied": [2584, 3084], "what_they_do": [18, 8], "what_they_are_skilled_at": [1346, 147], "what_they_studied": [100189], "include_subsidiaries": "false"}'
```

```python Python theme={null}
import requests

url = "https://live-fetch.p.rapidapi.com/find-custom-headcount"

payload = {
    "linkedin_url": "https://www.linkedin.com/company/amazon",
    "keywords": "",
    "where_they_live": [103644278, 102713980],
    "where_they_studied": [2584, 3084],
    "what_they_do": [18, 8],
    "what_they_are_skilled_at": [1346, 147],
    "what_they_studied": [100189],
    "include_subsidiaries": "false"
}

headers = {
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
    "x-rapidapi-host": "live-fetch.p.rapidapi.com",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers, json=payload)

print(response.json())
```

```javascript JavaScript theme={null}
const url = 'https://live-fetch.p.rapidapi.com/find-custom-headcount';
const options = {
	method: 'POST',
	headers: {
		'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
		'x-rapidapi-host': 'live-fetch.p.rapidapi.com',
		'Content-Type': 'application/json'
	},
	body: JSON.stringify({
		"linkedin_url": "https://www.linkedin.com/company/amazon",
		"keywords": "",
		"where_they_live": [103644278, 102713980],
		"where_they_studied": [2584, 3084],
		"what_they_do": [18, 8],
		"what_they_are_skilled_at": [1346, 147],
		"what_they_studied": [100189],
		"include_subsidiaries": "false"
	})
};

try {
	const response = await fetch(url, options);
	const result = await response.json();
	console.log(result);
} catch (error) {
	console.error(error);
}
```

```php PHP theme={null}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
	CURLOPT_URL => "https://live-fetch.p.rapidapi.com/find-custom-headcount",
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_CUSTOMREQUEST => "POST",
	CURLOPT_POSTFIELDS => '{"linkedin_url": "https://www.linkedin.com/company/amazon", "keywords": "", "where_they_live": [103644278, 102713980], "where_they_studied": [2584, 3084], "what_they_do": [18, 8], "what_they_are_skilled_at": [1346, 147], "what_they_studied": [100189], "include_subsidiaries": "false"}',
	CURLOPT_HTTPHEADER => [
		"x-rapidapi-host: live-fetch.p.rapidapi.com",
		"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
		"Content-Type: application/json"
	],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
	echo "cURL Error #:" . $err;
} else {
	echo $response;
}
```

```go Go theme={null}
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	payload := strings.NewReader(`{"linkedin_url": "https://www.linkedin.com/company/amazon", "keywords": "", "where_they_live": [103644278, 102713980], "where_they_studied": [2584, 3084], "what_they_do": [18, 8], "what_they_are_skilled_at": [1346, 147], "what_they_studied": [100189], "include_subsidiaries": "false"}`)

	req, _ := http.NewRequest("POST", "https://live-fetch.p.rapidapi.com/find-custom-headcount", payload)

	req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
	req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))
}
```

```java Java theme={null}
HttpRequest request = HttpRequest.newBuilder()
		.uri(URI.create("https://live-fetch.p.rapidapi.com/find-custom-headcount"))
		.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
		.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
		.header("Content-Type", "application/json")
		.method("POST", HttpRequest.BodyPublishers.ofString("{\"linkedin_url\": \"https://www.linkedin.com/company/amazon\", \"keywords\": \"\", \"where_they_live\": [103644278, 102713980], \"where_they_studied\": [2584, 3084], \"what_they_do\": [18, 8], \"what_they_are_skilled_at\": [1346, 147], \"what_they_studied\": [100189], \"include_subsidiaries\": \"false\"}"))
		.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```


## OpenAPI

````yaml POST /find-custom-headcount
openapi: 3.0.1
info:
  title: OpenAPI Plant Store
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://live-fetch.p.rapidapi.com
security:
  - ApiKeyAuth: []
paths:
  /find-custom-headcount:
    post:
      summary: Custom headcount by filters
      description: >-
        - Discover the count of employees within a specific company who meet
        designated criteria. 

         - 1 credit per call.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                linkedin_url:
                  type: string
                  description: LinkedIn URL of the company.
                  example: https://www.linkedin.com/company/amazon
                keywords:
                  type: string
                  description: ''
                  example: ''
                where_they_live:
                  type: array
                  description: >-
                    Learn how to [find values for
                    where_they_live](https://fdocs.info/tutorial/howto-custom-headcount-inputs#where-they-live)
                  items:
                    type: integer
                  example:
                    - 103644278
                    - 102713980
                where_they_studied:
                  type: array
                  description: >-
                    Learn how to [find values for
                    where_they_studied](https://fdocs.info/tutorial/howto-custom-headcount-inputs#where-they-studied)
                  items:
                    type: integer
                  example:
                    - 2584
                    - 3084
                what_they_do:
                  type: array
                  description: >-
                    Learn how to [find values for
                    what_they_do](https://fdocs.info/tutorial/howto-custom-headcount-inputs#what-they-do)
                  items:
                    type: integer
                  example:
                    - 18
                    - 8
                what_they_are_skilled_at:
                  type: array
                  description: >-
                    Learn how to [find values for
                    what_they_are_skilled_at](https://fdocs.info/tutorial/howto-custom-headcount-inputs#what-they-are-skilled-at)
                  items:
                    type: integer
                  example:
                    - 1346
                    - 147
                what_they_studied:
                  type: array
                  description: >-
                    Learn how to [find values for
                    what_they_studied](https://fdocs.info/tutorial/howto-custom-headcount-inputs#what-they-studied)
                  items:
                    type: integer
                  example:
                    - 100189
                include_subsidiaries:
                  type: string
                  description: 'Default: true'
                  enum:
                    - 'true'
                    - 'false'
                  example: 'false'
              required:
                - linkedin_url
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: ok
                  data:
                    type: object
                    properties:
                      headcount:
                        type: integer
                        example: 2146
        '400':
          description: Invalid linkedin_url
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    nullable: true
                    example: null
                  message:
                    type: string
                    example: Invalid linkedin_url
        '404':
          description: The url was not found on Linkedin.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    nullable: true
                    example: null
                  message:
                    type: string
                    example: The url was not found on Linkedin.
        '503':
          description: System error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemError'
components:
  schemas:
    SystemError:
      type: object
      properties:
        data:
          type: object
          nullable: true
          example: null
        message:
          type: string
          example: >-
            System error. You will not be charged for this request. We will fix
            it soon!
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-rapidapi-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.