Labsco
SocialAPIsHub logo

Social APIS Hub

β˜… 1

from SocialAPIsHub

The unified API for social media data - built for developers and AI agents.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

SocialAPIs MCP Server

SocialAPIs Logo

Unified social media API for AI agents

Website β€’ Documentation β€’ Discord β€’ npm

Official SDKs: Python β€’ JavaScript / TypeScript β€’ Go


πŸ“‹ Features

  • 🌐 Unified API - One interface for multiple platforms
  • πŸ€– AI-First - Built for Claude, Cursor, and AI agents
  • πŸ“Š Rich Data - Posts, comments, engagement metrics
  • πŸ” Advanced Filtering - Time ranges, pagination
  • 🎯 Simple Auth - No OAuth complexity
  • ⚑ Fast - Global edge network
  • πŸ”’ Secure - API keys stay local

πŸ› οΈ Available Tools

47 tools across Facebook and Instagram. Every tool maps 1:1 to a REST endpoint on api.socialapis.io β€” pricing notes in each tool description indicate per-call credit cost.

Facebook β€” Pages

  • facebook_get_page_id β€” Extract page ID from URL
  • facebook_get_page_details β€” Page info, followers, likes, category. Set exact_followers_count=true for the exact integer (charges 5 credits instead of 1)
  • facebook_get_page_posts β€” Fetch posts with after_time / before_time for date filtering. limit 3-9, charges scale per ceil(returned / 3)
  • facebook_get_page_videos β€” Page videos, limit 6-12
  • facebook_get_page_reels β€” Reels / short videos

Facebook β€” Groups

  • facebook_get_group_id β€” Extract group ID from URL
  • facebook_get_group_details β€” Full details (members, description, rules)
  • facebook_get_group_posts β€” Group posts, same limit + date filtering as page posts
  • facebook_get_group_videos β€” Group videos with pagination

Facebook β€” Posts

  • facebook_get_post_id β€” Extract post ID from URL
  • facebook_get_post_details β€” Reactions, comments count, shares, media
  • facebook_get_post_details_extended β€” Extended fields: view counts (essential for reels / video posts), video URLs, music/audio metadata, author verification
  • facebook_get_post_attachments β€” Full media attachments (5 credits per call)
  • facebook_get_video_details β€” Video post metadata + stats
  • facebook_get_post_comments β€” Top-level comments, limit up to 30
  • facebook_get_comment_replies β€” Replies to a specific comment
  • facebook_search_pages β€” Search pages by keyword + optional location filter
  • facebook_search_people β€” Search public profiles by keyword
  • facebook_search_locations β€” Look up Facebook location UIDs (for use in other endpoints)
  • facebook_search_posts β€” Search posts by keyword, recency, location
  • facebook_search_videos β€” Search Facebook Watch videos

Facebook β€” Ads Library (Meta Ad Transparency)

  • facebook_ads_search β€” Search ads by keyword, country, status
  • facebook_ads_page_details β€” All ads from a specific page
  • facebook_ads_archive_details β€” Full ad archive details
  • facebook_ads_keywords β€” Search ads by keyword
  • facebook_ads_countries β€” List of supported country codes

Facebook β€” Marketplace

  • facebook_marketplace_search β€” Item search with location, price, category, condition filters
  • facebook_marketplace_listing β€” Single listing details
  • facebook_marketplace_seller β€” Seller profile + their listings
  • facebook_marketplace_categories β€” Browse category hierarchy
  • facebook_marketplace_city_coordinates β€” Lat/long for a city (for radius search)
  • facebook_marketplace_vehicles β€” Vehicle-specific listing search
  • facebook_marketplace_rentals β€” Rental property listings

Facebook β€” Media

  • facebook_download_media β€” Direct download URL for FB media (images, videos)

Instagram β€” Profile

  • instagram_get_user_id β€” Resolve username β†’ numeric ID
  • instagram_get_profile_details β€” Profile info, follower count, bio, post count
  • instagram_get_profile_posts β€” Recent posts from a profile
  • instagram_get_profile_reels β€” Reels from a profile
  • instagram_get_profile_highlights β€” Story highlights list
  • instagram_get_highlight_details β€” Full content of a specific highlight

