npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@apidirect/piece-api-direct

v0.3.10

Published

Activepieces piece for API Direct: search and monitor Twitter/X, Facebook, Instagram, TikTok, YouTube, Reddit, Threads, Truth Social, Bluesky, Substack, Amazon, Trustpilot and Google from your flows.

Readme

API Direct for Activepieces

The official Activepieces piece for API Direct: search and monitor social media, news, reviews and the web from your flows.

API Direct is a pay-as-you-go API for real-time data from Twitter/X, Facebook, Instagram, TikTok, YouTube, Reddit, Threads, Truth Social, Bluesky, Substack, Amazon, Trustpilot and Google, all through one key and one consistent interface. There are no subscriptions: you only pay for the requests you make.

Installation

On a self-hosted Activepieces instance, open Settings → Pieces → Install Piece and enter the package name @apidirect/piece-api-direct.

Connection

  1. Sign up at apidirect.io. Every account gets 50 free requests per endpoint every month, no card required.
  2. Create a key on the API Keys page.
  3. In Activepieces, add an API Direct connection and paste the key.

Activepieces checks the key against the cheapest endpoint (/v1/time, $0.001). See Authentication.

Actions

143 actions plus a Custom API Call for anything else in the API reference:

| Platform | Actions | |---|---| | Twitter | Search Twitter Posts, Search Twitter Users, Twitter User Profile, Twitter User Tweets, Twitter User Followers, Twitter User Following, Twitter Verified Followers, Twitter User Replies, Twitter Tweet Details, Twitter Tweet Retweets, Twitter Quote Tweets, Twitter Tweet Comments, Twitter Trending Topics | | Facebook | Search Facebook Posts, Search Facebook Locations, Search Facebook Pages, Search Facebook Videos, Search Facebook Events, Facebook Page Details, Facebook Page Posts, Facebook Page Photos, Facebook Page Videos, Facebook Page Reels, Facebook Page Reviews, Facebook Group Details, Facebook Group Posts, Search Facebook Group Posts, Facebook Post Comments | | Instagram | Search Instagram Posts, Search Instagram Users, Instagram User Profile, Instagram User Posts, Instagram Post Details, Instagram User Followers, Instagram User Following, Instagram User Stories, Instagram User Highlights, Instagram Highlight Stories, Instagram Post Comments, Instagram Comment Replies, Instagram Post Likes, Instagram Hashtag Posts | | LinkedIn | Search LinkedIn Posts, LinkedIn Person Profile, LinkedIn Person Posts, LinkedIn Post Details, Search LinkedIn Companies, LinkedIn Company Details, LinkedIn Company Posts, Search LinkedIn Jobs, LinkedIn Job Details | | TikTok | Search TikTok Videos, Search TikTok Users, TikTok User Profile, TikTok Video Details, TikTok User Videos, TikTok User Likes, TikTok User Stories, TikTok User Followers, TikTok User Following, TikTok Video Comments, TikTok Comment Replies, Search TikTok Hashtags, TikTok Hashtag Details, TikTok Hashtag Videos, TikTok Music Details, TikTok Music Videos, TikTok Playlist Details, TikTok Playlist Videos | | YouTube | Search YouTube Videos, Search YouTube Channels, YouTube Channel Details, YouTube Video Details, YouTube Video Comments | | Reddit | Search Reddit Posts, Search Reddit Comments, Search Reddit Users, Search Reddit Subreddits, Reddit Post Details, Reddit Post Comments, Reddit Post Crossposts, Reddit User Profile, Reddit User Posts, Reddit User Comments, Reddit Subreddit Details, Reddit Subreddit Posts, Reddit Subreddit Rules, Reddit Trending Posts | | Threads | Search Threads Posts, Search Threads Users, Threads User Profile, Threads User Posts | | Truth Social | Truth Social User Posts | | Bluesky | Search Bluesky Posts, Search Bluesky Users, Bluesky User Profile, Bluesky User Posts, Bluesky User Followers, Bluesky User Following, Bluesky User Likes, Bluesky Post Details, Bluesky Post Comments, Bluesky Post Likes, Bluesky Post Quotes, Bluesky Post Reposts | | Substack | Search Substack Posts, Search Substack Users, Search Substack Publications, Search Substack Notes, Substack User Profile, Substack User Posts, Substack User Activity, Substack Publication Details, Substack Publication Posts, Substack Publication Recommendations, Substack Post Details, Substack Post Comments, Substack Post Likes, Substack Note Details, Substack Category Publications, Substack Category Feed, Substack Trending Posts | | Amazon | Search Amazon Products, Amazon Product Details, Amazon Seller Profile, Amazon Seller Reviews, Amazon Seller Products, Amazon Best Sellers | | Trustpilot | Trustpilot Company Reviews, Search Trustpilot Companies, Trustpilot Category Companies, Trustpilot Category Newest, Trustpilot Category Details, Search Trustpilot Categories, Trustpilot User Profile | | Google Search | Google Web Search, Google AI Mode | | Google Places | Search Google Places, Google Place Details, Google Place Reviews, Google Place Photos | | News | Search News Articles | | Forums | Search Forum Posts |

Every action's description shows its price. Most list actions take an optional Get Sentiment checkbox that adds emotion, polarity and intensity scores to each result, and a Pages field that fetches several pages in one call (each page is billed as one request).

Usage notes

  • Pagination: list actions take Pages or Page instead of cursors. See Pagination.
  • Boolean search: search actions pass the query to each platform's own search engine, so exact phrases, OR, exclusions and grouping work where the platform supports them. See Boolean search.
  • Dependent IDs: some Facebook actions need IDs returned by others. Facebook Page Details returns the page_id, delegate_page_id and reels_page_id used by the page posts, videos and reels actions; Search Facebook Locations returns the location_id used to filter post and event searches.
  • Output: each action returns the API response as documented, with an output schema so the flow builder shows the fields by name.

Support

Development

The action files are generated from the public OpenAPI spec (https://apidirect.io/openapi.json) by generate.py; re-run it after the spec changes instead of editing them by hand.