Skip to content

area information field

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

The code below gives an example of how to use the client to get area information field 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/field?access_token=" + vgClient.access_token +"<search criteria>"
response = requests.request("GET", url, headers={}, data={})
pandas.DataFrame(response.json()['area_information_fields'])

Search criteria fields

Field name Description Example
name Name of information field Befolkningsmängd
id ID of information field 1

Raw request

Get

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