USE CASE

Reach prospects while they're active on LinkedIn

Knowing whether a prospect still uses LinkedIn helps you decide where and when to reach out. ProfileHunt returns each profile's last post date and its recent posts and articles, so you can sort a list by activity and refer to something they wrote.

Get API key 100 free credits with a work email

The fields that matter

last_post_at
When they last posted or published an article, in UTC. null if the profile shows no activity.
recent_posts
Each post's url, posted_at, text and likes.
recent_articles
Long-form articles with headline, published_at and likes.
headline
To check the post fits their role before you mention it.

How to set it up

  1. Fetch each prospect's profile before a sequence starts.
  2. Sort by last_post_at, so people who posted recently come first.
  3. If you mention a post, link to it, so it's clear where it came from.
  4. Re-check quiet prospects in a month; it costs a twentieth of a cent each time.

Python: who posted in the last 14 days

import os, requests

def get_profile(url):
    res = requests.post(
        "https://api.profilehunt.dev/v1/profile",
        headers={"Authorization": f"Bearer {os.environ['PROFILEHUNT_KEY']}"},
        json={"url": url},
    )
    res.raise_for_status()
    return res.json()["profile"]  # None when the profile is gone or unavailable (not charged)

from datetime import datetime, timedelta, timezone

cutoff = datetime.now(timezone.utc) - timedelta(days=14)
for url in prospect_urls:
    p = get_profile(url)
    if p is None or p["last_post_at"] is None:
        continue
    if datetime.fromisoformat(p["last_post_at"].replace("Z", "+00:00")) > cutoff:
        latest = max(p["recent_posts"], key=lambda x: x["posted_at"], default=None)
        print(p["full_name"], p["last_post_at"], latest and latest["url"])

Questions

How many posts come back?
The ones the public profile shows, usually the latest few. The API doesn't page back through someone's whole history.
What if they never post?
last_post_at is null and recent_posts is empty. That's worth knowing too: a message to someone who never posts should lean less on LinkedIn activity.

More use cases

Set it up in

ProfileHunt returns only what a LinkedIn profile shows to logged-out visitors. You are responsible for how you use it: follow the privacy and anti-spam laws that apply to you, such as the GDPR or India's DPDP Act, and our Terms. ProfileHunt is not affiliated with LinkedIn Corporation.