Official Python SDK for BabiesIQ API
Project description
biq-api · Python SDK
Official Python SDK for the BabiesIQ API.
Installation
pip install biq-api
Manual Download
You can also clone or download this SDK directly from GitHub:
→ https://github.com/BabiesIQ/_metaAPI/tree/main/sdk/python
# Clone just the SDK folder (sparse checkout)
git clone --filter=blob:none --sparse https://github.com/BabiesIQ/_metaAPI.git
cd web
git sparse-checkout set sdk/python
Quick Start
from biq_api import BabiesIQ, _metadata
# ── SDK info ───────────────────────────────
print(_metadata["name"]) # biq-api
print(_metadata["version"]) # 2.0.0
print(_metadata["docs"]) # https://babiesiq.tech/docs
# ── Create client ──────────────────────────
client = BabiesIQ(api_key="biq_YOUR_KEY")
# ── Songs ──────────────────────────────────
song = client.songs.search("Shape of You")
print(song.stream_url)
# ── Videos ─────────────────────────────────
video = client.videos.search("Big Buck Bunny")
print(video.stream_url)
# ── Cross-search ────────────────────────────
results = client.search.query("Ed Sheeran")
for r in results:
print(r.type, r.title)
API Reference
client.songs.search(query, eq=None, download=False)
Search for an audio stream.
song = client.songs.search("Never Gonna Give You Up", eq="bass_boost")
print(song.stream_url)
print(song.title)
print(song.duration)
client.videos.search(query, download=False)
Search for a video stream.
video = client.videos.search("Gangnam Style")
print(video.stream_url)
print(video.quality)
client.search.query(query)
Search across songs and videos.
results = client.search.query("Taylor Swift")
client.thumbnails.get(video_id, design=None)
Fetch a YouTube thumbnail.
thumb = client.thumbnails.get("dQw4w9WgXcQ")
print(thumb.url)
Error Handling
from biq_api import BabiesIQ
from biq_api.errors import AuthError, RateLimitError, BabiesIQError
client = BabiesIQ(api_key="biq_YOUR_KEY")
try:
song = client.songs.search("test")
except RateLimitError:
print("Rate limited — please slow down")
except AuthError:
print("Invalid API key")
except BabiesIQError as e:
print(f"API error: {e.message} (HTTP {e.status})")
Links
| Resource | URL |
|---|---|
| API Docs | https://babiesiq.tech/docs |
| PyPI | https://pypi.org/project/biq-api/ |
| Source | https://github.com/BabiesIQ/_metaAPI/tree/main/sdk/python |
| Dashboard | https://babiesiq.tech/panel/api-keys |
License
MIT — © BabiesIQ Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biq_api-2.0.0.tar.gz.
File metadata
- Download URL: biq_api-2.0.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99ae87df7b327d22e870af044fc306ca9f7bc1caf41b9d39059ce4fe74f763b
|
|
| MD5 |
2246cdffd17595db70a4f219bba27ce3
|
|
| BLAKE2b-256 |
53bf7aef275f4fb13a5c1acde60a20a421600fdd03dec7e9f06ac9d64b5acd6d
|
Provenance
The following attestation bundles were made for biq_api-2.0.0.tar.gz:
Publisher:
publish-python-sdk.yml on BabiesIQ/_metaAPI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
biq_api-2.0.0.tar.gz -
Subject digest:
a99ae87df7b327d22e870af044fc306ca9f7bc1caf41b9d39059ce4fe74f763b - Sigstore transparency entry: 2015980733
- Sigstore integration time:
-
Permalink:
BabiesIQ/_metaAPI@1987a22bf00549a6ed4cb516ae5daca2305d3093 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BabiesIQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@1987a22bf00549a6ed4cb516ae5daca2305d3093 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file biq_api-2.0.0-py3-none-any.whl.
File metadata
- Download URL: biq_api-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4deebe34a5f457459ff4d4630a3abd73d5b41c9250ec4d04eea8abe4bfc98b8
|
|
| MD5 |
19ef88ba350e2331cd254e2657f22344
|
|
| BLAKE2b-256 |
3ce13d39d23842a289e7327241ad64b9a986c343fc9f11ceda7e70f898d3813b
|
Provenance
The following attestation bundles were made for biq_api-2.0.0-py3-none-any.whl:
Publisher:
publish-python-sdk.yml on BabiesIQ/_metaAPI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
biq_api-2.0.0-py3-none-any.whl -
Subject digest:
f4deebe34a5f457459ff4d4630a3abd73d5b41c9250ec4d04eea8abe4bfc98b8 - Sigstore transparency entry: 2015980802
- Sigstore integration time:
-
Permalink:
BabiesIQ/_metaAPI@1987a22bf00549a6ed4cb516ae5daca2305d3093 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BabiesIQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@1987a22bf00549a6ed4cb516ae5daca2305d3093 -
Trigger Event:
workflow_dispatch
-
Statement type: