# Business licenses (US)

Get state business and professional licenses of a US company.

Returns state business and professional licenses matched by the company's legal name. `row` carries the source license fields (type, status, expiry). For licenses of Kazakhstan companies use [Licenses](/en/docs/endpoints/licenses). Non-US companies return an empty list.

## Endpoint

```text
GET /api/v1/companies/:company_id/us-licenses
```

Find the `company_id` with [Search](/en/docs/reference) (`POST /api/v1/companies/search` with `"filters": {"jurisdiction": ["us-de"]}`) or resolve a state entity number with `GET /api/v1/companies/get_id/:jurisdiction/:identifier` (e.g. `us-de`, `5600000`).

## Parameters

| Parameter | Type | In | Description |
| --- | --- | --- | --- |
| `company_id` | `integer` | path | Numeric Statsnet id of a US company (from search or `get_id`). |
| `page` | `integer` | query | Page number (default: 1). |
| `limit` | `integer` | query | Records per page (default: 100). |

## Code Examples

**Get US licenses**

**cURL**

```bash
curl "https://statsnet.co/api/v1/companies/10000913141092/us-licenses" \
  -H "x-api-key: sk_live_YOUR_KEY"
```

**Python**

```python
import requests

url = 'https://statsnet.co/api/v1/companies/10000913141092/us-licenses'
headers = {'x-api-key': 'sk_live_YOUR_KEY'}

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

**TypeScript**

```typescript
const url = 'https://statsnet.co/api/v1/companies/10000913141092/us-licenses';

const response = await fetch(url, {
  headers: { 'x-api-key': 'sk_live_YOUR_KEY' },
});

const data = await response.json();
console.log(data);
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "https://statsnet.co/api/v1/companies/10000913141092/us-licenses", nil)
	req.Header.Set("x-api-key", "sk_live_YOUR_KEY")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()

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

## Response

**Success response**

```json
{
  "records": [
    {
      "category": "licenses",
      "state": "FL",
      "number": "CGC1530011",
      "date": "2021-06-30",
      "name": "ACME HOLDINGS LLC",
      "row": {
        "license_type": "Certified General Contractor",
        "status": "Current"
      }
    }
  ],
  "total": 1
}
```

## Error Handling

**Error response**

```json
{
  "status": 403,
  "message": "access denied"
}
```

This endpoint can also return `{"status": 402, "message": "payment required"}` when the subscription is canceled or expired, and `{"status": 429, "message": "quota exhausted"}` when the plan’s report quota for the current period is used up.
