Skip to main content

solari-sdk

Python client for the SOLARI API — creator and brand intelligence across Instagram and TikTok. Standard library only; Python 3.9+.

pip install solari-sdk

Quickstart

from solari_sdk import Solari

solari = Solari()  # reads SOLARI_TOKEN; or Solari(token="...")

hits = solari.tools.catalog.instagram.account.search(query="nike", limit=3)
brand = solari.call("solari_insight_instagram_brand_overview", username="nike")
tools = solari.list_tools()

Get a token with solari auth token on a machine that is signed in to the solari CLI, or use a token you already hold from an MCP connector.

API

  • Solari(token=None, base_url="https://solari.sh", timeout=150, user_agent=None, transport=None)
  • list_tools() — every tool the signed-in account can call, with its JSON input schema.
  • get_tool(name) — one tool.
  • call(name, arguments=None, **kwargs) — run a tool and get its JSON payload back.
  • tools.<family>.<platform>.<group>.<name>(**kwargs) — the same call spelled as a path; segments join with _ under the solari_ prefix.
  • me() — the identity behind the token.

Errors raise SolariError with status, code, message, tool, retry_after_seconds, and a retryable property (429, 502, 503, 504).

Development

python3 -m unittest discover -s tests -v

Metadata

Release files for solari-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solari-sdk 0.1.0
File Size Uploaded
solari_sdk-0.1.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solari-sdk 0.1.0
File Interpreter ABI Platform
solari_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / solari_sdk-0.1.0.tar.gz

Download URL solari_sdk-0.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
10ad5c328ffb1db6226ec6797ea9684477b41ac3c051853eef0c808bff5524e9
BLAKE2b-256 checksum
How to use checksums
ec3b583c6d5a28c1d550c43466ca9d323a1f88f745148227812517e9fedd4705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / solari_sdk-0.1.0-py3-none-any.whl

Download URL solari_sdk-0.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f439699647acfd6135303e42a16d715aa824acec6e1dd3ddf4f23cced82160d7
BLAKE2b-256 checksum
How to use checksums
f95a9c2bfed286264ca9c57fee5f06e3db52c0bf3981d6c2ae1b985cd807b79a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

0.2.15

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page