API for coders
License activation
Activate your license and get access to Pro and Business features with the instructions below.
Log in to see your API key
Log into PlotAPI.com to see your API key pre-populated in all code examples on this page.
Python
There are two options for license activation.
Environment-wide activation
Run the following code from within your Python environment.
This can be from a:
- Python script (
.py
) - Jupyter notebook (
.ipynb
) - Directly from the Python interpreter (
python
)
import plotapi
plotapi.api_key("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
Inline for every visualization
Run the following code, e.g. for Chord diagrams, before every visualization.
from plotapi import Chord
Chord.api_key("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
# Visualization code here
Rust
Supply your API key with every PlotAPI call, e.g. for Chord diagrams.
Visualisation {
api_key: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
params: param,
endpoint: "chord",
}
.to_html();