# Python

Python integrations can use the standard library to call the REST interface without additional packages.

## One lookup

Construct a JSON body and submit it through HTTPS. The returned data contains independent source statuses; do not convert them into a single universal score.



```
import json
from urllib.request import Request, urlopen

payload = json.dumps({"value": "example.org"}).encode()
request = Request("https://www.codedeb.com/api/tools/domain-intelligence",
    data=payload, headers={"Content-Type": "application/json"}, method="POST")
with urlopen(request, timeout=10) as reply:
    print(json.load(reply)["domain"])
```

## Production integration

Include error handling, timeout budgets and a clear privacy policy. Use an asynchronous job outside the request path for large customer lists only after a supported batch service becomes available.

## Machine-readable contract

- Canonical chapter: https://www.codedeb.com/docs/verify/python
- Reference: https://www.codedeb.com/docs.md
- Documentation index: https://www.codedeb.com/llms.txt
- OpenAPI: https://www.codedeb.com/api/tools/domain-intelligence/openapi.json
