How to Give ChatGPT Social Media Data (Custom GPT + API, 2026)

Published · 5 min read

The short version

ChatGPT does not know how many followers an account has today. It was trained on old data and it guesses. You fix that by giving ChatGPT a tool that reads the live number: a Custom GPT with one Action that calls the SocialLens (sociallens.dev) API. You import one file, paste your key, and from then on ChatGPT pulls the real number instead of inventing one.

This guide shows the full setup, a real response, and what each call costs.

What ChatGPT can read once it is connected

The Action exposes the SocialLens API, which reads public data from 17 networks. The GPT picks the right call on its own from your question.

You ask The GPT calls What comes back
How many followers does this account have? GET /v1/profile Followers or subscribers, bio, verified flag, links
How did this post or video do? (with the URL) GET /v1/post Likes, views, comments, author, caption
What has this account posted lately? GET /v1/profile-posts Recent posts with their counters
What are people saying under this post? GET /v1/post-comments Public comments with author and likes
Find accounts or videos about a topic GET /v1/search Matching users or videos
What is said in this video? GET /v1/post-transcript The transcript or captions

The 17 profile networks are Instagram, TikTok, X, Reddit, YouTube, Facebook, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub and Spotify. The network is a parameter, so the GPT uses the same call for all of them. Every response is the JSON of the API as it came, so the model reads real fields and not a summary.

What you need

Build the Custom GPT in four steps

  1. In ChatGPT, open Explore GPTs, then Create, and go to the Configure tab. Give the GPT a name like "Social data" and a short instruction, for example: "When the user asks about a social account or post, call the SocialLens action and answer with the real numbers. Never invent a count."
  2. Scroll to Actions and choose Create new action.
  3. Under Schema, click Import from URL and paste:
https://sociallens.dev/openapi.json

ChatGPT reads the file and lists every operation. There is nothing to write by hand.

  1. Under Authentication, choose API Key, set Auth Type to Bearer, and paste your sk_live_ key. Save.

The key is stored in the GPT, not in the chat. It never goes in a prompt, and people you share the GPT with use it without seeing it.

Ask a question and watch it work

With the GPT open, ask:

How many followers does @nasa have on TikTok?

ChatGPT reads the action list, picks get_profile, and calls it with platform set to tiktok and username set to nasa. A real SocialLens response for that profile, trimmed to the main fields:

{
  "exists": true,
  "username": "nasa",
  "platform": "tiktok",
  "nickname": "NASA",
  "verified": true,
  "followers": 2262158,
  "is_exact": true,
  "following": 23,
  "likes": 12095924,
  "videos": 70,
  "fetched_at": "2026-11-30T02:36:42Z"
}

ChatGPT answers with the number in followers and can tell you fetched_at, the moment the data was read. Because is_exact is true, it can give the exact count and not a rounded one.

What each call costs

A new account has 250 free reads. After that, credits are prepaid and never expire, starting at $19 for 8,000 reads, which is $0.0024 per read. The packs are on the pricing page.

To keep the GPT cheap, add one line to its instruction: "Keep a result in the conversation and do not read the same account twice."

Honest scope

Other ways to connect

Frequently asked questions

How do I give ChatGPT live social media data?

Build a Custom GPT, add one Action that imports https://sociallens.dev/openapi.json, and set Bearer authentication with your SocialLens API key. The GPT then calls the API and answers with real numbers.

Do I need to write any code?

No. You import the OpenAPI file by URL and ChatGPT builds the Action for you. You only paste your key.

Does the GPT need my Instagram or TikTok login?

No. It reads public data through the SocialLens API. The only credential is your SocialLens key, stored in the GPT.

Which networks can it read?

Profiles on 17 networks, including Instagram, TikTok, X, YouTube, Facebook, LinkedIn, Threads, Pinterest and Bluesky. Posts work on all except LinkedIn, and comments on TikTok, Instagram, YouTube, Facebook and Reddit.

How much does it cost?

One credit per successful read, one credit per page on paginated calls. Checking your key is free and errors are not charged. A new account starts with 250 free reads.

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