To connect a LinkedIn profile API to any HTTP client, you set four things: the method (POST), the URL (https://api.profilehunt.dev/v1/profile), two headers (your API key and Content-Type: application/json) and a JSON body with the profile URL. Every client, from Postman to an n8n node, asks for those same four values; only the place you type them changes. This guide gives the exact settings for eight common clients in one table.
If you want the background first, read what a LinkedIn profile API is, then come back for the settings.
Key takeaways
- Four settings, every client. Method, URL, headers and body are the whole integration. No SDK or plugin is needed.
- The key goes in a header. Use
Authorization: Bearer <key>orx-api-key: <key>. Either works on every endpoint. - HTTP 200 is not the end of the check. The body's
statusfield says whether the profile was found (ok), doesn't exist (gone) or should be retried later (unavailable). - Call it from a server or a tool, not a web page. Browsers can only call the API from the ProfileHunt dashboard, so front-end
fetchis the one setup that won't work.
The four settings every HTTP client needs
Every HTTP client needs the same request, whatever its interface looks like. These are the values for a single profile lookup:
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://api.profilehunt.dev/v1/profile |
| Header 1 | Authorization: Bearer YOUR_API_KEY (or x-api-key: YOUR_API_KEY) |
| Header 2 | Content-Type: application/json |
| Body | { "url": "https://www.linkedin.com/in/williamhgates" } |
The url value can be written loosely: with or without https:// and www., with a country subdomain such as uk.linkedin.com, or with a trailing slash or query string. A company page or a bare username gets 422 invalid_url, which is not charged. The profile endpoint reference lists every accepted format.
For lists, the URL becomes https://api.profilehunt.dev/v1/profile/batches and the body becomes { "urls": [ ... ] } with 1 to 100 URLs. The headers stay the same.

Settings for each HTTP client
This table is the core of the guide: where each client wants each of the four values.
| Client | Method and URL | API key | JSON body |
|---|---|---|---|
| Postman | Method dropdown POST, URL bar | Authorization tab → Bearer Token, paste the key | Body → raw → JSON |
| Insomnia | Method dropdown POST, URL bar | Auth → Bearer Token | Body → JSON |
| HTTPie | http POST <url> | Authorization:"Bearer $PROFILEHUNT_KEY" | url=<profile url> (HTTPie sends JSON by default) |
| curl | -X POST <url> | -H "Authorization: Bearer $PROFILEHUNT_KEY" | -H "Content-Type: application/json" -d '{...}' |
| fetch (Node.js 18+) | fetch(url, { method: "POST" }) | headers: { Authorization: ... } | body: JSON.stringify({ url }) |
| requests (Python) | requests.post(url) | headers={"Authorization": ...} | json={"url": ...} |
| n8n HTTP Request node | Method POST, URL field | Generic Credential Type → Header Auth, Name Authorization, Value Bearer <key> | Send Body on, Body Content Type JSON, Using JSON |
| Make, HTTP "Make a request" | URL field, Method POST | Header Authorization = Bearer <key> | Body type Raw, Content type JSON (application/json) |
curl and HTTPie
curl needs the Content-Type header spelled out. HTTPie builds the JSON body from key=value pairs and sets the JSON headers itself:
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" }'
http POST https://api.profilehunt.dev/v1/profile \
Authorization:"Bearer $PROFILEHUNT_KEY" \
url=https://www.linkedin.com/in/williamhgates
fetch and requests
In code, read the key from an environment variable and let the library serialize the body. Python's json= argument sets Content-Type for you; Node's fetch does not, so set it by hand:
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 { status, profile } = await res.json();
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"},
)
print(res.json()["status"])
n8n and Make
In n8n, store the key once as a Header Auth credential so no workflow holds it in plain text, then map the incoming field into the body with an expression such as {{ $json.linkedin_url }}. In Make, set Parse response to Yes so later modules can map data.profile.full_name. The n8n setup and Make setup pages walk through each click, and Zapier and Clay follow the same four settings.
Testing a new client setup
A new setup is proven by three requests: one that should work and two that should fail in a known way. None of the failures costs a credit.
Step 1: Send a known public profile
Send the sample URL https://www.linkedin.com/in/williamhgates. You should get HTTP 200 with "status": "ok" and a profile object that has full_name, headline, experience and scraped_at. This one request uses 1 credit.
Step 2: Send a wrong key
Change one character of the key and send again. The answer must be 401 with {"error":"unauthorized"}. This proves the client really sends the header you set. To compare what your client sent with a reference exchange, see the annotated HTTP request. If Step 1 also returned 401, the key never reached the API: usually the Bearer prefix is missing or the credential isn't attached to the request.
Step 3: Send a URL that isn't a profile
Send https://www.linkedin.com/company/microsoft. The answer must be 422 with {"error":"invalid_url"}. This proves the API reads the url you put in the body, and that a malformed input is refused before any credit is touched.
What Most Guides Get Wrong About Connecting HTTP Clients
Most setup guides stop at "you got a 200". For a profile API, that's the wrong place to stop.
A 200 can mean "no profile". Private, deleted and removed profiles answer HTTP 200 with "status": "gone" and "profile": null. Profiles LinkedIn didn't serve just then answer "status": "unavailable". Neither is charged. A client setup that only checks the HTTP code will write empty records, so add a check on status before any write step.
Browser fetch is not "any HTTP client". Code samples often show fetch and leave it there. Run that same code in a web page and it fails, because browsers can only call the API from the ProfileHunt dashboard, and a key in front-end code is readable by anyone. Run fetch in Node.js, a serverless function or your backend instead.
The word "Bearer" goes in the value. Tools with a generic header field, such as n8n Header Auth or a Make header, need the full value Bearer YOUR_API_KEY. Pasting only the key gives 401. If you would rather skip the prefix, use the x-api-key header with the bare key.
Myth vs Reality
| Myth | Reality |
|---|---|
| "I need an official SDK or a marketplace app." | One HTTPS request is the whole integration. There is no ProfileHunt app in Make or Zapier because the built-in HTTP step already does the job. |
| "Every client needs its own key format." | Every client sends the same header: Authorization: Bearer <key> or x-api-key: <key>. |
| "If the call returned 200, the profile was found." | Check status: ok, gone or unavailable. Only ok has a profile and costs a credit. |
| "Retrying a failed call costs twice." | 429, 502, 503 and 504 are never charged, so a retry costs nothing until a profile is actually returned. |
| "A test client is fine for a list of thousands." | Each key allows 60 requests a minute. For lists, the batch API takes 100 URLs per request. |

