Skip to content

area information tag

robert-valueguard edited this page Aug 15, 2022 · 12 revisions

The code below gives an example of how to use the client to get area information tag data

import valueguard
import requests
import pandas

api_host="<api_host>"

vgClient = valueguard.Client()
vgClient.server_url = api_host
vgClient.authenticate("<username>", "<password>")

vgClient.access_token

url = api_host + "/v1/area/information/tag?access_token=" + vgClient.access_token +"<search_criteria>"
response = requests.request("GET", url, headers={}, data={})
pandas.DataFrame(response.json()['area_information_tags'])

Search criteria fields

Field name Description Example
name Name of the information tag Befolkningsstatistik
id ID of the information tag 2
product Boolean of ??? False

Raw request

Get

curl https://api.valueguard.se/v1/area/information/tag?access_token={access_token}&id={id}
Clone this wiki locally