How to Give ChatGPT Social Media Data (Custom GPT + API, 2026)
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
- A ChatGPT plan that can build GPTs (Plus, Pro, Team or Enterprise). Custom GPTs with Actions are not on the free tier.
- A SocialLens API key. Create a free account to get one: 250 free reads, no credit card. The key is on your keys page and starts with
sk_live_.
Build the Custom GPT in four steps
- 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."
- Scroll to Actions and choose Create new action.
- 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.
- 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
- One successful read is 1 credit. A follower count or a post lookup is 1 call.
- Paginated calls, like recent posts or comments, cost 1 credit per page.
- Checking your key is free, and errors are never charged.
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
- Custom GPTs need a paid plan. If you are on the free tier, you can still paste your key and the API details into a normal chat and ask ChatGPT to call the endpoint, but a Custom GPT is the setup that lasts.
- Public data, read only. The Action reads public profiles and posts. It needs no login to any network and cannot post, follow or message.
- Not every call covers every network. Profiles work on all 17 networks. Single posts work on all except LinkedIn. Comments cover TikTok, Instagram, YouTube, Facebook and Reddit. Follower lists are TikTok only.
- YouTube rounds its numbers. YouTube reports a rounded subscriber count, so the response marks
is_exactas false and the GPT should say "about" instead of an exact figure.
Other ways to connect
- Claude, Cursor and other MCP clients. They do not import an OpenAPI file the way a Custom GPT does. They use an MCP server instead. See Social Media MCP Server.
- Your own code. If you build the agent yourself, define the call as a function or import the OpenAPI file directly. The setup is in Social Media Data for AI Agents and No Code Tools.
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.