influship package for typed JavaScript and TypeScript requests. For other languages, call the REST API with your HTTP client.
Browse the SDK on npm or GitHub. For complete apps and runnable workflows, see the cookbook.
Install the SDK
- npm
- yarn
- pnpm
- bun
Configure a server-side client
SetINFLUSHIP_API_KEY in your server environment:
INFLUSHIP_API_KEY automatically. You can also pass apiKey explicitly. Keep the client in a server action, route handler, backend service, or CLI; keep the key out of browser bundles and version control.
Each result contains creator, profile summaries, and match. Follow the Quickstart to use a returned creator ID in a second request, or run the creator research app.
Handle typed errors
The SDK retries some failures twice by default. The example setsmaxRetries: 0 so your application controls retry behavior.
429, 500, and temporary 503 responses, use bounded retries with a total deadline and honor Retry-After. For 402, check billing before sending another request. For 502 upstream_contract_broken, stop automatic retries; a source query or validation failure does not confirm account deletion. Use available cached data and contact support if the issue persists. The Error Handling guide includes the complete policy and a retry example.
When merging live Instagram profile responses, treat bio_links as available valid links. Recovery excludes unusable source entries; an empty array or external_url: null does not establish that a creator removed their website. Preserve previously known website data when the new response provides no usable link. See Instagram profile metadata.
Call REST from Python
Installrequests, then read the same server-side environment variable:
Continue with your workflow
Set up with a coding agent
Set up with a coding agent
Install the Influship SDK using this project's existing conventions.