Get InfluxDB values from API output

I’m using an InfluxDB database that stores COVID19 cases from different cities. With this I am using an rest api that gets the website user city. How could I get the historical cases in the database from the output of the API?

Example: user city is Texas, I net to get the Texas historical Covid cases from the database.

Hello @leonardoks16,
Welcome!