# InfluxDB using an API token(perspective)

**URL:** <https://forum.inductiveautomation.com/t/influxdb-using-an-api-token-perspective/68873>\
**Category:** Ignition\
**Tags:** database, scripting, perspective\
**Created:** [January 21, 2023, 9:12am UTC](https://forum.inductiveautomation.com/t/influxdb-using-an-api-token-perspective/68873 "2023-01-21T09:12:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishnapriya\_K\_S](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@Krishnapriya\_K\_S](https://forum.inductiveautomation.com/u/Krishnapriya_K_S)\
**Post date:** [January 21, 2023, 9:12am UTC](https://forum.inductiveautomation.com/t/influxdb-using-an-api-token-perspective/68873/1 "2023-01-21T09:12:36Z")

</div>

how to use the GET and POST methods in a script to process InfluxDB using an API token

---

<div class="post-metadata">

**Author:** ![plo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plo/32/33875_2.png) [@plo](https://forum.inductiveautomation.com/u/plo)\
**Post date:** [February 1, 2023, 11:36pm UTC](https://forum.inductiveautomation.com/t/influxdb-using-an-api-token-perspective/68873/2 "2023-02-01T23:36:41Z")

</div>

Hello Krishnapriya\_K\_S,

Are you wanting to use Ignition's http GET and POST calls to get information from your InfluxDB? Is that what you are asking?

If yes, I would recommend using the system.net.httpClient() function to script your GET and POST API calls. Details and examples can be found in the User Manual here.

[https://docs.inductiveautomation.com/display/DOC81/system.net.httpClient](https://docs.inductiveautomation.com/display/DOC81/system.net.httpClient)
