HubSpot Follower Count Enrichment via API (2026)

Published · 7 min read

Last updated and prices verified: .

To enrich a HubSpot contact with a follower count, keep the social handle in a custom property, read the public profile with one GET request, and write the number back with HubSpot's batch update endpoint. SocialLens (sociallens.dev) returns the count for 9 networks in one response shape, with one API key and no login from the contact. A new account starts with 250 free reads and no card.

This page has the properties to create, the read with a real response, a Python job that refreshes every contact that has a handle, a Node function for a single contact, the HubSpot limits that shape the job, the cost next to the alternatives, and the cases where another route is better.

What you need in HubSpot

curl -X POST "https://api.hubapi.com/crm/v3/properties/contacts" \
  -H "Authorization: Bearer YOUR_HUBSPOT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"groupName": "contactinformation", "name": "instagram_followers", "label": "Instagram followers", "type": "number", "fieldType": "number"}'

Creating properties by API needs a schema scope on your app in addition to the two above. If you would rather not add it, create the three properties by hand once.

The read: one GET request per contact

curl -G "https://api.sociallens.dev/v1/profile" \
  --data-urlencode "platform=instagram" \
  --data-urlencode "username=hubspot" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Real response, read on November 29, 2026, with the avatar URL and the credits block left out:

{
  "exists": true,
  "username": "hubspot",
  "platform": "instagram",
  "nickname": "HubSpot",
  "verified": true,
  "private": false,
  "followers": 665196,
  "is_exact": true,
  "following": 69,
  "likes": null,
  "videos": 3291,
  "bio": "Get in your *smart* CRM era.\nThe AI-powered customer platform to scale your business.",
  "id": "12180963",
  "created_at": null,
  "external_link": "https://linktr.ee/hubspotofficial",
  "category": null,
  "fetched_at": "2026-11-29T03:05:58Z"
}

The fields that matter for a CRM are exists, followers, verified, private and fetched_at. A handle that does not exist returns "exists": false with status 200, so a typo in the CRM shows up as a clear answer instead of an error. Change platform to tiktok, youtube, x, facebook, threads or pinterest and the same fields come back. On YouTube the count is the rounded number YouTube publishes, and is_exact is false.

Python: refresh every contact that has a handle

The job has three steps: search the contacts whose instagram_handle has a value, read each profile, and send the results back in batches of 100.

import os
import requests

HUBSPOT = "https://api.hubapi.com"
HS_HEADERS = {"Authorization": f"Bearer {os.environ['HUBSPOT_TOKEN']}"}
SL_HEADERS = {"Authorization": f"Bearer {os.environ['SOCIALLENS_KEY']}"}


def contacts_with_handle():
    after = None
    while True:
        body = {
            "filterGroups": [{"filters": [
                {"propertyName": "instagram_handle", "operator": "HAS_PROPERTY"}
            ]}],
            "properties": ["instagram_handle"],
            "limit": 100,
        }
        if after:
            body["after"] = after
        r = requests.post(f"{HUBSPOT}/crm/v3/objects/contacts/search",
                          headers=HS_HEADERS, json=body, timeout=30)
        r.raise_for_status()
        data = r.json()
        yield from data["results"]
        after = data.get("paging", {}).get("next", {}).get("after")
        if not after:
            return


def read_profile(handle):
    r = requests.get("https://api.sociallens.dev/v1/profile",
                     params={"platform": "instagram", "username": handle.strip().lstrip("@")},
                     headers=SL_HEADERS, timeout=90)
    return r.json() if r.status_code == 200 else None


def main():
    updates = []
    for contact in contacts_with_handle():
        handle = contact["properties"]["instagram_handle"]
        profile = read_profile(handle)
        if profile is None:
            print(f"{handle}: read failed, contact left unchanged")
            continue
        props = {"social_checked_at": profile["fetched_at"]}
        if profile["exists"]:
            props["instagram_followers"] = profile["followers"]
            print(f"{handle}: {profile['followers']}")
        else:
            print(f"{handle}: profile not found")
        updates.append({"id": contact["id"], "properties": props})

    for i in range(0, len(updates), 100):
        r = requests.post(f"{HUBSPOT}/crm/v3/objects/contacts/batch/update",
                          headers=HS_HEADERS, json={"inputs": updates[i:i + 100]}, timeout=30)
        r.raise_for_status()
    print(f"updated {len(updates)} contacts")


