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

n8n-nodes-foreplay-api

v0.1.4

Published

n8n node for interacting with the Foreplay API

Downloads

89

Readme

n8n-nodes-foreplay-api

This is an n8n community node that lets you interact with the Foreplay API in your n8n workflows.

Foreplay is a creative intelligence platform that helps marketing teams discover, analyze, and organize winning ad creative from top brands across Facebook, Instagram, TikTok, and other platforms. With Foreplay, you can build comprehensive creative databases, track competitor strategies, and accelerate your creative development process.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

This node supports the following operations:

Library & Swipefile

  • Get Library Ads - Retrieve ads from your personal swipefile collection

Boards Management

  • Get All Boards - Retrieve all boards associated with your account
  • Get All Brands by Board ID - Retrieve all brands associated with a specific board
  • Get Ads by Board ID - Retrieve ads from a specific board with filtering options

Spyder (Brand Tracking)

  • Get Tracked Brands - Retrieve all brands you have access to in Spyder
  • Get Spyder Brand - Get detailed information for a specific tracked brand
  • Get Ads by Spyder Brand ID - Retrieve all ads for a specific brand in Spyder

Ad Discovery & Search

  • Search for Ads - Search and filter ads by various criteria including:
    • Keywords and text content
    • Ad formats and placements
    • Date ranges and performance metrics
    • Brand and industry filters
  • Get Ad Details - Retrieve detailed information for a specific ad by ID

Brand Discovery

  • Search for Brands by Name - Search and filter brands by name
  • Get Brands by Domain - Retrieve brands associated with a specific domain
  • Get Ads by Brand ID - Retrieve all ads for specific brand IDs with comprehensive filtering
  • Get Ads by Page ID - Retrieve ads associated with a specific page ID

Credentials

To use this node, you need to authenticate with the Foreplay API:

Prerequisites

  1. Sign up for a Foreplay account

Getting Your API Key

  1. Log into your Foreplay account
  2. Navigate to your API settings
  3. Unlock the API for free, and copy your API key
  4. For detailed instructions, refer to the API onboarding documentation

Authentication Setup

  1. In n8n, create new credentials of type "Foreplay API"
  2. Enter your API key in the "API Key" field
  3. The base URL is pre-configured to https://public.api.foreplay.co/api

Compatibility

  • Minimum n8n version: 1.0.0
  • Tested with n8n versions: 1.0.0+
  • Node.js version: 20.15+

Usage

Basic Examples

Search for Ads by Keyword:

  1. Select "Search for Ads" operation
  2. Configure search parameters (keywords, date range, etc.)
  3. The node returns matching ads with metadata

Get Your Library Ads:

  1. Select "Get Library Ads" operation
  2. The node returns all ads from your personal swipefile

Track Competitor Ads:

  1. Use "Get Tracked Brands" to see available brands
  2. Use "Get Ads by Spyder Brand ID" to retrieve competitor ads
  3. Filter by date ranges, ad formats, or performance metrics

Common Use Cases

  • Competitive Intelligence: Automate collection of competitor ad data
  • Creative Research: Build automated creative research workflows
  • Performance Monitoring: Track ad performance across different brands
  • Content Curation: Automatically organize and categorize creative assets
  • Reporting: Generate automated reports on creative trends and performance

Tips

  • Use filtering parameters to narrow down results and improve performance
  • Combine multiple operations to create comprehensive creative intelligence workflows
  • Set up scheduled workflows to automatically track competitor activities
  • Use the search operations with specific criteria to find exactly what you need

Resources