Skip to main content

Async Python client for the Urchin (Coral) API — Hypixel blacklist and session statistics.

Project description

urchin-api

Async Python client for the Urchin (Coral) API — a community-maintained player blacklist and stat tracking service for Hypixel.

Installation

pip install urchin-api

Requires Python 3.10+.

Getting an API key

Use the /dashboard command in the official Urchin Discord.

Usage

import asyncio
from urchin import UrchinClient

async def main():
    async with UrchinClient(api_key="YOUR_KEY") as client:

        # Single player tag lookup
        tags = await client.get_tags("PlayerName")
        for tag in tags:
            print(f"[{tag.tag_type}] {tag.reason}")

        # Session stats
        stats = await client.get_session("PlayerName", duration="24h")
        if stats.delta:
            print(f"Changes since {stats.since_readable} - {stats.delta}")

        # Batch tag lookup
        lobby = await client.batch_get_tags("UUID1", "UUID2", "UUID3")
        for uuid, tags in lobby.items():
            if tags:
                print(f"⚠ {uuid} is tagged - {tags[0].tag_type}!")

asyncio.run(main())

Exceptions

Exception When
AuthError Invalid or missing API key (401/403)
NotFoundError Player or resource not found (404)
RateLimitError Too many requests (429) — has .retry_after
ServerError Server-side failure (5xx) — has .status
UrchinError Base class for all of the above

License

MIT

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

urchin_api-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

urchin_api-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file urchin_api-0.1.0.tar.gz.

File metadata

  • Download URL: urchin_api-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for urchin_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67aa91c1f608033e36ba749bfd44803f43a0de97ffff481184ffe331f6380e61
MD5 6bf63f74906769d0bfe492f0a339fc26
BLAKE2b-256 d53dd9fd711e6639b25ac4fbf6bc43a118aa078c11c32647a257c39de6427693

See more details on using hashes here.

File details

Details for the file urchin_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: urchin_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for urchin_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74eab81c94c8055ba6784633eb2e0df99c9038d4fc1b93237e19ddc55cc78bc2
MD5 198463734bfdfd94be1f17f9f4b7e518
BLAKE2b-256 6864c4c81722752e4eaddc96778e8708bde9ac6af6ea45d1f8cdac01c0dc6f0a

See more details on using hashes here.

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