API key setup for retrieving public LinkedIn profile JSON with ProfileHunt takes about two minutes: sign in, and your first sign-in creates a workspace with an API key named Default and free credits. You copy that key, run one profile in the dashboard playground to see the JSON, then make the same call from your own code with the key in an environment variable. This walkthrough covers each step and the choices that matter on day one. For background on what comes back, see what a LinkedIn profile API is.
Key takeaways
- Sign-in creates everything. Your first sign-in sets up a workspace, a key named
Defaultand free credits: 100 with a work email, 10 with a personal one. - No LinkedIn account is involved. You sign in to ProfileHunt with Google or an emailed link; LinkedIn credentials never come into it.
- Try it before you code it. The dashboard playground runs a real lookup with your key, so you see the JSON first.
- Keys are for servers. Put the key in an environment variable on your server, script or automation tool, never in a web page.
- Name keys after what uses them. Create a separate key per app or tool so you can revoke one without touching the others.
What you need before you start
You need an email address and something that can send an HTTP request: a terminal with cURL, Python, Node.js, or a tool such as n8n, Make, Zapier or Clay. You don't need a credit card, a LinkedIn account, a cookie or a Sales Navigator seat.
The free credits are enough to test properly. One credit is one profile found, and a URL with no public profile comes back gone at no charge, so a test run on real data only spends credits on profiles that return.
Step 1: Sign in and get your workspace
Go to profilehunt.dev/login and choose Continue with Google or enter your email for a sign-in link.
Your first sign-in creates three things at once:
| Created | What it is |
|---|---|
| A workspace | Holds your credits, keys and members. |
A key named Default | Ready to use straight away. |
| Free credits | 100 with a work email, 10 with a personal email such as Gmail. |
Sign in with the email you want the workspace tied to. A work address gets the larger free allowance.

Step 2: Create a key for your app
Open the Keys page. You'll see the Default key, the start of the key, its creation date and when it was last used.
Default works, but a named key per caller pays off quickly. In the Key name field, type a name such as production, n8n or clay-table and click Create key. The full key appears with a Copy button.
A ProfileHunt key starts with ph_live_. Owners and admins can copy a key again from the Keys page later, so you don't need to paste it into a note "just in case". Members of the workspace can't see or create keys; they ask an owner or admin.
Step 3: Run your first lookup in the playground
Open the Playground, paste https://www.linkedin.com/in/williamhgates (or any public profile URL) and run it. If your workspace has more than one key, pick which one the playground uses.
You'll get the profile back as JSON with status: "ok", and one credit is used. This is the fastest way to confirm three things at once: the key works, the workspace has credits, and the fields are what you expect. The JSON schema guide explains every field you'll see.
Step 4: Make the same call from code
Put the key in an environment variable called PROFILEHUNT_KEY, then call POST /v1/profile. Here it is in cURL:
export PROFILEHUNT_KEY="ph_live_..."
curl -X POST https://api.profilehunt.dev/v1/profile \
-H "Authorization: Bearer $PROFILEHUNT_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://www.linkedin.com/in/williamhgates" }'
In Python:
import os, requests
res = requests.post(
"https://api.profilehunt.dev/v1/profile",
headers={"Authorization": f"Bearer {os.environ['PROFILEHUNT_KEY']}"},
json={"url": "https://www.linkedin.com/in/williamhgates"},
)
profile = res.json()["profile"]
print(profile["full_name"], profile["headline"], profile["last_post_at"])
In Node.js:
const res = await fetch("https://api.profilehunt.dev/v1/profile", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROFILEHUNT_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://www.linkedin.com/in/williamhgates" }),
});
const { profile } = await res.json();
Fuller walkthroughs for each language are in calling the API from Node.js and the Python example.
The call waits while the profile is read, usually a few seconds. x-api-key: <key> works in place of the Authorization header; the guide on how to authenticate with an API key compares the two.
Step 5: Check the request on the Usage page
Open Usage. Every request from the last 30 days is listed with its status, and each one's detail shows which key made it. If your code's request is there with ok, setup is done.
If it isn't there, or it shows an error, check the status code your code received. A 401 unauthorized means the key didn't arrive intact, usually an empty environment variable or a missing Bearer.
What Most Guides Get Wrong About API Key Setup
They treat the first key as the only key. Setup guides stop at "copy your key". The better day-one habit is one key per caller, because revoking a shared key breaks everything that uses it, and the Usage page can only attribute traffic to the key that sent it.
They paste the key into the code to "just test". Test code gets committed. Reading the key from PROFILEHUNT_KEY from the first line costs nothing and means the file is safe to share. The guide on how developers should store credentials covers .env files, secret managers and CI.
They assume a key test costs money. A failed or unfound lookup is free, and a found one costs a single credit ($0.0005). One lookup in the playground or with POST /v1/profile is the whole test: 401 means the key is bad, any other answer means it was accepted.
Myth vs Reality
| Myth | Reality |
|---|---|
| You need a LinkedIn developer app to get a profile API key. | ProfileHunt keys come from the ProfileHunt dashboard. No LinkedIn app, login or review is involved. |
| The free trial needs a credit card. | Free credits come with the workspace: 100 with a work email, 10 with a personal one. No card. |
| A key is shown once and lost if you don't save it. | Owners and admins can copy a key again from the Keys page. |
| Every teammate needs their own account with their own credits. | Invite teammates to the workspace on the Members page. Everyone shares its credits and keys. |
| More keys means more credits to buy. | All keys draw from the same workspace balance. |

