{"id":3757,"date":"2021-07-04T23:10:28","date_gmt":"2021-07-04T14:10:28","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=3757"},"modified":"2022-03-09T21:37:31","modified_gmt":"2022-03-09T12:37:31","slug":"post-3757","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=3757","title":{"rendered":"\u74b0\u5883\u7701\u30fb\u82b1\u7c89API\u306eGoogle Apps Script(GAS)\u306b\u3088\u308b\u53d6\u5f97\u65b9\u6cd5\uff5e\u7121\u6599\u3067\u82b1\u7c89\u98db\u6cab\u91cf\u3092\u5165\u624b"},"content":{"rendered":"<p>\u74b0\u5883\u7701\u306f\u65e5\u672c\u5168\u56fd\u306e\u82b1\u7c89\u306e\u6563\u5e03\u30c7\u30fc\u30bf\u3092\u8a08\u6e2c\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092API\u3067\u5229\u7528\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Google Apps Script(GAS)\u3092\u4f7f\u3063\u3066\u3001\u82b1\u7c89API\u304b\u3089\u82b1\u7c89\u306e\u98db\u6cab\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u203b(2022\u5e743\u67089\u65e5\u8ffd\u8a18)\u74b0\u5883\u7701\u82b1\u7c89\u8a08\u6e2c\u30b7\u30b9\u30c6\u30e0\u300c\u306f\u306a\u3053\u3055\u3093\u300d\u306eAPI\u306f2022\u5e743\u670831\u65e5\u3092\u3082\u3063\u3066\u63d0\u4f9b\u7d42\u4e86\u3068\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<\/strong><\/p>\n<p><strong>\u305d\u306e\u305f\u3081\u3001\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306f2022\u5e744\u67081\u65e5\u4ee5\u964d\u3001\u5b9f\u884c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<h2>\u74b0\u5883\u7701\u304c\u82b1\u7c89\u89b3\u6e2c\u60c5\u5831\u30b5\u30fc\u30d3\u30b9\u306e\u300c\u306f\u306a\u3053\u3055\u3093\u300d\u904b\u55b6<\/h2>\n<p>\u74b0\u5883\u7701\u306f\u3001\u82b1\u7c89\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308bWeb\u30b5\u30fc\u30d3\u30b9\u300c\u74b0\u5883\u7701\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0 \u306f\u306a\u3053\u3055\u3093\u300d\u3092\u904b\u55b6\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3769\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006.jpg\" alt=\"\u74b0\u5883\u7701\u304c\u904b\u55b6\u3057\u3066\u3044\u308b\u82b1\u7c89\u91cf\u6e2c\u5b9a\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eWeb\u753b\u9762\" width=\"800\" height=\"412\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210703_auto_006-725x373.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><a href=\"https:\/\/kafun.env.go.jp\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u74b0\u5883\u7701\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0 \u306f\u306a\u3053\u3055\u3093<\/a><\/p>\n<p>\u65e5\u672c\u5168\u56fd\u306b\u8a2d\u7f6e\u3055\u308c\u305f\u82b1\u7c89\u81ea\u52d5\u6e2c\u5b9a\u5668\u306e\u30c7\u30fc\u30bf\u304c\u516c\u958b\u3055\u308c\u3001\u3069\u306e\u5730\u57df\u3067\u82b1\u7c89\u306e\u98db\u6cab\u91cf\u304c\u591a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u56fd\u5bb6\u6a5f\u95a2\u3067\u3042\u308b\u74b0\u5883\u7701\u304c\u904b\u55b6\u3057\u3066\u3044\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3068\u3044\u3046\u3053\u3068\u3067\u82b1\u7c89\u30c7\u30fc\u30bf\u3068\u3057\u3066\u306e\u4fe1\u983c\u6027\u3082\u9ad8\u3044\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<h2>\u306f\u306a\u3053\u3055\u3093\u306e\u82b1\u7c89\u60c5\u5831API\u306f\u7121\u6599<\/h2>\n<p>\u3055\u3089\u306b\u3001\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u3067\u306f\u3001\u5404\u7a2e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084\u30a2\u30d7\u30ea\u304b\u3089\u3082\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306bAPI\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>API\u5229\u7528\u306b\u3064\u3044\u3066\u306f\u3001\u500b\u4eba\u5229\u7528\u306b\u3064\u3044\u3066\u306f\u7121\u511f\u5229\u7528\u3067\u304d\u3001\u30b5\u30fc\u30d3\u30b9\u9023\u643a\u3059\u308b\u5834\u5408\u306f\u500b\u5225\u76f8\u8ac7\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u500b\u4eba\u5229\u7528\u306e\u5834\u5408\u3001\u7279\u306b\u5229\u7528\u767b\u9332\u3082\u5fc5\u8981\u306a\u304f\u3001\u8a8d\u8a3c\u30ad\u30fc\u7b49\u4e0d\u8981\u3067\u5b9f\u884c\u3067\u304d\u308b\u7121\u6599API\u306a\u306e\u3067\u3001\u624b\u8efd\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u30a6\u30a7\u30b6\u30fc\u30cb\u30e5\u30fc\u30b9\u306a\u3069\u304c1km\u5358\u4f4d\u306e\u3088\u308a\u9ad8\u7cbe\u5ea6\u306a\u82b1\u7c89\u60c5\u5831\u3092API\u3067\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u6709\u6599\u3067\u3059\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u82b1\u7c89\u60c5\u5831\u3092\u7d39\u4ecb\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u74b0\u5883\u7701\u306e\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306e\u306f\u306a\u3053\u3055\u3093\u306eAPI\u304c\u4fbf\u5229\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Google Apps Script(GAS)\u3067\u82b1\u7c89API\u3092\u53d6\u5f97\u53ef\u80fd<\/h2>\n<p>\u74b0\u5883\u7701\u306e\u82b1\u7c89\u8a08\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306f\u3001API\u3067\u82b1\u7c89\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u308b\u305f\u3081\u3001Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u306f\u306a\u3053\u3055\u3093\u306e\u82b1\u7c89API\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306aHTTP\u306eGET\u901a\u4fe1\u3067\u82b1\u7c89\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u96e3\u6613\u5ea6\u3082\u6613\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u203bGAS\u3067\u306eHTTP\u901a\u4fe1\u306e\u3084\u308a\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"nbpMsKyXfq\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=2691\">GAS\u306b\u3088\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8(GET\/POST)\u65b9\u6cd5\u3092\u89e3\u8aac!UrlFetchApp\u30af\u30e9\u30b9\u3067\u30d5\u30a7\u30c3\u30c1<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u306b\u3088\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8(GET\/POST)\u65b9\u6cd5\u3092\u89e3\u8aac!UrlFetchApp\u30af\u30e9\u30b9\u3067\u30d5\u30a7\u30c3\u30c1&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=2691&#038;embed=true#?secret=xYKv0Opp9a#?secret=nbpMsKyXfq\" data-secret=\"nbpMsKyXfq\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>GAS\u306e\u30b3\u30fc\u30c9\u3067UrlFetchApp.fetch\u3092\u4f7f\u3063\u3066\u82b1\u7c89API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>JSON.parse\u30e1\u30bd\u30c3\u30c9\u3067JSON\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u5f8c\u306b\u3001\u51e6\u7406\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u82b1\u7c89\u60c5\u5831\u3092\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"SaTQwRclQX\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=3760\">GAS\u3067JSON\u5f62\u5f0f\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u3001\u51e6\u7406\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u914d\u5217\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067JSON\u5f62\u5f0f\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u3001\u51e6\u7406\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u914d\u5217\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=3760&#038;embed=true#?secret=wHkJNQt6K9#?secret=SaTQwRclQX\" data-secret=\"SaTQwRclQX\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u74b0\u5883\u7701\u306e\u82b1\u7c89API\u306f\u306a\u3053\u3055\u3093\u306e\u4ed5\u69d8<\/h2>\n<p>\u74b0\u5883\u7701\u306e\u82b1\u7c89\u8a08\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u4ed5\u69d8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u304b\u3089\u53d6\u5f97\u3067\u304d\u308b\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3772\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001.jpg\" alt=\"\u74b0\u5883\u7701\u306e\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u3067\u3084\u308a\u53d6\u308a\u3059\u308bJSON\u306e\u30c7\u30fc\u30bf\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\" width=\"800\" height=\"438\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-768x420.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-530x290.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-565x309.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-710x389.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_001-725x397.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3044\u305a\u308c\u306e\u30c7\u30fc\u30bf\u3082\u53d6\u5f97\u6642\u306b\u306f\u5fc5\u305a\u5b58\u5728\u3057\u3001\u7701\u7565\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u82b1\u7c89\u30c7\u30fc\u30bf\u3068\u3057\u3066\u306f\u300111\u756a\u76ee\u306b\u3042\u308b\u300c\u82b1\u7c89\u98db\u6cab\u6570(\u500b\/m3)\u300d\u304c\u91cd\u8981\u306a\u6570\u5024\u3067\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001HTTP GET\u3067\u4ee5\u4e0b\u306eURL\u5f62\u5f0f\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3773\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002.jpg\" alt=\"\u74b0\u5883\u7701\u306e\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u306eHTTP GET\u306b\u3088\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\" width=\"800\" height=\"407\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_002-725x369.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6771\u4eac\u90fd\u30672021\u5e743\u6708\u306e\u82b1\u7c89\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4ed8\u4e0e\u3059\u308b\u5f62\u3067HTTP GET\u3057\u307e\u3059\u3002<\/p>\n<p><em><strong>https:\/\/kafun.env.go.jp\/hanako\/api\/data_search?Start_YM=202103&amp;End_YM=202103&amp;TDFKN_CD=13<\/strong><\/em><\/p>\n<p>\u203b\u5b9f\u969b\u306bChrome\u306a\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u306eURL\u6b04\u306b\u6253\u3061\u8fbc\u3093\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001JSON\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u90fd\u9053\u5e9c\u770c\u306e\u6307\u5b9a\u306b\u306f\u90fd\u9053\u5e9c\u770c\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u3001\u6771\u4eac\u306e\u5834\u5408\u306f\u300c13\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>Google\u691c\u7d22\u3067\u300c\u90fd\u9053\u5e9c\u770c\u30b3\u30fc\u30c9\u300d\u306a\u3069\u3067\u691c\u7d22\u3057\u3066\u3001\u78ba\u8a8d\u3057\u305f\u3044\u5730\u57df\u306e\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<h2>GAS\u3067\u82b1\u7c89API\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n<p>\u5b9f\u969b\u306bGoogle Apps Script(GAS)\u3067\u306f\u306a\u3053\u3055\u3093\u306e\u82b1\u7c89API\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u82b1\u7c89\u304c\u6700\u3082\u591a\u3044\u30012021\u5e743\u6708\u306e\u6771\u4eac\u306e\u30c7\u30fc\u30bf\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066JSON\u30c7\u30fc\u30bf\u53d6\u5f97\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u63db\u3057\u30661\u4ef6\u76ee\u306e\u30c7\u30fc\u30bf\u3092\u5b9f\u884c\u30ed\u30b0\u306b\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3774\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u3067\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u3092\u53d6\u5f97\u3057\u3001\u30ed\u30b0\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"1200\" height=\"608\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-768x389.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-1024x519.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-565x286.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_003-725x367.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><code>function getPollen() {<br \/>\n\/\/\u82b1\u7c89API\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u5b9a\u7fa9<br \/>\nlet apiUrl = \"https:\/\/kafun.env.go.jp\/hanako\/api\/data_search?\";<br \/>\n\/\/\u82b1\u7c89API\u3067\u53d6\u5f97\u3059\u308b\u5e74\u6708\u30922021\u5e743\u6708\u3092\u8a2d\u5b9a<br \/>\nlet month =  \"202103\";<br \/>\n\/\/\u82b1\u7c89API\u306eURL\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308bURL\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a<br \/>\napiUrl += \"Start_YM=\" + month + \"&amp;End_YM=\" + month + \"&amp;TDFKN_CD=13\";<br \/>\n\/\/\u5b9f\u969b\u306b\u82b1\u7c89API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db<br \/>\nlet response = UrlFetchApp.fetch(apiUrl).getContentText(\"Shift-JIS\");<br \/>\nlet json = JSON.parse(response);<br \/>\n\/\/\u53d6\u5f97\u3057\u305f\u82b1\u7c89\u60c5\u5831\u30671\u3064\u76ee\u3092\u30ed\u30b0\u51fa\u529b<br \/>\nconsole.log(json[0]);<br \/>\n}<\/code><\/p>\n<p>\u3053\u306eGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30012021\u5e743\u67081\u65e5\u5348\u524d1\u6642\u306e\u6771\u4eac\u30fb\u5c0f\u5e73\u89b3\u6e2c\u6240\u306b\u304a\u3051\u308b\u82b1\u7c89\u30c7\u30fc\u30bf\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3776\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005.jpg\" alt=\"Google Apps Script(GAS)\u3067\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306e\u82b1\u7c89API\u3092\u53d6\u5f97\u3057\u305f\u7d50\u679c\u3001\u5b9f\u884c\u30ed\u30b0\u306b\u53d6\u5f97\u7d50\u679c\u304c\u8868\u793a\" width=\"800\" height=\"407\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_005-725x369.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001GAS\u3067\u82b1\u7c89API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001\u82b1\u7c89\u60c5\u5831\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u82b1\u7c89API\u306e\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u30b3\u30fc\u30c9<\/h2>\n<p>\u3055\u3089\u306b\u3001\u82b1\u7c89API\u3067\u53d6\u5f97\u3057\u305f\u82b1\u7c89\u98db\u6cab\u306e\u60c5\u5831\u3084\u3001\u6c17\u6e29\u3084\u98a8\u91cf\u3068\u3044\u3063\u305f\u30c7\u30fc\u30bf\u3082\u542b\u3081\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3059\u308bGoogle Apps Script\u306e\u30b3\u30fc\u30c9\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6539\u826f\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u3001\u90fd\u9053\u5e9c\u770c\u30b3\u30fc\u30c9\u3084\u53d6\u5f97\u958b\u59cb\u6708\u3068\u53d6\u5f97\u7d42\u4e86\u6708\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3775\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u3067\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u3067\u82b1\u7c89\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u82b1\u7c89\u98db\u6cab\u91cf\u3084\u6c17\u6e29\u30fb\u98a8\u91cf\u30fb\u98a8\u5411\u3092\u66f8\u304d\u8fbc\u3080\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"1200\" height=\"608\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-768x389.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-1024x519.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-565x286.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_004-725x367.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><code>function outputPollen() {<br \/>\n\/\/\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u3067\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u307f<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet();<br \/>\n\/\/\u90fd\u9053\u5e9c\u770c\u30b3\u30fc\u30c9\u3001\u89b3\u6e2c\u6570\u3001\u958b\u59cb\u6708\u3001\u7d42\u4e86\u6708\u3092\u53d6\u5f97(\u89b3\u6e2c\u6570\u306f\u4eca\u56de\u306f\u4f7f\u7528\u3057\u306a\u3044)<br \/>\nlet param = mySheet.getRange(1,2,1,4).getValues();<br \/>\n\/\/\u82b1\u7c89API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308bURL\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a<br \/>\nlet apiUrl = \"https:\/\/kafun.env.go.jp\/hanako\/api\/data_search?\";<br \/>\napiUrl += \"Start_YM=\" + param[0][2] + \"&amp;End_YM=\" + param[0][3] + \"&amp;TDFKN_CD=\" + param[0][0];<br \/>\n\/\/API\u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066json\u53d6\u5f97\u203b\u6587\u5b57\u30b3\u30fc\u30c9\u306fShift-JIS<br \/>\nlet response = UrlFetchApp.fetch(apiUrl).getContentText(\"Shift-JIS\");<br \/>\nlet json = JSON.parse(response);<br \/>\n\/\/\u4eca\u56de\u306f\u89b3\u6e2c\u6240\u304c2\u3064\u306a\u306e\u3067\u30012\u3064\u306e\u5909\u6570\u3092\u5b9a\u7fa9<br \/>\nlet pollenData1 = [];<br \/>\nlet pollenData2 = [];<br \/>\n\/\/json\u306e\u30c7\u30fc\u30bf\u884c\u6570\u5206\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u30c7\u30fc\u30bf\u3092\u5909\u6570\u306b\u683c\u7d0d<br \/>\nfor(i=0;i&lt;json.length;i++){<br \/>\nif(i&lt;json.length\/2){<br \/>\n\/\/\u89b3\u6e2c\u6240\uff1e\u53d6\u5f97\u65e5\u6642\u306e\u9806\u756a\u3067\u30bd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30011\u3064\u76ee\u306e\u89b3\u6e2c\u6240\u30c7\u30fc\u30bf\u3092\u5909\u6570\u306b\u683c\u7d0d<br \/>\npollenData1[i] = [<br \/>\njson[i][\"SKT_NNGP\"] + json[i][\"SKT_HH\"],<br \/>\njson[i][\"KFN_NUM\"],<br \/>\njson[i][\"AMeDAS_WD\"],<br \/>\njson[i][\"AMeDAS_WS\"],<br \/>\njson[i][\"AMeDAS_TP\"],<br \/>\njson[i][\"AMeDAS_PR\"]<br \/>\n];<br \/>\n}else{<br \/>\n\/\/\u6b21\u306b2\u3064\u76ee\u306e\u89b3\u6e2c\u6240\u30c7\u30fc\u30bf\u3092\u5909\u6570\u306b\u683c\u7d0d<br \/>\npollenData2[i-json.length\/2] = [<br \/>\njson[i][\"SKT_NNGP\"] + json[i][\"SKT_HH\"],<br \/>\njson[i][\"KFN_NUM\"],<br \/>\njson[i][\"AMeDAS_WD\"],<br \/>\njson[i][\"AMeDAS_WS\"],<br \/>\njson[i][\"AMeDAS_TP\"],<br \/>\njson[i][\"AMeDAS_PR\"]<br \/>\n];<br \/>\n}<br \/>\n}<br \/>\n\/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b2\u6b21\u5143\u914d\u5217\u306b\u683c\u7d0d\u3057\u305f\u82b1\u7c89\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u307f<br \/>\nmySheet.getRange(4,1, pollenData1.length, pollenData1[0].length).setValues(pollenData1);<br \/>\nmySheet.getRange(4,7, pollenData2.length, pollenData2[0].length).setValues(pollenData2);<br \/>\n}<\/code><\/p>\n<p>\u4eca\u56de\u3082\u6771\u4eac\u90fd\u306e\u30c7\u30fc\u30bf\u3067\u3001\u5c0f\u5e73\u89b3\u6e2c\u6240\u3068\u65b0\u5bbf\u7b2c\u4e8c\u5e81\u820e\u306e\u82b1\u7c89\u98db\u6cab\u91cf\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u306e\u30c7\u30fc\u30bf\u4ed5\u69d8\u3067\u8aac\u660e\u3057\u305f\u901a\u308a\u3001JSON\u30c7\u30fc\u30bf\u306e\u9806\u756a\u306f\u3001\u89b3\u6e2c\u6240\uff1e\u65e5\u6642\u306e\u9806\u756a\u3067\u30bd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u53d6\u5f97\u3057\u305fJSON\u30c7\u30fc\u30bf\u306e\u524d\u534a\u304c\u5c0f\u5e73\u89b3\u6e2c\u6240\u3001\u5f8c\u534a\u304c\u65b0\u5bbf\u7b2c\u4e8c\u5e81\u820e\u306e\u6570\u5024\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u306e\u30c7\u30fc\u30bf\u306e\u4e26\u3073\u306b\u5f93\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u5909\u6570\u306b\u683c\u7d0d\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3777\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006.jpg\" alt=\"\u74b0\u5883\u7701\u306e\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u306bGoogle Apps Script(GAS)\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u3093\u3067\u8a18\u9332\" width=\"800\" height=\"406\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/07\/20210704_auto_006-725x368.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u5b9f\u969b\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u6771\u4eac\u306e\u82b1\u7c89\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4f7f\u3048\u3070\u3001\u82b1\u7c89\u60c5\u5831\u304c\u66f4\u65b0\u3055\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53d6\u5f97\u3057\u3001\u82b1\u7c89\u98db\u6cab\u91cf\u304c\u4e00\u5b9a\u91cf\u3092\u8d85\u3048\u305f\u5834\u5408\u306f\u3001\u30e1\u30fc\u30eb\u3084Slack\u306b\u6ce8\u610f\u559a\u8d77\u306e\u901a\u77e5\u3092\u51fa\u3059\u30c4\u30fc\u30eb\u306b\u3082\u5fdc\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883\u7701\u306e\u82b1\u7c89API\u306f\u53d6\u5f97\u53ef\u80fd\u671f\u9593\u306b\u6ce8\u610f<\/h2>\n<p>\u306a\u304a\u3001\u74b0\u5883\u7701\u306e\u82b1\u7c89API\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u6ce8\u610f\u70b9\u3068\u3057\u3066\u53d6\u5f97\u53ef\u80fd\u671f\u9593\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u306f\u3001\u3044\u3064\u3067\u3082\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u6bce\u5e74\u4ee5\u4e0b\u306e\u671f\u9593\u306e\u307f\u82b1\u7c89\u98db\u6cab\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>2\u67081\u65e5\uff5e6\u670830\u65e5<\/strong><\/p>\n<p>7\u6708\u4ee5\u964d\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068&#8221;202107&#8243;\u306a\u3069\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u6307\u5b9a\u3057\u3066\u3082\u3001JSON\u30c7\u30fc\u30bf\u306f\u8fd4\u5374\u3055\u308c\u308b\u3082\u306e\u306e\u3001\u82b1\u7c89\u98db\u6cab\u6570\u306f0\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e3b\u306b\u30b9\u30ae\u82b1\u7c89\u304c\u767a\u751f\u3059\u308b\u6642\u671f\u3057\u304b\u82b1\u7c89\u60c5\u5831\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u304c\u6ce8\u610f\u70b9\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u53d6\u5f97\u3067\u304d\u308b\u306e\u306f\u76f4\u8fd1\u4e00\u5e74\u306e\u30c7\u30fc\u30bf\u3067\u3001\u4f8b\u3048\u30702021\u5e74\u306e\u5834\u5408\u30012020\u5e74\u306e\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306bAPI\u304c\u52d5\u4f5c\u3059\u308b\u30b7\u30fc\u30ba\u30f3\u3068\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30fc\u30bf\u306e\u671f\u9593\u306b\u3064\u3044\u3066\u306f\u7406\u89e3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001\u74b0\u5883\u7701\u306e\u82b1\u7c89\u89b3\u6e2c\u30b7\u30b9\u30c6\u30e0\u306f\u306a\u3053\u3055\u3093\u306eAPI\u3092Google Apps Script(GAS)\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u306f\u306a\u3053\u3055\u3093\u306e\u82b1\u7c89API\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u3001\u5168\u56fd\u5404\u5730\u306e\u82b1\u7c89\u98db\u6cab\u91cf\u3092\u5165\u624b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u82b1\u7c89API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\u3082HTTP-GET\u3067\u624b\u8efd\u306bJSON\u5f62\u5f0f\u3067\u82b1\u7c89\u60c5\u5831\u3092\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306bGAS\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u82b1\u7c89API\u304b\u3089\u82b1\u7c89\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3068\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u82b1\u7c89\u30c7\u30fc\u30bf\u3092\u4f7f\u3048\u3070\u3001\u82b1\u7c89\u91cf\u304c\u591a\u3044\u6642\u306b\u30a2\u30e9\u30fc\u30c8\u3092\u51fa\u3057\u305f\u308a\u3001\u82b1\u7c89\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u500b\u4eba\u3067\u306e\u5229\u7528\u306e\u5834\u5408\u306f\u767b\u9332\u4e0d\u8981\u3067\u82b1\u7c89\u60c5\u5831\u3092\u7121\u6599\u5229\u7528\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u305c\u3072\u82b1\u7c89\u30a2\u30d7\u30ea\u958b\u767a\u3057\u305f\u3044\u969b\u306b\u306f\u5229\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u74b0\u5883\u7701\u306f\u65e5\u672c\u5168\u56fd\u306e\u82b1\u7c89\u306e\u6563\u5e03\u30c7\u30fc\u30bf\u3092\u8a08\u6e2c\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092API\u3067\u5229\u7528\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002 Google Apps Script(GAS)\u3092\u4f7f\u3063\u3066\u3001\u82b1\u7c89API\u304b\u3089\u82b1\u7c89\u306e\u98db\u6cab\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3769,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[14,651,690],"class_list":["post-3757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-gas","tag-651","tag-api"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3757"}],"version-history":[{"count":7,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3757\/revisions"}],"predecessor-version":[{"id":5333,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3757\/revisions\/5333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3769"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}