Skip to main content

Foxcite Python SDK

PyPI version License: MIT

The official Python client library for the Foxcite API. Foxcite is an Answer Engine Optimization (AEO) and ai search visibility tool that helps modern agencies and brands track their presence across major LLMs (ChatGPT, Claude, Gemini, Grok, and Perplexity).

Features

  • Fully Typed: Exposes fully typed Pydantic v2 schemas for all requests and responses.
  • Sync & Async Support: Native support for both synchronous (requests) and asynchronous (httpx) execution.
  • High Concurrency Ready: Built-in connection pooling and socket management designed for high-throughput AI agent loops.

Installation

pip install foxcite-sdk

Quick Start

You can generate an API Key from your Foxcite Dashboard.

Synchronous Client

from foxcite import Foxcite

# The client uses a context manager to gracefully handle connection pools
with Foxcite(api_key="seomd_live_...") as client:
    # List brand workspaces
    brands = client.brands.list()
    print("Brands:", [b.name for b in brands])

    # Execute a quick AEO audit
    audit = client.audits.quick_audit(
        name="My Brand",
        domain="mybrand.com",
        niche="SaaS Analytics",
        query="best saas analytics tools"
    )
    print("Quick Audit Scan ID:", audit.scan_id)

Asynchronous Client

import asyncio
from foxcite import AsyncFoxcite

async def main():
    async with AsyncFoxcite(api_key="seomd_live_...") as client:
        brands = await client.brands.list()
        print("Brands:", [b.name for b in brands])

if __name__ == "__main__":
    asyncio.run(main())

Developer Notes: Connection Pooling

Under the hood, the Python SDK manages persistent TCP connections.

  • The synchronous Foxcite client utilizes a requests.Session().
  • The asynchronous AsyncFoxcite client utilizes an httpx.AsyncClient().

Always use the client within a with or async with context manager to ensure sockets are properly released, preventing file descriptor leaks during high-concurrency background tasks.

Contributing

  1. Clone the repository.
  2. Create a virtual environment: python3 -m venv .venv && source .venv/bin/activate
  3. Install dependencies: pip install -e .
  4. Run tests: pytest tests/

Resources

Metadata

Release files for foxcite-sdk 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foxcite-sdk 1.0.3
File Size Uploaded
foxcite_sdk-1.0.3.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for foxcite-sdk 1.0.3
File Interpreter ABI Platform
foxcite_sdk-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 kB

Release files / foxcite_sdk-1.0.3.tar.gz

Download URL foxcite_sdk-1.0.3.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
80766067c0f3d7c0d2b9bfde5a29c29f511d5acc9a27af5871bee7f5a4a14649
BLAKE2b-256 checksum
How to use checksums
63fae89f88b5bd5ef977cd271bfc98490bd17a649bc39aff2a5bf2d05a26fbd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / foxcite_sdk-1.0.3-py3-none-any.whl

Download URL foxcite_sdk-1.0.3-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ad2bf37a38896b9fb0d249769b41ee1b8add6affe797e8f9d761965ce9eb30e
BLAKE2b-256 checksum
How to use checksums
66bda7d87dd1f1e773b5a997ee3e2725a85df97c9f27ccc80dc92a8b12f97f3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page