Getting data from external source with REST

Hey all,

It has been some time since I have used Ignition and things have changed.

I am now trying log data from an web platform collecting data from wireless sensors in the field.

The 3rd party system generates the JSON text to get the data for a particular sensor but I am unsure how to integrate the data in Ignition.

Ideally I would like to have it in a tag.

curl --location --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{ 
	"apiKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
	"sn": "3000568345"

Any ideas?


You’ll probably want to use the httpPost() system function. - Ignition User Manual 8.1 - Ignition Documentation (

Not httpPost. Use httpClient.


Are those your real API key and such ?
You might want to hide them if that’s the case.

1 Like
client =
data = {
	"apiKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
	"sn": "3000568345"
}"", data=data)

This would be an exactly equivalent request to the CURL example above, though POST is probably not the verb I would expect to use to retrieve data.


Many thanks!

This worked straight away.