RESAS

はじめに
RESAS-API一覧
共通
人口マップ
産業構造マップ
企業活動マップ
観光マップ
まちづくりマップ
雇用/医療・福祉マップ
地方財政マップ

指定地域への国籍別訪問者数

地域単位、年単位の外国人訪問者数を返します。

GET  api/v1/tourism/foreigners/forFrom

parameters

Name Description Required
year

年度

指定可能年度:2011-2016年

※2011年は1-3月期のみ指定不可

※2016年は1-3月期のみ指定可能

true
prefCode 都道府県コード true
purpose

訪日目的

1:すべての目的

2:観光・レジャー目的

true
addArea

追加エリアコード

他地域と合算した値を取得する際に使用するパラメータです。 「addArea=都道府県コード_市区町村コード」の形式で指定します。 複数指定する場合は「addArea=1_,13_13101」などのように、「,」 で各地域のパラメータを区切ります。 最大10個指定でき、11個以上送られてきた場合はステータスコード400を返します。

responses

Name Description
/result/year 年度
/result/quarter 四半期
/result/prefCode 対象の県コード
/result/prefName 対象の県名
/result/purpose 訪日目的
/result/changes/countryCode 国コード
/result/changes/countryName 国名
/result/changes/data/year
/result/changes/data/quater 四半期
/result/changes/data/value 訪問者数(人)

sample

GET https://opendata.resas-portal.go.jp/api/v1/tourism/foreigners/forFrom?purpose=1&year=2012&prefCode=11
{
    "message": null,
    "result": {
        "year": 2012,
        "prefCode": "11",
        "prefName": "埼玉県",
        "purpose": 1,
        "changes": [{
            "countryCode": "103",
            "countryName": "大韓民国",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 2566
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 9563
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 7454
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 9710
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 8690
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 14877
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 11796
            }]
        }, {
            "countryCode": "105",
            "countryName": "中華人民共和国",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 7098
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 4160
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 4576
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 4544
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 9035
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 10938
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 5316
            }]
        }, {
            "countryCode": "106",
            "countryName": "台湾",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 3238
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 4394
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 3476
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 4352
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 5079
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 7929
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 6909
            }]
        }, {
            "countryCode": "108",
            "countryName": "香港",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 280
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 1611
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 613
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 234
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 534
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 1221
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 1505
            }]
        }, {
            "countryCode": "111",
            "countryName": "タイ",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 1696
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 1579
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 1482
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 1804
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 3269
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 2247
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 3643
            }]
        }, {
            "countryCode": "112",
            "countryName": "シンガポール",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 610
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 569
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 0
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 714
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 219
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 736
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 842
            }]
        }, {
            "countryCode": "113",
            "countryName": "マレーシア",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 401
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 342
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 1003
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 222
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 0
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 411
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 268
            }]
        }, {
            "countryCode": "123",
            "countryName": "インド",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 595
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 652
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 420
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 230
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 278
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 825
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 325
            }]
        }, {
            "countryCode": "205",
            "countryName": "英国",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 951
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 597
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 359
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 821
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 407
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 827
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 1151
            }]
        }, {
            "countryCode": "210",
            "countryName": "フランス",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 145
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 1136
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 1278
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 811
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 720
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 1356
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 705
            }]
        }, {
            "countryCode": "213",
            "countryName": "ドイツ",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 184
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 535
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 246
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 790
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 426
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 1297
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 783
            }]
        }, {
            "countryCode": "224",
            "countryName": "ロシア",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 187
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 142
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 93
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 218
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 304
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 364
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 89
            }]
        }, {
            "countryCode": "302",
            "countryName": "カナダ",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 150
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 1067
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 722
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 219
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 423
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 1278
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 536
            }]
        }, {
            "countryCode": "304",
            "countryName": "アメリカ合衆国",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 1900
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 2445
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 2637
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 2343
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 4169
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 3458
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 2411
            }]
        }, {
            "countryCode": "601",
            "countryName": "オーストラリア",
            "data": [{
                "year": 2011,
                "quarter": 2,
                "value": 151
            }, {
                "year": 2011,
                "quarter": 3,
                "value": 442
            }, {
                "year": 2011,
                "quarter": 4,
                "value": 1170
            }, {
                "year": 2012,
                "quarter": 1,
                "value": 276
            }, {
                "year": 2012,
                "quarter": 2,
                "value": 583
            }, {
                "year": 2012,
                "quarter": 3,
                "value": 342
            }, {
                "year": 2012,
                "quarter": 4,
                "value": 1364
            }]
        }]
    }
}