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

# Get Company Insights

> - Get company insights from Linkedin sales navigator. 

 - 5 credits per call.

```bash cURL theme={null}
curl --request GET \
	--url 'https://live-fetch.p.rapidapi.com/get-company-insights?company_id=1035' \
	--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
	--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
```

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

url = "https://live-fetch.p.rapidapi.com/get-company-insights"

querystring = {
    "company_id": "1035"
}

headers = {
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
    "x-rapidapi-host": "live-fetch.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
	company_id: "1035"
});

const url = `https://live-fetch.p.rapidapi.com/get-company-insights?${params}`;
const options = {
	method: 'GET',
	headers: {
		'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
		'x-rapidapi-host': 'live-fetch.p.rapidapi.com'
	}
};

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

$query = http_build_query([
	'company_id' => "1035"
]);

$curl = curl_init();

curl_setopt_array($curl, [
	CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-insights" . "?" . $query,
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_CUSTOMREQUEST => "GET",
	CURLOPT_HTTPHEADER => [
		"x-rapidapi-host: live-fetch.p.rapidapi.com",
		"x-rapidapi-key: YOUR_RAPIDAPI_KEY"
	],
]);

$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"
	"net/url"
)

func main() {
	params := url.Values{}
	params.Add("company_id", "1035")

	req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-insights?"+params.Encode(), nil)

	req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
	req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")

	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/get-company-insights?company_id=1035"))
		.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
		.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
		.method("GET", HttpRequest.BodyPublishers.noBody())
		.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```


## OpenAPI

````yaml GET /get-company-insights
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:
  /get-company-insights:
    get:
      description: |-
        - Get company insights from Linkedin sales navigator. 

         - 5 credits per call.
      parameters:
        - name: company_id
          in: query
          description: >-
            Learn how to [find a
            company_id](https://fdocs.info/tutorial/howto-find-company-id).
          required: true
          schema:
            type: integer
            example: 1035
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyInsight'
        '400':
          description: Invalid company_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidCompanyID'
        '404':
          description: The id was not found on Linkedin
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    nullable: true
                    example: null
                  message:
                    type: string
                    example: The id was not found on Linkedin
        '503':
          description: System error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CompanyInsight:
      type: object
      properties:
        message:
          type: string
          example: ok
        data:
          type: object
          properties:
            headcount_by_function:
              type: object
              description: Keyed by job function.
              additionalProperties:
                type: object
                properties:
                  count:
                    type: integer
                    example: 5592
                  percentage:
                    type: integer
                    example: 2
              example:
                Administrative:
                  count: 5592
                  percentage: 2
                Arts and Design:
                  count: 6198
                  percentage: 3
                Business Development:
                  count: 9530
                  percentage: 4
                Consulting:
                  count: 3698
                  percentage: 2
                Customer Success and Support:
                  count: 5145
                  percentage: 2
                Education:
                  count: 4584
                  percentage: 2
                Engineering:
                  count: 93335
                  percentage: 38
                Human Resources:
                  count: 4330
                  percentage: 2
                Information Technology:
                  count: 29252
                  percentage: 12
                Marketing:
                  count: 4928
                  percentage: 2
                Operations:
                  count: 8343
                  percentage: 3
                Product Management:
                  count: 8635
                  percentage: 4
                Program and Project Management:
                  count: 19242
                  percentage: 8
                Research:
                  count: 4057
                  percentage: 2
                Sales:
                  count: 20092
                  percentage: 8
            headcount_growth:
              type: object
              properties:
                1y:
                  type: string
                  example: 2%
                2y:
                  type: string
                  example: '-2%'
                6m:
                  type: string
                  example: 0%
            headcount_growth_by_function:
              type: object
              description: Keyed by job function.
              additionalProperties:
                type: object
                properties:
                  1y:
                    type: string
                    example: '-5%'
                  6m:
                    type: string
                    example: '-5%'
              example:
                Administrative:
                  1y: '-5%'
                  6m: '-5%'
                Arts and Design:
                  1y: 5%
                  6m: 2%
                Business Development:
                  1y: 0%
                  6m: '-1%'
                Consulting:
                  1y: '-4%'
                  6m: '-3%'
                Customer Success and Support:
                  1y: '-6%'
                  6m: '-4%'
                Education:
                  1y: 1%
                  6m: '-5%'
                Engineering:
                  1y: 4%
                  6m: 3%
                Human Resources:
                  1y: 8%
                  6m: '-3%'
                Information Technology:
                  1y: 3%
                  6m: 1%
                Marketing:
                  1y: '-3%'
                  6m: '-1%'
                Operations:
                  1y: 5%
                  6m: 2%
                Product Management:
                  1y: 3%
                  6m: 2%
                Program and Project Management:
                  1y: 2%
                  6m: 1%
                Research:
                  1y: 3%
                  6m: 2%
                Sales:
                  1y: 1%
                  6m: 0%
            job_openings:
              type: object
              properties:
                job_openings_by_function:
                  type: array
                  items:
                    type: object
                    properties:
                      count_by_function:
                        type: object
                        description: Keyed by job function.
                        additionalProperties:
                          type: object
                          properties:
                            count:
                              type: integer
                              example: 1258
                            percentage:
                              type: integer
                              example: 3
                        example:
                          Arts and Design:
                            count: 1258
                            percentage: 3
                          Business Development:
                            count: 1701
                            percentage: 4
                          Engineering:
                            count: 14851
                            percentage: 37
                          Human Resources:
                            count: 770
                            percentage: 2
                          Information Technology:
                            count: 6372
                            percentage: 16
                          Marketing:
                            count: 1146
                            percentage: 3
                          Operations:
                            count: 866
                            percentage: 2
                          Product Management:
                            count: 1901
                            percentage: 5
                          Program and Project Management:
                            count: 3187
                            percentage: 8
                          Research:
                            count: 932
                            percentage: 2
                          Sales:
                            count: 3902
                            percentage: 10
                          other:
                            count: 3466
                            percentage: 9
                      date:
                        type: string
                        example: 2024-9-1
                      total_count:
                        type: integer
                        example: 40352
                job_openings_growth:
                  type: object
                  properties:
                    1y:
                      type: string
                      example: 1649%
                    3m:
                      type: string
                      example: 46%
                    6m:
                      type: string
                      example: 178%
                job_openings_growth_by_function:
                  type: object
                  description: Keyed by job function.
                  additionalProperties:
                    type: object
                    properties:
                      1y:
                        type: string
                        example: 1929%
                      3m:
                        type: string
                        example: 2%
                      6m:
                        type: string
                        example: 188%
                  example:
                    Arts and Design:
                      1y: 1929%
                      3m: 2%
                      6m: 188%
                    Business Development:
                      1y: 2168%
                      3m: 120%
                      6m: 547%
                    Engineering:
                      1y: 1563%
                      3m: 28%
                      6m: 124%
                    Human Resources:
                      1y: 7600%
                      3m: 1228%
                      6m: 839%
                    Information Technology:
                      1y: 1969%
                      3m: 42%
                      6m: 203%
                    Marketing:
                      1y: 3083%
                      3m: 131%
                      6m: 690%
                    Operations:
                      1y: 821%
                      3m: 63%
                      6m: 67%
                    Product Management:
                      1y: 1597%
                      3m: 92%
                      6m: 229%
                    Program and Project Management:
                      1y: 1250%
                      3m: 23%
                      6m: 167%
                    Research:
                      1y: 2290%
                      3m: 83%
                      6m: 122%
                    Sales:
                      1y: 1723%
                      3m: 78%
                      6m: 485%
            median_employee_tenure:
              type: number
              example: 4.5
            new_hires:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    example: 2022-11
                  senior_hires:
                    type: integer
                    example: 0
                  total_hires:
                    type: integer
                    example: 2410
              example:
                - date: 2022-11
                  senior_hires: 0
                  total_hires: 2410
            total_employees:
              type: integer
              example: 244416
    InvalidCompanyID:
      type: object
      properties:
        data:
          type: object
          nullable: true
          example: null
        message:
          type: string
          example: 'Bad request: Invalid company_id.'
    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.