Skip to main content

Official Python SDK for BabiesIQ API

Project description

biq-api · Python SDK

Official Python SDK for the BabiesIQ API.

PyPI Python License: MIT


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biq_api-2.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biq_api-2.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file biq_api-2.0.1.tar.gz.

File metadata

  • Download URL: biq_api-2.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for biq_api-2.0.1.tar.gz
Algorithm Hash digest
SHA256 64449855855aa821cc741141c284171a41481c329ed376915a03d5e53d382c09
MD5 1286b24954a8f32d5a7b93329b1e1086
BLAKE2b-256 02dfade202f96d53dabe19fe4c66247c982390fdb36586995a59fe9d814eadb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for biq_api-2.0.1.tar.gz:

Publisher: publish-python-sdk.yml on BabiesIQ/_metaAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biq_api-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: biq_api-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for biq_api-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bcd7707f306d50ba35accfdc5fd024d911f9613e84f5fe473fb9f1a6957d72f
MD5 5f42a660c598d3557dd1af84dc4f5102
BLAKE2b-256 0a3f31069bc2e5cde43aea08fdb65b94fd37da10a1bbc3674910cb26e429d0b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for biq_api-2.0.1-py3-none-any.whl:

Publisher: publish-python-sdk.yml on BabiesIQ/_metaAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page