Predicta
Search
Docs
Ctrl KPredicta SearchGet an API key
Get started

Python library

predictasearch is our Python package: one method per route, sending your key and returning what the API returns.

Install

Terminal
pip install predictasearch

It needs Python 3.11 or later.

Methods and routes

MethodRouteReturns
search_by_email, search_by_phone, search_by_name, search_by_usernamePOST /api/searchThe JSON body
get_supported_networks()GET /api/networksThe JSON body

The package adds no logic of its own: the status codes and the errors are the ones described in this reference.

Usage

The package page shows how to use each method and handle the errors: pypi.org/project/predictasearch. The source is on GitHub.