@unifapi/sdk
v0.1.0
Published
TypeScript SDK for the UnifAPI public-data API.
Maintainers
Readme
@unifapi/sdk
TypeScript SDK for the UnifAPI public-data API.
UnifAPI gives agents and applications one HTTP surface for public-data workflows such as KOL pricing, creator research, social listening, competitive intelligence, and market research.
Install
pnpm add @unifapi/sdkThe package is published under the @unifapi npm scope. For agent clients, prefer the hosted MCP server at https://mcp.unifapi.com.
Usage
import { createUnifapiClient } from "@unifapi/sdk";
const unifapi = createUnifapiClient({
apiKey: process.env.UNIFAPI_API_KEY,
});
const result = await unifapi.get("/x/tweets/search/recent", {
query: { q: "unifapi" },
});
console.log(result);Auth
Direct HTTP calls use a workspace API key:
Authorization: Bearer $UNIFAPI_API_KEYCreate a key from the UnifAPI dashboard at https://api.unifapi.com/sign-in.
MCP
For agent clients, prefer the hosted MCP server:
https://mcp.unifapi.comThe MCP path lets an agent discover operations, inspect schemas, and call live public-data APIs through list_operations, get_operation, and call_api.
Links
- Developer resources:
https://unifapi.com/developers - OpenAPI:
https://unifapi.com/openapi.json - Docs:
https://docs.unifapi.com - MCP registry manifest:
https://unifapi.com/server.json
