LINKEDIN PROFILE API

What an Unavailable LinkedIn Profile Response Means

What an unavailable profile response means in a LinkedIn profile API: why it is temporary, why it is free, a retry schedule, and how it differs from gone.

By Surender Kumar, GTM Engineer, ProfileHunt · Published · 8 min read

Also in: Español · Português (Brasil) · Deutsch · Français · 简体中文 · हिन्दी · العربية · বাংলা · Русский · Bahasa Indonesia · اردو · 日本語 · मराठी · Tiếng Việt · తెలుగు · Hausa · Türkçe · தமிழ் · 한국어

What an Unavailable LinkedIn Profile Response Means

An unavailable profile response in a LinkedIn profile API means LinkedIn didn't serve that public profile at the moment of the request. It says nothing lasting about the profile. With ProfileHunt it comes back as HTTP 200 with { "status": "unavailable", "profile": null }, it is not charged, and the right move is to try again later rather than straight away.

This post explains unavailable and how to schedule its retries. For how profile lookups work in general, see what a LinkedIn profile API is.

Key takeaways

  • Temporary by definition. unavailable is about the moment, not the profile. The same URL can return ok an hour later.
  • Free. No credit is used. The credit held at the start of the request is refunded automatically.
  • Retry later, not now. An immediate retry usually meets the same condition. Space retries out over minutes and hours.
  • Not the same as gone. gone means no public profile at that URL; don't retry it. unavailable means try again.

What unavailable means

ProfileHunt reads each profile live from LinkedIn's public view at the time you ask. Sometimes LinkedIn doesn't hand the profile over on that attempt. ProfileHunt reports that honestly as unavailable instead of guessing, returning stale data, or charging you for an empty answer.

The response is a normal 200:

{ "status": "unavailable", "profile": null }

Every unavailable response looks the same:

PropertyValue
HTTP status200
profilenull
Credit0, refunded automatically
What to doSend the same URL again later

Your request was fine. The key worked, the URL was a valid /in/ profile URL, and the lookup ran. Nothing in your code needs to change.

A bricked-up doorway next to a half-open door with a block waiting in front of it

Unavailable vs gone

Both statuses have profile: null and both are free, which is why clients often merge them. They mean opposite things for your next step:

unavailablegone
MeaningLinkedIn didn't serve the profile just then.No public profile at this URL.
Lasting?No. A moment in time.Yes, until the member changes something.
Retry?Yes, later.No.
Typical causeThe live read didn't succeed on that attempt.Private, deleted, never existed, or removed at the member's request.
What to storeunavailable plus a next retry time.gone plus the date checked.

If you treat unavailable like gone, you drop real profiles from your data. If you treat gone like unavailable, you waste requests on URLs with nothing behind them. How to deal with the second case is in how API clients should handle not found LinkedIn profiles.

How unavailable differs from errors and failed

unavailable sits next to a few other "try again" outcomes. They differ in where the problem was and how soon to retry:

OutcomeWhere it shows upWhat happenedWhen to retry
unavailable200, body statusLinkedIn didn't serve this profile just then.Later: minutes to hours.
502 upstream_failedHTTP errorProfileHunt couldn't reach LinkedIn.Seconds, with back-off.
503 temporarily_unavailableHTTP errorProfileHunt is busy and paused requests briefly.After Retry-After.
504 timeoutHTTP errorThe lookup took too long.Seconds, with back-off.
failedBatch item statusIt couldn't be read after several tries.In a later batch.

All of them are free. The naming is the trap: 503 temporarily_unavailable is about ProfileHunt's capacity, while the unavailable body status is about one profile. A client that matches on the word "unavailable" will mix them up. The full table is in how to interpret status codes.

A retry schedule for unavailable profiles

Retry unavailable on a widening schedule, measured in minutes and hours rather than seconds. The errors reference says to retry it "later rather than straight away", and the schedule below is one way to do that:

AttemptWhenNotes
1NowThe original request.
2About 15 minutes laterGives a momentary miss time to clear.
3About 2 hours laterSpreads the retry away from the first window.
4The next dayLast automatic try.
After thatYour next scheduled refreshKeep the status as unavailable; don't call it gone.

The exact intervals are yours to tune. Two rules matter more than the numbers. Space retries out, because the condition that caused unavailable is unlikely to change in two seconds. And cap the attempts, so a profile that stays unavailable ends up in a review list instead of in a loop.

Store the schedule on the record, so a restart doesn't lose it:

from datetime import datetime, timedelta, timezone

DELAYS = [timedelta(minutes=15), timedelta(hours=2), timedelta(days=1)]

def next_retry_at(attempts_so_far):
    if attempts_so_far > len(DELAYS):
        return None  # stop; wait for the next scheduled refresh
    return datetime.now(timezone.utc) + DELAYS[attempts_so_far - 1]

