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.0.tar.gz (5.1 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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for biq_api-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a99ae87df7b327d22e870af044fc306ca9f7bc1caf41b9d39059ce4fe74f763b
MD5 2246cdffd17595db70a4f219bba27ce3
BLAKE2b-256 53bf7aef275f4fb13a5c1acde60a20a421600fdd03dec7e9f06ac9d64b5acd6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for biq_api-2.0.0.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.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

Hashes for biq_api-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4deebe34a5f457459ff4d4630a3abd73d5b41c9250ec4d04eea8abe4bfc98b8
MD5 19ef88ba350e2331cd254e2657f22344
BLAKE2b-256 3ce13d39d23842a289e7327241ad64b9a986c343fc9f11ceda7e70f898d3813b

See more details on using hashes here.

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

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