Instagram β€” Posts + Reels

  • instagram_get_post_id β€” Resolve post URL β†’ ID
  • instagram_get_post_details β€” Likes, comments, media, caption
  • instagram_get_reels_feed β€” Reels feed for a profile
  • instagram_get_reels_by_audio β€” Reels using a specific audio/music ID

Instagram β€” Discovery

  • instagram_popular_search β€” Trending queries / suggestions
  • instagram_get_location_posts β€” Posts tagged at a specific location
  • instagram_get_nearby_locations β€” Nearby location IDs (for use in location-posts)

Coming soon

  • TikTok (videos, profiles, hashtags)
  • X / Twitter (tweets, profiles, search)
  • LinkedIn (company pages, posts, employees)
  • YouTube (videos, channels, comments)

Track the platform roadmap at socialapis.io/api-sources.


πŸ—οΈ Architecture

Claude Desktop
    ↓
@socialapis/mcp (local MCP client)
    ↓
https://mcp.socialapis.io (global proxy)
    ↓
https://api.socialapis.io (data API)

Why this architecture?

  • βœ… Low latency (global edge network)
  • βœ… High reliability (99.9% uptime)
  • βœ… Auto rate limiting
  • βœ… Smart caching
  • βœ… Your API key stays local

πŸ”§ Development

Local Setup

# Clone repository
git clone https://github.com/SocialAPIsHub/mcp-server.git
cd mcp-server

# Install dependencies
npm install

# Run MCP client
npm start YOUR_API_KEY

# Run HTTP proxy server
npm run serve

Project Structure

mcp-server/
β”œβ”€β”€ src/
β”‚   └── tools.js          # Tool definitions
β”œβ”€β”€ mcp-wrapper.js        # MCP client (runs locally)
β”œβ”€β”€ server.js             # HTTP proxy server
β”œβ”€β”€ package.json
β”œβ”€β”€ Dockerfile
└── README.md

Testing

# Test MCP client locally
node mcp-wrapper.js YOUR_API_KEY

# Test HTTP proxy
curl http://localhost:3001/health
curl http://localhost:3001/tools

# Test specific tool
curl -X POST http://localhost:3001/proxy \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"facebook_get_page_details","arguments":{"link":"https://facebook.com/nike"}}'

πŸ“Š Pricing

PlanRequests/MonthPrice
Free200$0
Starter30,000$49
Pro120,000$179
EnterpriseUnlimitedCustom

View detailed pricing β†’


🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“– Documentation


πŸ’¬ Support


πŸ—ΊοΈ Roadmap

Shipped:

  • Facebook API support β€” 31 tools (Pages, Groups, Posts, Search, Ads Library, Marketplace, Media)
  • Instagram support β€” 16 tools (Profiles, Posts, Reels, Highlights, Discovery / Locations)
  • MCP server implementation
  • HTTP proxy server
  • npm package published β€” @socialapis/mcp
  • MCP Registry listing β€” registry.modelcontextprotocol.io
  • Python SDK β€” socialapis-sdk on PyPI (51 endpoints, MIT)
  • JavaScript / TypeScript SDK β€” socialapis-sdk on npm (Node 18+, Bun, Deno, browsers)
  • Go SDK β€” github.com/SocialAPIsHub/socialapis-go (idiomatic, zero deps)

Upcoming:

  • TikTok support
  • X (Twitter) support
  • LinkedIn support
  • YouTube support
  • Advanced analytics β€” server-side aggregation endpoints (engagement-over-time, brand comparisons) so multi-call patterns become a single tool call
  • Real-time webhooks β€” push notifications on new posts / engagement thresholds
  • LangChain integration

Platform priorities shift based on customer demand. The fastest way to push something up the queue is to email support@socialapis.io or DM @socialapis on Telegram with the use case.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments


🌟 Star History

Star History Chart


Made with ❀️ by the SocialAPIs Team

Website β€’ Twitter β€’ Discord

Python SDK β€’ JS SDK β€’ Go SDK