Skip to content

Instantly share code, notes, and snippets.

@hackenbruder
Last active April 17, 2017 04:46
Show Gist options
  • Save hackenbruder/7e6590122e4bbe7f77a8 to your computer and use it in GitHub Desktop.
Save hackenbruder/7e6590122e4bbe7f77a8 to your computer and use it in GitHub Desktop.
govdata v1 json entity response
{
"number":"00006947",
"address":{
"geo":{
"coords":[
50.08915042002743,
14.407195183397297
],
"status":210
},
"status":300,
"ruian":{
"formatted":[
"Letenská 525/15",
"Malá Strana",
"11800 Praha 1"
],
"status":210,
"data":{
"wgs84_lat":50.08915042002743,
"street":"Letenská",
"city":"Praha",
"district_code":490121,
"number2":15,
"wgs84_lon":14.407195183397297,
"updated_at":1386720000,
"number1":525,
"address_id":21700184,
"number_type":"č.p.",
"postal_code":11800,
"city_area1":"Praha 1",
"city_area2":"Praha 1",
"city_code":554782,
"district":"Malá Strana",
"sjtsk_y":743781,
"sjtsk_x":1042690
}
}
},
"name":"Ministerstvo financí",
"legal_type_id":"325",
"registers":{
"vat":true,
"agriculture":true,
"subsidies":true,
"statistical":true,
"healthcare":true,
"aris":true
},
"vat":{
"updated_at":1444684207598,
"accounts":[
{
"account_number":"3328001",
"bank_code":"0710",
"published_at":1365638400000
},
{
"account_number":"3328001",
"prefix":"19",
"bank_code":"0710",
"published_at":1364860800000
},
{
"account_number":"3328001",
"prefix":"27",
"bank_code":"0710",
"published_at":1364860800000
}
],
"unreliable":false,
"tax_office_id":"451",
"dic":"00006947"
},
"mailboxes":[
{
"public_msgs":true,
"premium_msgs":false,
"id":"xzeaauv",
"master":true
},
{
"public_msgs":true,
"premium_msgs":false,
"id":"meiq7wd",
"master":false
}
],
"founded_at":577584000000
}
#perform CURL request to get above response
curl -H 'X-Api-Key: ZX1Ap4RUDY2VisBOu2P0e4sEvh2LhWh4Cx8lqoO6' 'https://api.govdata.cz/v1/demo/entity/00006947'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment