You can annotation data from API using Grafana’s annotations feature. To add annotation, select the infinity data source as your annotation source. You can create annotation from JSON, CSV, XML, GraphQL endpoints. Source of annotation can be inline or remote URL as well.
Make sure to select “Data Frame” as format.
To create annotations, you need to specify a time field and a string field. Make sure your query return at least these two fields.
Annotations is supported from plugin version 0.7.4