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. Non-US companies return an empty list.
Endpoint
GET /api/v1/companies/:company_id/us-licenses
Find the company_id with Search (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 "https://statsnet.co/api/v1/companies/10000913141092/us-licenses" \
-H "x-api-key: sk_live_YOUR_KEY"
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)
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);
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
{
"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
{
"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.