unifapi  by unifapi-agent

Unified public data API gateway for AI agents

Created 13 years ago
477 stars

Top 63.6% on SourcePulse

GitHubView on GitHub
Project Summary

UnifAPI offers a unified API gateway for AI agents, consolidating access to dozens of public data sources like social media platforms (Twitter, YouTube, TikTok, Reddit), search engines (Google SERP), and web scraping tools. It simplifies agent development by providing a single endpoint, API key, and billing model, eliminating the need to integrate and manage individual vendor APIs, thereby reducing development overhead and accelerating agent deployment.

How It Works

This project functions as a public-data gateway, abstracting the complexities of numerous external APIs into a consistent HTTP surface. It normalizes authentication, request/response shapes, rate limits, and error handling across supported platforms. This unified approach allows AI agents to interact with diverse data sources using a single, predictable interface, akin to how LLM gateways route model inference requests.

Quick Start & Requirements

  • Primary install/run command: A curl example demonstrates basic usage:
    curl https://api.unifapi.com/v1/twitter/users/lookup \
      -H "Authorization: Bearer $UNIFAPI_KEY" \
      -d '{"username": "openai"}'
    
  • Prerequisites: An UNIFAPI_KEY environment variable is required.
  • Dependencies: No specific non-default software dependencies are listed beyond standard HTTP client capabilities.
  • Links: Website: unifapi.com, API catalog: unifapi.com/apis, Pricing: unifapi.com/pricing, MCP server: unifapi.com/mcp, OpenAPI spec: unifapi.com/openapi.json.

Highlighted Details

  • Supports over 13 platforms including Twitter/X, YouTube, TikTok, Reddit, Instagram, Threads, Google SERP, Bing SERP, Google Trends, and web scraping (URL to Markdown/structured data).
  • Features a pay-per-call pricing model with no monthly subscriptions or minimums, offering a free monthly credit grant upon signup.
  • Provides a hosted MCP (Meta-Controller Protocol) server for direct integration with AI assistants like Claude and Cursor.
  • Includes an OpenAPI specification and typed SDKs, facilitating integration with agent frameworks such as LangChain, LlamaIndex, and Vercel AI SDK.

Maintenance & Community

The project provides links to its website, blog, and API documentation. Specific details regarding community channels (e.g., Discord, Slack), notable contributors, sponsorships, or a public roadmap are not explicitly detailed in the README.

Licensing & Compatibility

The project is licensed under the MIT license. This permissive license generally allows for commercial use and integration into closed-source applications without significant restrictions, particularly as it focuses on public data access.

Limitations & Caveats

UnifAPI exclusively provides access to public data and does not support per-user authenticated access to private user accounts (e.g., Gmail, Slack). It is positioned as a data API gateway, distinct from LLM gateways that route model inference requests.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.