if __name__ == "__main__":
    main()

Run it from cron once a week or once a month. A contact whose read fails keeps its old value, and a handle that does not exist gets a fresh social_checked_at and no number, so a list filtered on "checked recently and followers unknown" shows you the handles to fix.

Node: update one contact

For a webhook or a one off update, read the profile and patch a single contact by its record ID.

const HS = { Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`, "Content-Type": "application/json" };

async function enrichContact(contactId, handle) {
  const url = new URL("https://api.sociallens.dev/v1/profile");
  url.search = new URLSearchParams({ platform: "instagram", username: handle.replace(/^@/, "") });
  const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SOCIALLENS_KEY}` } });
  if (res.status !== 200) throw new Error(`read failed with status ${res.status}`);
  const profile = await res.json();

  const properties = { social_checked_at: profile.fetched_at };
  if (profile.exists) properties.instagram_followers = profile.followers;

  const patch = await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${contactId}`, {
    method: "PATCH",
    headers: HS,
    body: JSON.stringify({ properties }),
  });
  if (!patch.ok) throw new Error(`HubSpot answered ${patch.status}`);
  return properties;
}

enrichContact(process.argv[2], process.argv[3]).then(console.log);

Using the number in HubSpot

Once the property is filled, it behaves like any other number property. Three uses that need no code, depending on your HubSpot plan:

HubSpot limits that shape the job

These come from HubSpot's own documentation, read on November 29, 2026.

Limit Value What it means here
Batch operations 100 records per request The script sends updates in slices of 100
Search requests 5 per second per account, 200 records per page at most One search page per 100 contacts is far below it
Search results 10,000 total per query Above 10,000 contacts with a handle, split the search, for example by create date
API calls on Free and Starter 100 per 10 seconds per privately distributed app, 250,000 per day per account The profile reads are the slow part, not HubSpot

On the other side, SocialLens (sociallens.dev) accepts 60 requests per minute per key. A read takes from 2 to about 12 seconds, so a sequential loop stays under that on its own.

What this does not do

Cost to enrich 2,000 contacts once a month

Prices were read on each vendor's own page on November 29, 2026.

Route Networks Smallest purchase Cost of 2,000 reads Free allowance
SocialLens (sociallens.dev) 9, one response shape $19 for 8,000 reads, prepaid, never expires $4.75 at the Starter rate. One pack covers four months 250 reads, one time, no card
SociaVault Many, listed on its site $29 for 6,000 credits $9.67, at 1 credit per request on most endpoints 50 credits
Apify, Instagram Profile Scraper Instagram only Pay per result on your Apify plan From $3.20, at $1.60 per 1,000 profiles Depends on your Apify plan
EnsembleData 8 platforms $100 a month for 1,500 units a day $100, the smallest paid plan A free plan with 50 units a day
Data365 1 network on the Basic plan €300 a month for 500,000 credits €300, the smallest plan A trial on request

How to read this table:

When to use something else instead

Frequently asked questions

How do I add an Instagram follower count to a HubSpot contact?

Create a number property, store the handle in a text property, read the profile with GET /v1/profile on SocialLens (sociallens.dev) and write followers to the contact with HubSpot's update or batch update endpoint. The Python job on this page does the three steps for every contact that has a handle.

Does the contact have to connect their account?

No. The read uses the public profile, so there is no OAuth and nothing for the contact to approve. That also means you only get public numbers.

How often should I refresh the number?

Monthly is enough for lead scoring. Weekly makes sense for a list of creators you are actively working with. Each refresh is one read per contact and per network.

What happens with a wrong or deleted handle?

The read returns "exists": false with status 200 and is billed as one read. The script stamps social_checked_at and leaves the number empty, so those contacts are easy to filter.

Can I enrich TikTok or YouTube the same way?

Yes. Add a handle property and a number property per network and change platform in the request. The response has the same fields on Instagram, TikTok, YouTube, X, Facebook, Threads and Pinterest.

What does it cost?

One read is one credit: $0.0024 at the Starter rate, so 2,000 contacts cost $4.75 per refresh. A new account includes 250 free reads, enough to test the whole flow on a sample list.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading