AnswerLine Sign in Start free

Integrations

Python SDK

The official PyPI SDK: monitor calls, async tasks and batches with the same response shapes as the REST API.

Install

pip install answerline

Example

import os
from answerline import Client

client = Client(os.environ["API_KEY"])
res = client.monitor.chatgpt(
    prompt="What are the best running shoes for flat feet?",
    country="US",
)
print(res["result"]["text"])

Mirrors the REST contract: client.monitor.chatgpt(...) is POST /v1/monitor/chatgpt, client.async_tasks.create(...) is POST /v1/async/task. Keyword arguments map one-to-one to request fields.

Works anywhere Python 3.9+ runs — cron jobs, notebooks, Airflow, serverless functions.

Other integrations