Get a basic LinkedIn profile
harvestapi.linkedin.user.profile.mainGet a basic LinkedIn profile with limited experience, education and skills.
- Price
- $0.004/callZum Anbieterpreis
- Success rate
- 99,9 %Last 30 days · 146.565 calls
- Latency p50
- 4.4 sp95 22 s
- Last verified
- 10.09.2026Verified working
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.user.profile.main?main=true&publicIdentifier=williamhgatesPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
Supply at least one profile identifier: url, publicIdentifier or profileId. Set main=true. Do not add findEmail. Use only the declared query parameters, once each, without a request body. Results are provider-native: inspect element/elements and body status/error; HTTP 200 alone does not prove a hit. Empty results can still be charged. Basic, full and email are separate tools. Do not combine main and findEmail. Email availability and quality are provider-reported; no email is guaranteed.
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
url | Zeichenkette | Optional | URL of the LinkedIn profile (optional) | |
main | Zeichenkette | Erforderlich | Set this parameter to 'true' to return only main version of the profile that you can see on LinkedIn without expanding profile sections - up to 5 experiences, 2 educations, 2 skills, etc. This version charges less credits | true |
profileId | Zeichenkette | Optional | ID of the LinkedIn profile (optional) | |
publicIdentifier | Zeichenkette | Optional | Public identifier of the LinkedIn profile (optional) | williamhgates |
- Abfrageparameter
urlZeichenketteOptionalURL of the LinkedIn profile (optional)
mainZeichenketteErforderlichSet this parameter to 'true' to return only main version of the profile that you can see on LinkedIn without expanding profile sections - up to 5 experiences, 2 educations, 2 skills, etc. This version charges less credits
Beispiel:
trueprofileIdZeichenketteOptionalID of the LinkedIn profile (optional)
publicIdentifierZeichenketteOptionalPublic identifier of the LinkedIn profile (optional)
Beispiel:
williamhgates
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.profile.main?main=true&publicIdentifier=williamhgates' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.profile.main?main=true&publicIdentifier=williamhgates",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.profile.main?main=true&publicIdentifier=williamhgates", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.004/call einschließlich Servicegebühr abgerechnet.