socialfi-api — the SocialFi API for any app (Python)
socialfi-api adds a social layer to any crypto app: login with X, wallets verified by a tiny on-chain payment, reviewed KOL badges, live trades and PnL of your users, leaderboards and copy trading — on Solana, BNB Chain, Base, Ethereum and Robinhood Chain. Sync and async.
Part of CabalSpy ID — the SocialFi layer for crypto apps. Website · Docs · API dashboard · Full SDK: cabalspy-id
pip install socialfi-api # live trade stream: pip install "socialfi-api[stream]"
from socialfi_api import CabalSpyID, CabalSpyIDAuth, verify_webhook
auth = CabalSpyIDAuth("csid_...", client_secret=os.environ["CSID_CLIENT_SECRET"], redirect_uri="https://your.app/callback")
req = auth.create_authorization_url(scope=["openid", "profile", "wallets"])
csid = CabalSpyID() # reads CABALSPY_ID_API_KEY / CABALSPY_API_KEY
board = csid.leaderboard(blockchain="solana", period="7d", sort="pnl_usd")
Contents: CabalSpyID / AsyncCabalSpyID (Data API), CabalSpyIDStream, CabalSpyIDAuth (OIDC), verify_webhook, errors and response types — the cabalspy_id.api module. Full reference: cabalspy-id README.
White-label
Keep your own login: import your users and the wallets they already have, by your own user id, and use their trades, PnL, leaderboards and trading competitions. See the White-Label docs.
csid.bulk_import_platform_users(users) # any number, chunked and retried
board = csid.platform_leaderboard(blockchain="solana", period="7d", sort="pnl_usd")
comp = csid.create_competition(name="Weekly PnL", chain="solana", metric="pnl_usd", duration_hours=168)
Versions follow cabalspy-id: 0.6.0 depends on cabalspy-id 0.6.0. This package contains no code of its own — it re-exports part of cabalspy-id, so behaviour, fixes and types are always the same.
License
MIT
Metadata
Release files for socialfi-api 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| socialfi_api-0.6.0.tar.gz | 3.9 kB | With provenance | Details for socialfi_api-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| socialfi_api-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for socialfi_api-0.6.0-py3-none-any.whl |
Total release size: 8.0 kB
Security for socialfi-api 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release files / socialfi_api-0.6.0.tar.gz
How to use checksums
98041119f73308f09a6386478c25951af5a69895e32df8330bcb0c4661849153How to use checksums
97d623d168e6bc714ad53ebee8b2f47215245236cb408b38c05423dfde6bdff5What is trusted publishing?
twine/7.0.0 CPython/3.13.16Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logIdentity
Workflow
Artifact
socialfi_api-0.6.0.tar.gz98041119f73308f09a6386478c25951af5a69895e32df8330bcb0c4661849153Verifying attestations