Run the example
Download the complete MIT-licensed source or clone the public example repository. The archive includes the app, lockfile, example environment file, and tests. You need Node.js 22+ and pnpm 10.32.1.INFLUSHIP_API_KEY in .env.local using a key from the developer dashboard, then start the app:
http://localhost:3000, describe your campaign, and submit the form. The app displays up to five creators. Exporting a CSV reuses those results without another API call.
For the use-case explanation and a captioned walkthrough of a real API run, read the build guide.
Find the code
Start with the route handler when integrating search into an existing app. Reuse the mapping and CSV helpers if you already have a results UI. The SDK guide covers client setup and error classes; the API reference defines request and response fields.
This example runs on your local machine. Add your application’s authentication and per-user request and spending limits before hosting the search endpoint. The API key stays on the server.
The server-side search
The core request is:query accepts at most 500 characters. This example requires at least three characters and disables automatic retries so one submission does not silently repeat a search.
The browser submits the brief to the app’s /api/search route. That route reads INFLUSHIP_API_KEY, calls Influship, and returns only the fields the UI needs. Never put the key in a NEXT_PUBLIC_ variable.
What the app displays
An illustrative card using synthetic example data looks like this:
Errors and empty results
The app handles loading, empty results, missing server configuration, invalid keys, insufficient credits, permission failures, rate limits, and temporary failures. It preservesRetry-After when the API supplies it and waits for a new user submission rather than retrying automatically.
An empty response is a completed search with no candidates. Broaden the brief or remove constraints before submitting again. See Error Handling for API recovery rules.
Cost and verification
A search returning five creators costs 35 credits ($0.35): 25 credits per search plus two per delivered creator. Returning fewer creators costs less. CSV export costs nothing. See Pricing.Troubleshoot setup
For an API issue, contact support with the endpoint, status, and request ID when available. Keep the API key out of your report.
Extend the app
- Build a Creator Shortlist adds campaign scoring and profile expansion.
- Compare Creators for a Campaign scores creators you already know.
- Expand a Roster with Lookalikes finds creators similar to an existing roster.
- Export a Shortlist to CSV adds a standalone export script.