Skip to main content
The @xpoz/ai-sdk package provides 44 ready-made tools for the Vercel AI SDK. Use them with generateText, streamText, or any AI SDK-compatible framework to give your AI agent access to Twitter/X, Instagram, Reddit, and TikTok data.

Setup

1

Get your access key

Sign up at xpoz.ai and copy your access key from the Get Token page.
2

Install the package

You also need an AI provider. For example, with Anthropic:
3

Set your access key

4

Use with generateText

The AI model automatically discovers all 44 tools and decides which ones to call based on the prompt.

Using Individual Tools

If you only need specific tools, import them directly instead of the full bundle:

Field Selection

Every tool supports an optional fields parameter to control which fields are returned. Each tool’s description lists all available fields for that entity type.
Field names differ across platforms. For example, Twitter uses followersCount while Instagram and TikTok use followerCount. Each tool’s description lists the correct field names.

TypeScript Types

The package exports response types for all entity types:
All tools also define an outputSchema for typed results via the AI SDK’s TypedToolResult system.

Available Tools

Twitter/X

Instagram

Reddit

TikTok

Tracking & Account

Configuration

All tools accept an optional configuration object:

What You Can Do

  • Search posts by keyword across Twitter, Instagram, Reddit, and TikTok
  • Look up user profiles and follower counts
  • Analyze engagement metrics and trends
  • Track keywords and users for continuous monitoring
  • Build AI agents that autonomously research social media topics

Next Steps

MCP Tools

Browse all 48 tools across 4 platforms

npm Package

View the package on npm