.. _api:
API (Restfull/JSON) documentation
=================================
The Glances Restfull/API server could be ran using the following command line:
.. code-block:: bash
# glances -w --disable-webui
Note: Change request URL api/3 by api/2 if you use Glances 2.x.
GET Plugins list
----------------
Example::
# curl http://localhost:61208/api/3/pluginslist
['alert',
'amps',
'cloud',
'connections',
'core',
'cpu',
'diskio',
'docker',
'folders',
'fs',
'gpu',
'help',
'ip',
'irq',
'load',
'mem',
'memswap',
'network',
'now',
'percpu',
'ports',
'processcount',
'processlist',
'psutilversion',
'quicklook',
'raid',
'sensors',
'smart',
'system',
'uptime',
'wifi']
GET alert
---------
.. code-block:: json
# curl http://localhost:61208/api/3/alert
[[1626506953.0,
-1,
'WARNING',
'MEM',
73.75089692241458,
73.75089692241458,
73.75089692241458,
73.75089692241458,
1,
[],
'',
'memory_percent']]
GET amps
--------
.. code-block:: json
# curl http://localhost:61208/api/3/amps
[{'count': 0,
'countmax': None,
<