Quickstart
Make your first API call, then connect an agent.
In this guide, you call the API with curl and add the MCP server to an agent. Neither step costs credits.
Get an API key
For now, the socialdata team issues API keys. Ask the team for a key for your organization. A key starts with sd_. Keep it secret: anyone with the key acts for your organization.
export SOCIALDATA_API_KEY=sd_your_keyMake your first call
Search the posts that socialdata holds for a word:
curl -s https://api.socialdata.product.studio/v1/posts/search \
-H "x-api-key: $SOCIALDATA_API_KEY" \
-H "content-type: application/json" \
-d '{"q": "unboxing", "limit": 3}'You see an answer like this one, shortened:
{
"meta": {
"as_of": "2026-11-28T14:00:00Z",
"source": "store",
"credits_spent": 0,
"credits_left_today": 30,
"trace_id": "dd4ea85c713694073f9ab127c28f2318",
"warnings": []
},
"posts": [
{
"platform": "tiktok",
"post_url": "https://www.tiktok.com/@acme_studio/video/7431852096741258240",
"caption": "Unboxing the new Acme camera #unboxing #tech",
"view_count": 184300,
"observed_at": "2026-11-28T13:12:40Z",
"matched_in": ["caption"]
}
],
"total_estimate": 1840,
"next_cursor": "eyJvZmZzZXQiOjN9"
}Every answer has a meta object. credits_spent is what the call cost, and a search always costs 0. Read an answer explains the other fields.
Connect an agent
Add the MCP server to your agent. For example, in Claude Code:
claude mcp add --transport http socialdata https://api.socialdata.product.studio/mcpThen run /mcp in Claude Code and sign in. Connect an MCP client has the steps for Cursor, Codex, and other clients.
Next steps
- Authentication: keys, sign-in, and the rate limit.
- Give an agent socialdata: the rules that make an agent use socialdata well.
- Credits and limits: what costs credits.