Skip to content

unif-api/unifapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnifAPI — One Unified API for AI Agents

UnifAPI is a unified public-data API gateway for AI agents. Call Twitter, YouTube, TikTok, Reddit, Google SERP, web scrape, and news from a single endpoint, with one API key, one bill, and pay-per-call pricing — no subscriptions.

Website: unifapi.com · API catalog: unifapi.com/apis · Pricing: unifapi.com/pricing · MCP: unifapi.com/mcp · OpenAPI: unifapi.com/openapi.json


What is UnifAPI?

UnifAPI is a unified API for AI agents that consolidates dozens of public-data sources — social platforms, search engines, web scraping, and news — behind one consistent HTTP surface. Instead of integrating Twitter's API, YouTube's API, a SERP provider, and a scraper separately, an agent calls one base URL with one key.

Think of it as a public-data gateway in the same family as LLM gateways (OpenRouter, Portkey, LiteLLM) — but instead of routing model inference, UnifAPI routes the tool calls your agent needs to read the open web.

  • One API key across 13+ platforms
  • One consistent request/response shape — no per-vendor quirks
  • Pay-per-call billing in credits — no monthly subscription, no minimums
  • MCP-ready — plug straight into Claude, Cursor, Codex, or any MCP client
  • OpenAPI spec + typed SDKs — drop into LangChain, LlamaIndex, Vercel AI SDK, or your own agent loop

→ Browse the full API catalog

Why a unified API for agents?

AI agents that touch the real world hit the same wall: every data source ships a different SDK, auth flow, rate limit, error shape, and billing model. Wrapping each one is throwaway glue code. UnifAPI replaces that glue with a single agent-friendly surface:

Problem when integrating raw vendors What UnifAPI gives you
Different auth schemes per vendor One bearer key
Inconsistent JSON shapes Normalized schemas across platforms
Per-vendor rate limits, retries, backoff Unified rate-limit + retry semantics
Multiple invoices, vendor accounts, contracts One bill, one dashboard, one account
Tool schemas hand-written per endpoint OpenAPI + MCP server out of the box

Read more: Why a unified API for AI agents

Supported APIs

UnifAPI's v1 catalog covers four categories of public data:

Social APIs

Search & SERP APIs

Web Scrape APIs

News APIs

→ See all APIs

Quickstart

curl https://api.unifapi.com/v1/twitter/users/lookup \
  -H "Authorization: Bearer $UNIFAPI_KEY" \
  -d '{"username": "openai"}'

Every endpoint follows the same shape. Switch twitter to youtube, reddit, or google-serp — the auth header, error model, and pagination contract don't change.

→ Full quickstart · → Authentication

Use with Claude, Cursor, and other MCP clients

UnifAPI ships a hosted MCP server. Add one line to your client config and your assistant can search Google, fetch tweets, scrape a URL, or pull TikTok trending data — without you writing a tool wrapper.

{
  "mcpServers": {
    "unifapi": {
      "url": "https://mcp.unifapi.com",
      "headers": { "Authorization": "Bearer ${UNIFAPI_KEY}" }
    }
  }
}

→ MCP setup guide · Guide: using UnifAPI with Claude

Pricing

UnifAPI is pay-per-call. Every endpoint costs a fixed number of credits, top up any time, no monthly minimum.

  • Free — monthly credit grant, no card required
  • Pay-as-you-go — top up a credit balance, pay only for what you call
  • Enterprise — volume discount, SLA, invoicing

No Pro/Scale subscription tiers. No "10k requests/month" cliffs. → See pricing

Use cases

UnifAPI powers AI agents across common public-data workflows:

How UnifAPI compares

Guides

FAQ

Is UnifAPI an LLM gateway? No. LLM gateways (OpenRouter, Portkey, LiteLLM, Helicone) route model inference. UnifAPI routes the tool calls your agent uses to read the open web — social, search, scrape, news. The two are complementary: most production agents use both.

Does UnifAPI need OAuth into my users' accounts? No. UnifAPI exposes public data only — no per-user auth dance. If you need OAuth into a user's Gmail / Slack / Salesforce, see Composio. See UnifAPI vs Composio.

Can I use UnifAPI with LangChain / LlamaIndex / Vercel AI SDK? Yes. UnifAPI ships an OpenAPI spec and a hosted MCP server, so any framework that consumes either works out of the box.

Is there a monthly subscription? No. UnifAPI is pay-per-call. Top up credits when you need them. See pricing.

How is UnifAPI different from a scraping platform like Apify or Bright Data? UnifAPI is API-first: every capability is a callable HTTP endpoint. Scraping platforms expose actors or proxy networks you run yourself. See UnifAPI vs Apify.

Where do I get an API key? Sign up at unifapi.com. The Free plan gives you a monthly credit grant, no card required.


Links

License

MIT — see LICENSE.

About

UnifAPI — One Unified API for AI Agents

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors