LoginSignup
0
0

More than 1 year has passed since last update.

uPlaceの都道府県別登録数

Last updated at Posted at 2021-09-30

Script

#!/bin/bash                                                                                                                                                                                 

echo "pref_code resultCount"
for i in $(seq -w 1 47); do
  echo -n ${i}" "
  curl -s "https://ucopendb.gsi.go.jp/ucode/api/search.json?pref_code=${i}"|jq .resultCount
done

Result

pref_code resultCount
01 899
02 574
03 596
04 480
05 324
06 235
07 2338
08 842
09 519
10 323
11 235
12 244
13 10015
14 3732
15 665
16 428
17 158
18 1089
19 139
20 752
21 422
22 1259
23 661
24 449
25 222
26 133
27 149
28 1192
29 352
30 262
31 294
32 632
33 915
34 1144
35 304
36 280
37 270
38 505
39 254
40 556
41 976
42 252
43 212
44 211
45 153
46 580
47 142
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/18613/b0de0a8b-5b9d-ff25-a25b-8954e383fb3c.png)
1   北海道   899
2   青森県   574
3   岩手県   596
4   宮城県   480
5   秋田県   324
6   山形県   235
7   福島県   2338
8   茨城県   842
9   栃木県   519
10  群馬県   323
11  埼玉県   235
12  千葉県   244
13  東京都   10015
14  神奈川県    3732
15  新潟県   665
16  富山県   428
17  石川県   158
18  福井県   1089
19  山梨県   139
20  長野県   752
21  岐阜県   422
22  静岡県   1259
23  愛知県   661
24  三重県   449
25  滋賀県   222
26  京都府   133
27  大阪府   149
28  兵庫県   1192
29  奈良県   352
30  和歌山県    262
31  鳥取県   294
32  島根県   632
33  岡山県   915
34  広島県   1144
35  山口県   304
36  徳島県   280
37  香川県   270
38  愛媛県   505
39  高知県   254
40  福岡県   556
41  佐賀県   976
42  長崎県   252
43  熊本県   212
44  大分県   211
45  宮崎県   153
46  鹿児島県    580
47  沖縄県   142
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0