Anomify API Documentation
Anomify AI Main Site | Anomify Documentation
This copy of our API documentation is no longer updated and may be inaccurate. Please go to

















/login DEBUG 100

/login DEBUG 100

/login DEBUG 1069

/login DEBUG 1069































Method: /metric/{metric_name}/graph


This method is not available to demo user accounts.

Return a graph in either PNG or JSON format as requested.


Key Required Example Description
from yes 1593696120 Timestamp
until yes 1594301179 Timestamp - defaults to current time if not provided)
display_anomalies no true or false Whether to show anomalies (defaults to false if not provided)
display_matches no true,false Whether to show matches (defaults to false if not provided)
display_x_axis no above,below,both,neither Whether and where to display a x-axis (default to "below" if not provided)
display_y_axis no left,right,both,neither Whether and where to display a y-axis (default to "right" if not provided)
display_legend no true,false Whether to display a legend (default to true if not provided)
anomaly_id no 12345 An optional anomaly to highlight
context no string An optional indicator which can affect the type of graph returned
match_id no 67890 An optional match to highlight
format no json,png Preferred output format
width no number An optional integer from 1 upwards. Does not apply to JSON output.
height no number An optional integer from 1 upwards. Does not apply to JSON output.
aspect_ratio no number An optional integer from 1 upwards, defaults to "2" if not set

Note that any combination of two items from width, height, aspect_ratio can be provided, and the third will be calculated. If all three are provided, width and height will be used, the aspect_ratio will be re-calculated from those.

The metric name is specified in the URL, e.g.


Example JSON Output

Note that this method can also return a PNG image.

    "status": { ... see /login method for status block structure ... },
    "data": {
        "bokehjson": "{ ... }"

Live Request

URL: /metric//graph

You need to be logged in to your Anomify account to to make live API requests.

Please log in here or sign up to Anomify


Live request results will appear here.