Setting up a team
Invite people on the Members page as an admin or a member; the owner is whoever created the workspace. Pick by what they need to do:
| Role | Can do |
|---|---|
| Owner | Everything: keys, members, buying credits. The person who created the workspace. |
| Admin | Create, copy and revoke keys; manage members; buy credits; use the playground. |
| Member | View the workspace, its usage and its keys' names. Can't see key values, create keys or run the playground. |
Give engineers who deploy the integration the admin role. Give people who only need to watch usage the member role, so key material never reaches their screen.
Advanced: Setting Up Keys for Several Environments
Once the first call works, plan the keys before the second app appears.
- One key per environment and tool.
dev,staging,production,n8n,clay-table. Each key has its own 60-requests-a-minute limit and its own "Last used" date, so a test script that floods its own key never slows production. - One workspace, shared credits. Every key draws from the same balance; a key has no credit cap of its own. Watch per-key traffic on the Usage page, where each request shows the key that sent it.
- Smoke-test the key after deploys. One real lookup from the deployed process answers
401if the secret is missing, wrong or revoked, and the Usage page shows which key made it. A found profile costs one credit. - Move to batches for lists. Above 60 profiles a minute on one key, send
POST /v1/profile/batcheswith up to 100 URLs per request. See the batch API guide.
Where ProfileHunt Fits
ProfileHunt is a LinkedIn Profile API: a public LinkedIn profile URL in, JSON out, paid per profile found. Setup is a sign-in, a key and one request. Pricing is $1 for 2,000 credits, or $0.50 per 1,000 profiles, with no subscription; credits never expire, and gone or unavailable profiles are refunded automatically.
ProfileHunt returns the public view of a profile: no email addresses or phone numbers, titles for current roles only, and connections capped at 500.
Getting Started
Sign in, copy your Default key or create a named one, and follow the quickstart for the same call with more detail on the response. When the first call works, read the authentication reference for keys and workspaces, and what a LinkedIn profile API is for how the data is gathered.
Frequently asked questions
How do I get an API key for LinkedIn profile data?
Sign in to ProfileHunt at profilehunt.dev/login with Google or an emailed link. Your first sign-in creates a workspace with a key named Default and free credits; copy it from the Keys page or create a named key there.
Is there a free API key for LinkedIn profile data?
ProfileHunt keys are free to create, and a new workspace gets 100 free credits with a work email or 10 with a personal email. One credit is one profile found; profiles not found are not charged.
Do I need a LinkedIn developer account to get profile JSON?
No. ProfileHunt keys come from the ProfileHunt dashboard, and the API reads the public view of a profile without using any LinkedIn account, cookie or seat.
Can I see my API key again after creating it?
Yes, if you're a workspace owner or admin. The Keys page lets you copy any active key again. Members can't see key values.
What do I do if my first API call returns 401?
Check that PROFILEHUNT_KEY is set in the shell or process making the call, and that the header reads Authorization: Bearer <key> with one space after Bearer. A 401 is never charged.