After the first unavailable, attempts_so_far is 1 and the next try is 15 minutes out. After the fourth, it returns None.

Retrying unavailable items from a batch

In a batch, unavailable items are not retried for you. Collect their URLs from results and send them again later, in a new batch or as single calls. Every URL in the new batch is checked against your credits again, and each one that ends ok costs one credit, once.

retry = [r["url"] for r in batch["results"] if r["status"] == "unavailable"]

Code that handles unavailable, failed and the HTTP errors together, with back-off and Retry-After, is in response status handling for failed public profile lookups.

What retries cost

Nothing until a retry succeeds. Each unavailable answer is refunded, so a profile that comes back unavailable twice and ok on the third try costs one credit in total, the same as if it had been found the first time. That is $0.0005 at ProfileHunt's price of $0.50 per 1,000 profiles.

The real cost of retrying is rate limit. Each single call counts as one request against 60 a minute per key; creating a batch counts as one request however many URLs it carries. Retrying unavailable URLs in batches keeps that cost close to zero.

What Most Guides Get Wrong About Unavailable Responses

They retry immediately. A tight retry loop with a two-second sleep is the default in most HTTP tutorials. For unavailable, it mostly produces more unavailable responses and uses up your rate limit.

They treat it as not found. Writing unavailable rows into a "dead URLs" bucket quietly removes good profiles from your data. Those rows should go into a retry queue.

They count it as a hit. It arrives as 200, so a pipeline that counts HTTP successes will report it as enriched. Count body statuses, not HTTP codes.

A track that loops a block back to the start past posts spaced further and further apart

Myth vs Reality

MythReality
"Unavailable means the profile is private."Private profiles are gone. unavailable is a momentary miss on a profile that may well be public.
"I'm charged for each unavailable attempt."Each one is refunded. You pay one credit only when a retry returns ok.
"Retrying faster gets the profile sooner."Spaced retries work better. Immediate retries tend to hit the same condition.
"503 and unavailable are the same thing."503 temporarily_unavailable is ProfileHunt pausing requests. The unavailable body status is about one profile.
"After a few unavailable results, the URL is dead."Not necessarily. Keep it as unavailable and re-check it on the next scheduled refresh.

Advanced: Running a Retry Queue at Scale

For a pipeline that enriches thousands of profiles a day, unavailable deserves its own queue, separate from your main job:

  • Keep a separate retry queue. Store url, attempts, next_retry_at and last_status. A worker picks up rows whose next_retry_at has passed. The main job never waits on retries. The Node.js enrichment workflow includes a complete retry pass, and integrating with a custom backend shows the table it reads from.
  • Batch the retries. Group due URLs into batches of up to 100. One request per batch keeps retries from competing with your live single calls, and ProfileHunt serves single calls before batch items anyway.
  • Add jitter. If 500 URLs went unavailable in the same minute, a fixed 15-minute delay sends all 500 back in the same minute. Add a random offset of a few minutes.
  • Watch the rate, not single rows. One unavailable is noise. A sudden rise across many URLs at once is worth logging with its time, so you can see whether later retries clear it.
  • Keep the status honest in your data. A profile that is still unavailable after the last automatic try is "unknown", not "missing". Reports and lead scores should treat it that way.

Where ProfileHunt Fits

ProfileHunt is a LinkedIn Profile API that reads public profiles live and charges only for profiles found. Live reads are what make unavailable possible: there is no cache to fall back on, so when LinkedIn doesn't serve a profile on that attempt, you get a clear status and your credit back, never stale data dressed up as fresh. Every ok profile carries scraped_at, the time it was read.

The data is the public view only: no email addresses or phone numbers, no titles for past roles, and connections stops at 500.

Getting Started

Create a workspace at profilehunt.dev/login and get 100 free credits with a work email. Make your first call with the quickstart, then check the errors reference for every status your client should handle. The LinkedIn profile API guide explains how lookups work end to end.

Frequently asked questions

What does unavailable mean in a LinkedIn profile API?

It means LinkedIn didn't serve the public profile at the moment of the request. With ProfileHunt it is HTTP 200 with status: "unavailable" and profile: null, and it is not charged.

Am I charged when a LinkedIn profile comes back unavailable?

No. The credit held for the request is refunded automatically. You pay one credit only when a later retry returns the profile.

How long should I wait before retrying an unavailable LinkedIn profile?

Minutes to hours, not seconds. A schedule such as 15 minutes, 2 hours, then the next day works well, with a cap so the URL doesn't loop forever.

What is the difference between unavailable and gone in a LinkedIn API?

gone means there is no public profile at that URL, so don't retry. unavailable means the profile wasn't served just then, so retry later.

Does the batch API retry unavailable profiles automatically?

No. A batch item that ends unavailable stays that way. Send those URLs again later in a new batch or as single calls.

Get API key 100 free credits with a work email