Datasource from external api

I will be getting my data from the api in the form of key value pair. How do I push it into grafana cloud, should I write a python code or something? or there is something inbuilt in grafana cloud itself?

Are you currently storing that information in a database? In general, there are three ways that you can get your data to Grafana Cloud Getting Started with Grafana Cloud | Grafana Labs so it just depends on where your data exists. Otherwise, maybe something like SimpleJson plugin for Grafana | Grafana Labs could be useful?