SDKs
The official SFW API clients: @sfwapi/sdk on npm, sfwapi on pip and SfwApi on NuGet. Each page has the install line, a first request and the method list.
Updated on · View as Markdown
There is an official client for TypeScript, Python and .NET. Each one calls the analyze endpoint and retries 429, 503 and 504 twice, honouring Retry-After. Uploads are not retried.
- TypeScript SDK:
npm install @sfwapi/sdk. Runs on Node 18+, Bun, Deno and edge runtimes, and exports the policy evaluator the API uses. - Python SDK:
pip install sfwapi. Sync and async clients on httpx with the same methods. - .NET SDK:
dotnet add package SfwApi. Targets .NET 8 and .NET Standard 2.0, with typed results and typed errors.
Any other language works with plain HTTPS and a bearer key. The quickstart shows the request with curl.