cURL Examples
Ready-to-use cURL commands for testing the Influship API from the command line.Setup
Environment Variables
Set your API key as an environment variable:.env file and source it:
Basic Commands
1. Health Check
Test if the API is working:2. Test Authentication
Test without API key to see authentication error:Search Examples
3. Basic Creator Search
4. Advanced Search with Filters
5. Search with Pagination
Creator Enrichment Examples
6. Get Multiple Creators by ID (Lite Mode)
7. Get Multiple Creators by ID (Detailed Mode)
8. Get Multiple Platform Profiles by Username
Post Analysis Examples
10. Analyze Post by URL
11. Analyze Post by ID
Lookalike Search Examples
12. Find Similar Creators
13. Lookalike with Multiple Seeds
Match Scoring Examples
14. Score Creators for Campaign
Job Management Examples
15. List Jobs
16. Get Job Status
17. Cancel Job
Canonical Endpoint Examples
18. Get Multiple Creators with Emails
19. Get Multiple Platform Profiles
Error Handling Examples
20. Handle Rate Limiting
21. Verbose Output for Debugging
22. Save Response to File
Testing Scripts
23. Simple Test Script
Create a test script to verify your API key:24. Batch Testing Script
Tips and Best Practices
Use jq for JSON Formatting
Installjq for better JSON output:
Handle Rate Limits
Use Aliases for Common Commands
Add to your~/.bashrc or ~/.zshrc:
Related Examples
- JavaScript Examples - Node.js and browser examples
- Python Examples - Python SDK examples
- Authentication Guide - API key setup and security
- Error Handling Guide - Comprehensive error handling