Advanced: Import the OpenAPI spec instead of typing settings
Typing settings by hand is fine for one endpoint. For all three (single profile, create batch, read batch), import the OpenAPI 3.1 description at /openapi.json. Postman and Insomnia can both create requests from an OpenAPI file, with the paths, methods, request bodies and the two auth schemes (bearer and an x-api-key header) already filled in.
A few practices keep a shared collection safe and predictable:
- Put the key in an environment variable of the client, not in the request itself, so exporting or sharing a collection never shares the key. Use a separate ProfileHunt key per environment or per teammate; keys are created on the Keys page and revoked one at a time.
- Pace collection runs. A collection runner that fires requests back to back can pass 60 requests a minute. Add a delay of about one second between iterations, or switch to a batch. Over the limit you get
429with aRetry-Afterheader, and nothing is charged. - Read the rate-limit headers. Counted requests return
X-RateLimit-LimitandX-RateLimit-Remaining. The count resets at the start of each clock minute, so a script can slow down before it hits zero. Polling a batch doesn't count at all. - Turn on retries in automation tools. n8n's Retry On Fail and a Make error handler both suit
429,503and the other temporary codes, because none of them uses a credit.
For a deeper look at why the API behaves like this, with standard status codes and generated clients, see the REST-compatible API guide.
Where ProfileHunt Fits
ProfileHunt is a LinkedIn Profile API: a public LinkedIn profile URL in, JSON out. Because the whole API is plain HTTPS with a header key and a JSON body, it works from any client in the table above, and from any other tool with an HTTP step.
It returns the public view of a profile, what a logged-out visitor sees. That means no email or phone, no titles for past roles, and connections capped at 500. It never uses your LinkedIn account, cookie or Sales Navigator seat, and it reads the profile live on every call.
You pay $0.50 per 1,000 profiles found ($1 buys 2,000 credits). gone and unavailable profiles are not charged, credits never expire, and there is no subscription.
Getting Started
Sign up to get a workspace and a Default API key, with 100 free credits on a work email. Run the three test requests above in your client of choice, then follow the quickstart. When the request works, the next step is putting the response to use: the enrichment request example maps the JSON into a contact record. For the concepts behind it, see how a LinkedIn profile API works.
Frequently asked questions
How do I call a LinkedIn profile API from Postman?
Create a POST request to https://api.profilehunt.dev/v1/profile, choose Bearer Token in the Authorization tab and paste your key, then set Body to raw JSON with { "url": "https://www.linkedin.com/in/williamhgates" }. You can also import /openapi.json to get all three endpoints at once.
Why do I get a 401 error from my HTTP client?
A 401 with {"error":"unauthorized"} means the key is missing, wrong or revoked. The most common cause is a header value without the Bearer prefix; either add it or send the bare key in an x-api-key header instead.
Can I call a LinkedIn profile API with fetch in the browser?
Not from your own web page. Browsers can only call the ProfileHunt API from the ProfileHunt dashboard, and a key in front-end code would be visible to anyone. Call it from Node.js, a serverless function or your backend.
What headers does a LinkedIn profile API request need?
Two: your key as Authorization: Bearer <key> or x-api-key: <key>, and Content-Type: application/json for the body. Either key header works on every endpoint.
Do I need a plugin to use a LinkedIn profile API in n8n or Make?
No. n8n's HTTP Request node and Make's HTTP "Make a request" module call the API directly with the four settings in this guide.


