Asynchronous Python client for the unofficial CallApp API. Allows you to search phone number information.
Asynchronous requests (async/await) Automatic phone number normalization HTTP error and timeout handling Connection pooling support
pip install aiohttp
import asyncio from callapp_client import CallAppClient
async def main(): client = CallAppClient( my_phone="+79991234567", # your phone number token="YOUR_TOKEN", # CallApp token cvc="YOUR_CVC", # CVC key )
result = await client.search("+79998887766")
if result["ok"]:
print("Status:", result["status"])
print("Data:", result["data"])
else:
print("Error:", result)
if name == "main": asyncio.run(main())
{ "ok": false, "error": "timeout" }
or
{ "ok": false, "status": 403, "error": "http_error" }
Argument Type Description my_phone str Your phone number token str CallApp token cvc str CallApp CVC key timeout int Request timeout (default: 5 sec) max_connections int Max simultaneous connections