# Count company job openings

Return the number of active job postings a company has on LinkedIn.

**POST** `https://api.up2data.ai/v1/companies/jobs-count`

**Credits:** 1 credit - **Mode:** synchronous

Identify the company with one of `url`, `domain`, or `linkedin_id`; provide exactly one. The count covers every location worldwide.

> **Info:** Send many as batch operation items (operation companies.jobs_count); 1 credit per item, free when the company is not found. See the [batch endpoint](https://up2data.ai/docs/v1/api/batch-create/).

## Request

| Field | Type | Notes |
|---|---|---|
| `url` | `string` | Company page URL or slug. Provide url, domain, or linkedin_id. |
| `domain` | `string` | Company website domain, e.g. anthropic.com. Provide url, domain, or linkedin_id. |
| `linkedin_id` | `string` | Numeric LinkedIn company ID. Provide url, domain, or linkedin_id. |

## Call it

**cURL**

```bash
curl -X POST "https://api.up2data.ai/v1/companies/jobs-count" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://linkedin.com/company/anthropic"
}'
```

**Python**

```python
import requests

url = "https://api.up2data.ai/v1/companies/jobs-count"
headers = {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json",
}
payload = {
    "url": "https://linkedin.com/company/anthropic"
}

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

**Node**

```javascript
const url = "https://api.up2data.ai/v1/companies/jobs-count";
const headers = {
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json",
};
const body = {
  "url": "https://linkedin.com/company/anthropic"
};

const response = await fetch(url, {
  method: "POST",
  headers,
  body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);
```

**Go**

```go
package main

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

func main() {
	url := "https://api.up2data.ai/v1/companies/jobs-count"
	body := bytes.NewBufferString(`{
  "url": "https://linkedin.com/company/anthropic"
}`)
	req, err := http.NewRequest("POST", url, body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", "YOUR_API_KEY")
	req.Header.Set("Content-Type", "application/json")

	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	respBody, _ := io.ReadAll(resp.Body)
	fmt.Println(string(respBody))
}
```

## Response

**200**

```json
{
  "data": {
    "url": "https://linkedin.com/company/anthropic",
    "open_jobs_count": 87,
    "scraped_at": "2026-07-08T12:00:00Z",
    "linkedin_id": "74126343"
  },
  "meta": { "creditsUsed": 1, "creditsRemaining": 98419, "billed": true, "reason": "success", "requestId": "req_example", "latencyMs": 2100 }
}
```

## Errors

| Status | Type | When | Billed |
|---|---|---|---|
| 400 | `invalid_request` | Malformed body, unknown field, or bad URL format. | No |
| 401 | `invalid_api_key` | Missing, malformed, or revoked key. | No |
| 402 | `insufficient_credits` | Balance can't cover the call. | No |
| 422 | `unprocessable_target` | Company not found, private, deleted, or unreachable. | Yes |
| 429 | `rate_limited` | Over the 300 requests/min per-key limit. Honor Retry-After. | No |
| 500 | `internal_error` | Something broke on the server side. | No |
| 504 | `upstream_timeout` | The live scrape didn't complete in time. | No |

See the [Errors guide](https://up2data.ai/docs/v1/guides/errors/) for every error type this version can return.
