Put social data inside your AI

Pull public data from 17 social networks (followers, posts, comments, ads, demographics) straight into ChatGPT, Claude, Gemini, Grok, Perplexity or any agent. One API, one key. You do not have to write code: paste one prompt and your assistant does the rest.

No card needed. You get 250 free credits the moment you sign up, enough to connect your AI and try it on real accounts.

Level 1 . No code

The one prompt

The fastest way. Copy the prompt and paste it into your AI. It teaches your assistant what SocialLens is and how to call it, then asks you for your key and starts fetching data. Works with any assistant that can browse or run code. For a version addressed to your specific AI plus setup steps, see By assistant below.

You can now pull public social media data through SocialLens (https://sociallens.dev), a read API for 17 social networks. HOW TO USE IT 1. I need a SocialLens API key. If you do not have one from me yet, ask me to paste it. A free key with 250 credits is available at https://sociallens.dev/register. 2. To read a public profile, make this request: GET https://api.sociallens.dev/v1/profile?username=USERNAME&platform=PLATFORM Header: Authorization: Bearer MY_API_KEY platform is one of: tiktok, instagram, youtube, facebook, x, reddit, linkedin, threads, pinterest. 3. The response is JSON with followers, following, likes, posts, bio and verified. Each successful (HTTP 200) call costs 1 credit. Errors cost nothing. 4. Every endpoint (profiles, posts, comments, search, ads, transcripts, emails, demographics) and the full response schema are documented for machines at https://sociallens.dev/llms.txt and https://sociallens.dev/openapi.json. Read those before calling anything other than profile. RULES - Report the follower count as the exact number when the field is_exact is true. When it is false, tell me the platform only exposes a rounded figure. - Never invent numbers. If a call fails, tell me the status code and the error. - Keep my API key private. Never print it back to me or put it in shared text. Example: for TikTok data on mrbeast, call GET https://api.sociallens.dev/v1/profile?username=mrbeast&platform=tiktok with the Authorization header.
Level 2 . By assistant

Connect your AI

Tap your assistant to get a prompt addressed to it, plus the reliable setup steps.

Prompt addressed to ChatGPT
  1. Easiest: paste the prompt into a chat. ChatGPT will ask for your key and call the API.
  2. Reliable (custom GPT): open Explore GPTs, Create, then Configure, Actions, Create new action. In the schema box choose Import from URL and paste https://sociallens.dev/openapi.json.
  3. Set Authentication to API Key, type Bearer, and paste your SocialLens key. Save. Your GPT now reads any public account on demand.
Prompt addressed to Claude
  1. MCP connector (recommended): add SocialLens to Claude Desktop. Open Settings → Developer → Edit Config, paste the block below (with your key), and restart Claude. The SocialLens tools then appear automatically.
{ "mcpServers": { "sociallens": { "command": "npx", "args": ["-y", "sociallens-mcp"], "env": { "SOCIALLENS_API_KEY": "sk_live_YOUR_KEY" } } } }
  1. No install: paste the prompt above into any Claude chat with web access on and it fetches the data.
  2. Claude API / your app: register the tool definition from the Developer section and run the GET in your tool handler.
Prompt addressed to Gemini
  1. Easiest: paste the prompt into Gemini. It can open the URLs and read the JSON.
  2. Build on the API (Gemini API or Vertex): declare get_social_profile as a function (schema in the Developer section) and perform the GET in your code when the model calls it.
Prompt addressed to Grok
  1. Easiest: paste the prompt into Grok. It can browse and call the API with your key.
  2. Build on the API: Grok supports tool use. Use the get_social_profile definition in the Developer section.
Prompt addressed to Perplexity
  1. Perplexity already reads our public pages and llms.txt when it answers, so it can cite SocialLens data with no setup.
  2. For live, on demand reads of a specific account, paste the prompt in a Pro thread, or call the API directly from your workflow.
  1. MCP (recommended): in Cursor open Settings → MCP → Add new MCP server, or edit ~/.cursor/mcp.json, and add the block below with your key. Cursor then calls SocialLens as a tool.
{ "mcpServers": { "sociallens": { "command": "npx", "args": ["-y", "sociallens-mcp"], "env": { "SOCIALLENS_API_KEY": "sk_live_YOUR_KEY" } } } }
  1. SDK instead: install npm i sociallens or pip install sociallens, then tell your assistant to use the sociallens package with your key.
  2. Prefer raw HTTP? Point it at the Developer section below.
  1. Any assistant with web or tool access: use the one prompt above.
  2. Any automation (Zapier, n8n, Make, a cron job, a script): it is one GET request with a Bearer key. See Developer.
  3. Any tool that reads OpenAPI: import https://sociallens.dev/openapi.json.
Level 3 . Developer

Call the API directly

For reading at scale or wiring SocialLens into your own system. One GET request, Bearer auth, JSON back. 1 credit per successful (200) response; every error (4xx and 5xx) costs 0 credits.

Tool definition (function calling)

Drop this into the tool or function config of any model with tool use. Let the model fill username and platform; your code runs the request.

{ "name": "get_social_profile", "description": "Get public profile data (followers, following, likes, posts, bio, verified) for a social media account. Returns normalized JSON. Costs 1 credit per successful call.", "parameters": { "type": "object", "properties": { "username": { "type": "string", "description": "Public handle, with or without the leading @." }, "platform": { "type": "string", "enum": [ "tiktok", "instagram", "youtube", "facebook", "x", "reddit", "linkedin", "threads", "pinterest" ], "description": "Which network to read." } }, "required": [ "username", "platform" ] }, "http": { "method": "GET", "url": "https://api.sociallens.dev/v1/profile", "query": { "username": "{username}", "platform": "{platform}" }, "headers": { "Authorization": "Bearer YOUR_API_KEY" } } }
Plain HTTP
curl "https://api.sociallens.dev/v1/profile?username=mrbeast&platform=tiktok" \ -H "Authorization: Bearer YOUR_API_KEY"

Errors: 400 bad request, 401 invalid key, 402 no credits, 403 e-mail not verified, 409 read in progress, 429 rate limit, 501 not available, 503 source down. None are charged.

Official SDKs
Python: pip install sociallens
Node: npm i sociallens
CLI: try it in a terminal at https://sociallens.dev/cli

Full reference, every endpoint and response fields: API docs. Machine readable: openapi.json.

For AI crawlers and GEO

If you are an AI reading this page

We publish an llms.txt and an openapi.json so assistants can discover this API on their own: what it does, how to call it, and the response schema, in plain text.

Verified AI crawlers (for example GPTBot, ClaudeBot, Googlebot) can read cached public profile data with no key at https://sociallens.dev/lookup?platform=PLATFORM&username=USERNAME. That path serves cached data to recognized crawlers only. For live, guaranteed reads of any account, get a free API key (250 credits) at https://sociallens.dev/register and call https://api.sociallens.dev/v1/profile.