How to Use SociaVault with n8n: Complete Integration Guide
n8n is a powerful workflow automation tool that lets you connect APIs, databases, and services without writing much code.
Combined with SociaVault's social media data extraction API, you can build automated workflows for:
- Lead generation from social media
- Influencer discovery and tracking
- Competitor monitoring
- Content research and analysis
This guide shows you how to integrate SociaVault with n8n.
Prerequisites
- n8n account (cloud or self-hosted)
- SociaVault API key (free to start)
- Basic understanding of n8n workflows
Method 1: HTTP Request Node
The simplest way to use SociaVault in n8n is with the HTTP Request node.
Step 1: Add HTTP Request Node
- Create a new workflow in n8n
- Add an HTTP Request node
- Configure it as follows:
Settings:
- Method: POST
- URL:
https://api.sociavault.com/tiktok/profile - Authentication: Header Auth
- Header Name:
Authorization - Header Value:
Bearer YOUR_API_KEY
Step 2: Set Request Body
Under Body Parameters, select JSON and add:
{
"username": "{{ $json.username }}"
}
Or for a static username:
{
"username": "charlidamelio"
}
Step 3: Test the Node
Click Execute Node to test. You should see TikTok profile data in the output.
Method 2: Using Credentials (Recommended)
For reusable credentials across multiple workflows:
Step 1: Create API Credentials
- Go to Settings → Credentials
- Click Add Credential
- Select Header Auth
- Configure:
- Name: SociaVault API
- Header Name: Authorization
- Header Value: Bearer YOUR_API_KEY
Step 2: Use in Workflows
Now in any HTTP Request node, select Header Auth and choose your saved credential.
Example Workflows
Workflow 1: TikTok Profile to Google Sheets
Automatically save TikTok profile data to a Google Sheet.
Nodes:
- Schedule Trigger - Run daily
- Google Sheets - Read usernames from column A
- HTTP Request - Call SociaVault API for each username
- Google Sheets - Write results back
HTTP Request Config:
URL: https://api.sociavault.com/tiktok/profile
Method: POST
Body: { "username": "{{ $json.username }}" }
Workflow 2: Instagram Competitor Monitor
Track competitor Instagram accounts and alert on changes.
Nodes:
- Schedule Trigger - Run every 6 hours
- HTTP Request - Get competitor profile data
- IF Node - Check if followers changed significantly
- Slack - Send alert if threshold met
Workflow 3: Lead Enrichment
Enrich leads with social media data.
Nodes:
- Webhook - Receive new lead data
- HTTP Request - Get TikTok profile
- HTTP Request - Get Instagram profile
- Merge - Combine data
- Airtable/CRM - Update lead record
Available Endpoints
Use these SociaVault endpoints in your n8n workflows:
TikTok
POST /tiktok/profile- Get profile dataPOST /tiktok/videos- Get user videosPOST /tiktok/comments- Get video commentsPOST /tiktok/followers- Get follower listPOST /tiktok/search- Search users
POST /instagram/profile- Get profile dataPOST /instagram/posts- Get user postsPOST /instagram/reels- Get user reelsPOST /instagram/comments- Get post comments
YouTube
POST /youtube/channel- Get channel dataPOST /youtube/videos- Get channel videosPOST /youtube/comments- Get video comments
View all endpoints in our docs
Handling Pagination
Some endpoints return paginated results. Use the Loop Over Items node or SplitInBatches to process multiple pages:
// First request
{ "username": "creator", "cursor": "" }
// Next page
{ "username": "creator", "cursor": "{{ $json.nextCursor }}" }
Error Handling
Add error handling to your workflows:
- Error Trigger node catches failures
- Use IF node to check response status
- Add Wait node for rate limit handling
Example error check:
{{ $json.error }} is not empty → Handle Error
{{ $json.error }} is empty → Continue
Rate Limits
SociaVault has generous rate limits, but for large workflows:
- Use SplitInBatches node (50 items per batch)
- Add Wait node (1 second between batches)
- Process in parallel where possible
Cost Optimization
Each SociaVault API call costs 1 credit. Optimize your workflows:
- Cache results - Store in Google Sheets/Airtable, only refresh when needed
- Conditional calls - Use IF nodes to skip unnecessary API calls
- Batch processing - Some endpoints support multiple items per request
Complete Example: Influencer Database Builder
Here's a complete workflow that builds an influencer database:
Trigger: Manual or Schedule
Steps:
- Read seed usernames from Google Sheets
- For each username, call SociaVault TikTok profile API
- Filter profiles with 10K+ followers
- Get recent videos for qualified profiles
- Calculate engagement rate
- Save to Airtable with all metrics
Estimated cost: ~2 credits per influencer (profile + videos)
Debugging Tips
- Use Console Log - Add Code nodes to log data
- Test incrementally - Test each node before connecting
- Check API response - Verify the response structure matches your expectations
- Monitor credits - Check your SociaVault dashboard for usage
Next Steps
Need help? Join our Discord community or email support@sociavault.com.
Found this helpful?
Share it with others who might benefit
Ready to Try SociaVault?
Start extracting social media data with our powerful API. No credit card required.