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
TypeScript / JavaScript SDK
The official npm SDK: typed monitor and task methods, batches, webhooks and error classes for Node and edge runtimes.
Hosted MCP Server
Give Claude, Cursor or any MCP client search and AI-answer tools in one line — no code, no infrastructure.
n8n Community Node
Drop AnswerLine into n8n workflows: run monitors, queue tasks and read credits as native nodes.
Zapier App
Trigger Zaps from AI answers: Run Monitor for quick calls, Create Task with a webhook callback for long-running engines.
LangChain Tools
Ready-made LangChain tools for JavaScript and Python: one monitor tool per engine, plus task and credit tools.