I am trying to read from an API data on component setups. Basically the communication with the API works. However, I noticed that not all values I expect are loaded.
There should be 52 components (https://lignumdata.ch/?page=bauteil&bauteilgruppe=decke) in the list, but I get back only 13.
API = https://lignumdata.ch/api/
what am I doing wrong?
import json
import urllib.request
import urllib.parse
import urllib
def main():
URL = 'https://lignumdata.ch/api/v1.cfc?method=getBauteil&compatMode=true&condition={"type":"decke","bauteiltyp":["Rippen", "Balken"]}'
request_url = URL.replace(" ", "")
print('url', request_url)
response = urllib.request.urlopen(request_url)
data = json.loads(response.read())
#print('url', data[0])
for output_loads in data:
print(output_loads['laufnummer'])
return
if __name__ == '__main__':
main()