Get profile follower and connection counts
Get a profile's follower and connection counts without scraping the full profile.
https://api.up2data.ai/v1/profiles/countsOne lightweight LinkedIn request, so it is faster and cheaper than profile enrich with with_followers_and_connections. Identify the profile with url or urn; provide exactly one. Alongside the counts it returns what LinkedIn shows in the profile header: verification, country, creator website, the headline company and the headline school. It never returns name, headline, about, or full work and education history; use profile enrich for those.
current_company and top_education are the single company and school LinkedIn shows in the profile header, not the full history. Either is omitted when the profile has none. followers_count and connections_count are null when LinkedIn does not return them.
#Request
| Field | Type | Notes |
|---|---|---|
url | string | Profile URL or public identifier. Provide url or urn. |
urn | string | LinkedIn member URN. Provide url or urn. |
#Call it
curl -X POST "https://api.up2data.ai/v1/profiles/counts" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/in/janedoe"
}'import requests
url = "https://api.up2data.ai/v1/profiles/counts"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
}
payload = {
"url": "https://www.linkedin.com/in/janedoe"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())const url = "https://api.up2data.ai/v1/profiles/counts";
const headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
};
const body = {
"url": "https://www.linkedin.com/in/janedoe"
};
const response = await fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.up2data.ai/v1/profiles/counts"
body := bytes.NewBufferString(`{
"url": "https://www.linkedin.com/in/janedoe"
}`)
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
{
"data": {
"url": "https://www.linkedin.com/in/janedoe",
"public_identifier": "janedoe",
"urn": "ACoAABOPHB8BM6example",
"followers_count": 5729,
"connections_count": 5743,
"is_verified": true,
"location": { "country_code": "US", "postal_code": "94105" },
"creator_website": "https://janedoe.example.com",
"current_company": { "name": "Example Corp", "url": "https://www.linkedin.com/company/example/", "linkedin_id": "1035", "started_at": "2023-09" },
"top_education": { "school": "Example University", "school_linkedin_id": "18483", "school_url": "https://www.linkedin.com/school/example-university/" },
"scraped_at": "2026-07-08T12:00:00Z"
},
"meta": { "creditsUsed": 1, "creditsRemaining": 98419, "billed": true, "reason": "success", "requestId": "req_example", "latencyMs": 1200 }
}#Errors
| Status | Type | When | Billed |
|---|---|---|---|
| 400 | invalid_request | Malformed body, unknown field, bad URL format, or both or neither of url and urn. | No |
| 401 | invalid_api_key | Missing, malformed, or revoked key. | No |
| 402 | insufficient_credits | Balance can't cover the call. | No |
| 422 | unprocessable_target | Profile not found, private, deleted, or unreachable. Billed as 1 credit. | Yes |
| 429 | rate_limited | Over the 5,000 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 for every error type this version can return.