From version 24, Archicad has a new JSON Interface. It provides a way for external applications to automate ARCHICAD functions. It is a one-way communication from the external software to ARCHICAD.
The communication happens via HTTP using JSON messages.
GRAPHISOFT publishes an official Python binding for the ARCHICAD JSON Interface at the Python Package Index (PyPI). This package helps to establish the connection and hides the JSON communication layer.
When you are running a python script, the script sends JSON messages to Archicad and Archicad returns JSON responses back to the script via HTTP.
So the Python API is based on the JSON Interface. I recommend you to check the official documentation of the JSON Interface: https://archicadapi.graphisoft.com/JSON ... umentation
The names of the Python API functions are completely the same as the JSON command names.