๐Ÿ“Š Pinterest keyword-based content scraper with AI agent & BrightData automation

โšก 2,136 views ยท ๐Ÿ“Š Market Research & Insights

๐Ÿ’ก Pro Tip โ€” HTTP Request scraping tends to break when sites update their markup. If youโ€™re scraping a major platform, check if ScraperNode covers it โ€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Pinterest Keyword-Based Content Scraper with AI Agent & BrightData Automation

Overview

This n8n workflow automates Pinterest content scraping based on user-provided keywords using BrightDataโ€™s API and Claude Sonnet 4 AI agent. The system intelligently processes keywords, initiates scraping jobs, monitors progress, and formats the extracted data into structured outputs.

Architecture Components

๐Ÿง  AI-Powered Controller

๐Ÿ“ฅ Data Input

๐Ÿš€ Scraping Pipeline

  1. Launch Scraping Job: Sends keywords to BrightData API
  2. Status Monitoring: Continuously checks scraping progress
  3. Data Retrieval: Downloads completed scraped content
  4. Data Processing: Formats and structures the raw data
  5. Storage: Saves results to Google Sheets

Workflow Nodes

1. Pinterest Keyword Input

2. Anthropic Chat Model

3. Keyword-based Scraping Agent

4. BrightData Pinterest Scraping

5. Check Scraping Status

6. Fetch Pinterest Snapshot Data

7. Format & Extract Pinterest Content

8. Save Pinterest Data to Google Sheets

9. Wait for 1 Minute (Disabled)

Setup Requirements

Required Credentials

  1. Anthropic API

    • Credential ID: ANTHROPIC_CREDENTIAL_ID
    • Required for Claude Sonnet 4 access
  2. BrightData API

    • API Key: BRIGHT_DATA_API_KEY
    • Required for Pinterest scraping service
  3. Google Sheets OAuth2

    • Credential ID: GOOGLE_SHEETS_CREDENTIAL_ID
    • Required for data storage

Configuration Placeholders

Replace the following placeholders with actual values:

Data Flow

User Input (Keywords) 
    โ†“
AI Agent Processing (Claude)
    โ†“
BrightData Scraping Job Creation
    โ†“
Status Monitoring Loop
    โ†“
Data Retrieval (when ready)
    โ†“
Content Formatting & Extraction
    โ†“
Google Sheets Storage

Output Data Structure

Each scraped Pinterest pin contains:

Usage Instructions

  1. Initial Setup:

    • Configure all required API credentials
    • Replace placeholder values with actual IDs
    • Create target Google Sheets document
  2. Running the Workflow:

    • Access the form trigger URL
    • Enter desired Pinterest keywords
    • Submit the form to initiate scraping
  3. Monitoring Progress:

    • The AI agent will automatically handle status monitoring
    • No manual intervention required during scraping
  4. Accessing Results:

    • Structured data will be automatically saved to Google Sheets
    • Each run appends new data to existing sheet

Technical Notes

Customization Options

Sample Google Sheets Template

Create a copy of the sample sheet structure:

https://docs.google.com/spreadsheets/d/SAMPLE_SHEET_ID/edit

Required columns:

Troubleshooting

For any questions or support, please contact: Email or fill out this form

๐Ÿ”— Nodes Used

Google Sheets, AI Agent, Anthropic Chat Model, Code Tool, n8n Form Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup