{"id":5162,"date":"2022-02-13T21:49:00","date_gmt":"2022-02-13T12:49:00","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=5162"},"modified":"2022-02-13T21:47:55","modified_gmt":"2022-02-13T12:47:55","slug":"post-5162","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=5162","title":{"rendered":"GAS\u306eUrlfetchApp\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5236\u9650\u4e8b\u9805(URL\u9577\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306e\u4e0a\u9650)"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3067\u30a6\u30a7\u30d6\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u969b\u306b\u306fUrlfetchApp.fetch\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u56de\u6570\u3084URL\u9577\u306b\u5236\u9650\u4e8b\u9805\u304c\u3042\u308b\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>GAS\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306bUrlfetchApp<\/h2>\n<p>Google Apps Script(GAS)\u3067\u306f\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084API\u901a\u4fe1\u304c\u3088\u304f\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>GAS\u306b\u3088\u308b\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084API\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f\u3001UrlFetchApp\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5166\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084API\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u5834\u5408\u306b\u5229\u7528\u3059\u308bUrlFetchApp\u30af\u30e9\u30b9\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\" width=\"800\" height=\"407\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_002-725x369.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>UrlFetchApp\u30af\u30e9\u30b9\u306b\u306ffetch\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001URL\u306b\u30d5\u30a7\u30c3\u30c1\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>GAS\u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30b5\u30fc\u30d3\u30b9\u3067\u3001\u30c8\u30ea\u30ac\u30fc\u306b\u3088\u308b\u65e5\u6b21\u30fb\u9031\u6b21\u30fb\u6708\u6b21\u3068\u3044\u3063\u305f\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u767b\u9332\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001UrlFetchApp.fetch\u3092\u6d3b\u7528\u3057\u305f\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084API\u901a\u4fe1\u3092\u884c\u3046GAS\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u8272\u3005\u306a\u30b7\u30fc\u30f3\u3067\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>UrlfetchApp.fetch\u306b\u306f\u5236\u9650\u4e8b\u9805\u3042\u308a<\/h2>\n<p>\u3068\u3066\u3082\u4fbf\u5229\u306aGoogle Apps Script(GAS)\u306eUrlFetchApp.fetch\u3067\u3059\u304c\u3001\u5236\u9650\u4e8b\u9805\u3082\u8a2d\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306fGoogle\u516c\u5f0f\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u3001GAS\u306e\u5236\u9650\u4e8b\u9805\u3092\u307e\u3068\u3081\u305f\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5167\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u306e\u5236\u9650\u4e8b\u9805\u3092\u8a18\u8f09\u3057\u305f\u30da\u30fc\u30b8\u306bUrlFetchApp.fetch\u306e\u5b9f\u884c\u56de\u6570\u306b\u95a2\u3059\u308b1\u65e52\u4e07\u56de\u306e\u5236\u9650\u3082\u8a18\u8f09\" width=\"800\" height=\"494\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-300x185.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-768x474.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-530x327.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-565x349.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-710x438.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_003-725x448.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>GAS\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u3001\u7121\u6599\u306eGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u3001\u6709\u511f\u7248\u306eGoogle Workspace\u306e\u30e6\u30fc\u30b6\u30fc\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>UrlFetchApp.fetch\u3092\u4f7f\u3063\u305f\u3001URL\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u5b9f\u884c\u56de\u6570\u306f\u3001\u8d64\u67a0\u306e\u3088\u3046\u306b\u4e0a\u9650\u304c\u8a2d\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u7121\u6599\u306eGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\uff1a1\u65e52\u4e07\u56de<\/li>\n<li>\u6709\u6599\u306eGoogle Workspace\u30e6\u30fc\u30b6\u30fc\uff1a1\u65e510\u4e07\u56de<\/li>\n<\/ol>\n<p>\u305d\u306e\u305f\u3081\u3001\u901a\u5e38\u306eGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306f\u3001GAS\u306eURL\u30d5\u30a7\u30c3\u30c1\u306f1\u65e5\u306b2\u4e07\u56de\u4ee5\u4e0a\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h2>\u5b9f\u884c\u56de\u6570\u4ee5\u5916\u306bURL\u9577\u3082\u4e0a\u9650\u3042\u308a<\/h2>\n<p>\u306a\u304a\u3001Google Apps Script(GAS)\u306eUrlFetchApp.fetch\u306b\u306f\u5b9f\u884c\u56de\u6570\u4ee5\u5916\u306b\u3082\u3001\u5236\u9650\u4e8b\u9805\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>UrlFetchApp.fetch\u306eHTTP\/GET\u306b\u3088\u308b\u7ffb\u8a33\u3092\u884c\u3046API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u305f\u969b\u306b\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u5b9f\u884c\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5165\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u306eUrlFetchApp.fetch\u3067URL\u9577\u306e\u5236\u9650\u306b\u8a72\u5f53\u3057\u30012KB\u306e\u4e0a\u9650\u3092\u8d85\u3048\u308bURL\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300cException: Limit Exceeded: URLFetch URL Length.\u300d\" width=\"1200\" height=\"605\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-300x151.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-1024x516.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-768x387.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-530x267.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-565x285.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-710x358.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_001-725x366.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><strong>\u30a8\u30e9\u30fc\u3000Exception: Limit Exceeded: URLFetch URL Length.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306fHTTP\/GET\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067URL\u9577\u306e\u4e0a\u9650\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>GAS\u306eUrlFetchApp.fetch\u306eURL\u9577\u304c2KB\u3088\u308a\u3082\u5927\u304d\u3044\u9577\u3055\u3060\u3068\u30a8\u30e9\u30fc\u3067\u5b9f\u884c\u4e0d\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>UrlFetchApp.fetch\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305fURL\u9577\u306e\u4e0a\u9650\u8d85\u904e\u306f\u3001\u901a\u5e38\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u306f\u307e\u305a\u767a\u751f\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u969b\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5927\u304d\u306a\u5024\u3092\u4ed8\u4e0e\u3059\u308b\u3068URL\u9577\u304c2KB\u3092\u8d85\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306e\u5236\u9650\u30ea\u30b9\u30c8\u307e\u3068\u3081<\/h2>\n<p>URL\u9577\u4ee5\u5916\u306b\u3082\u3001Google Apps Script(GAS)\u306b\u304a\u3051\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8(UrlFetchApp.fetch)\u306b\u306f\u5236\u9650\u4e8b\u9805\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5168\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u306eUrlFetchApp.fetch\u306b\u3088\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5b9f\u884c\u5236\u9650\u306e\u4e00\u89a7\u8868(Google\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9)\" width=\"800\" height=\"495\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-300x186.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-768x475.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-530x328.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-565x350.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-710x439.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/02\/20220213_auto_004-725x449.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>HTTP\u901a\u4fe1\u306b\u304a\u3051\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u7d50\u679c\u306e\u30b5\u30a4\u30ba\u3084\u3001\u30d8\u30c3\u30c0\u30fc\u306e\u500b\u6570\u3001HTTP\/POST\u306e\u901a\u4fe1\u30b5\u30a4\u30ba\u306a\u3069\u306e\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GAS\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u95a2\u9023\u306e\u5236\u9650\u4e8b\u9805\u306f\u3001URL\u30d5\u30a7\u30c3\u30c1\u306e\u5b9f\u884c\u56de\u6570\u3082\u542b\u3081\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u8868\u306e6\u7a2e\u985e\u3067\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>GAS\u5b9f\u884c\u9805\u76ee<\/strong><\/td>\n<td style=\"width: 33.3333%;\"><strong>\u7121\u6599\u30a2\u30ab\u30a6\u30f3\u30c8<\/strong><\/td>\n<td style=\"width: 33.3333%;\"><strong>\u6709\u6599\u30a2\u30ab\u30a6\u30f3\u30c8<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u5b9f\u884c\u56de\u6570<\/td>\n<td style=\"width: 33.3333%;\">2\u4e07\u56de\/1\u65e5<\/td>\n<td style=\"width: 33.3333%;\">10\u4e07\u56de\/1\u65e5<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30b5\u30a4\u30ba<\/td>\n<td style=\"width: 33.3333%;\">50MB\/1\u56de<\/td>\n<td style=\"width: 33.3333%;\">50MB\/1\u56de<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u306e\u30d8\u30c3\u30c0\u30fc\u6570<\/td>\n<td style=\"width: 33.3333%;\">100\u500b\/1\u56de<\/td>\n<td style=\"width: 33.3333%;\">100\u500b\/1\u56de<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u306e\u30d8\u30c3\u30c0\u30fc\u30b5\u30a4\u30ba<\/td>\n<td style=\"width: 33.3333%;\">8KB\/1\u56de<\/td>\n<td style=\"width: 33.3333%;\">8KB\/1\u56de<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u306ePOST\u30b5\u30a4\u30ba<\/td>\n<td style=\"width: 33.3333%;\">50MB\/1\u56de<\/td>\n<td style=\"width: 33.3333%;\">50MB\/1\u56de<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.3333%;\">URL\u30d5\u30a7\u30c3\u30c1\u306eURL\u9577<\/td>\n<td style=\"width: 33.3333%;\">2KB\/1\u56de<\/td>\n<td style=\"width: 33.3333%;\">2KB\/1\u56de<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>UrlFetchApp.fetch\u306e\u5b9f\u884c\u56de\u6570\u4ee5\u5916\u306f\u3001\u7121\u6599\u30fb\u6709\u6599\u30e6\u30fc\u30b6\u30fc\u95a2\u4fc2\u306a\u304f\u3001\u540c\u3058\u5236\u9650\u4e8b\u9805\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>URL\u9577\u306e2KB\u5236\u9650\u8d85\u904e\u306e\u5bfe\u51e6\u65b9\u6cd5\u306f\uff1f<\/h2>\n<p>\u3082\u3057\u3001URL\u9577\u306e2KB\u306e\u5236\u9650\u3092\u8d85\u904e\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306b\u5bfe\u51e6\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3001URL\u9577\u306e\u5727\u7e2e\u7b49\u306fGoogle Apps Script(GAS)\u3067\u306f\u96e3\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u56de\u907f\u7b56\u3068\u3057\u3066HTTP\/GET\u3067\u306f\u306a\u304f\u3001HTTP\/POST\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>HTTP\/POST\u3067\u306e\u901a\u4fe1\u5236\u9650\u306f\u3001UrlFetchApp.fetch\u306e1\u56de\u5b9f\u884c\u3042\u305f\u308a50MB\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001HTTP\/GET\u3067URL\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u4e0e\u3059\u308b\u5f62\u5f0f\u304b\u3089\u3001HTTP\/POST\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u3068\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8ee2\u9001\u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GAS\u4ee5\u5916\u3067\u3082URL\u9577\u3092\u5236\u9650\u3059\u308b\u30b1\u30fc\u30b9\u306f\u3042\u308a\u3001API\u5074\u3067HTTP\/POST\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001API\u5074\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084API\u901a\u4fe1\u3067\u4f7f\u7528\u3059\u308bUrlfetchApp\u306e\u5b9f\u884c\u5236\u9650\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>GAS\u3067HTTP\u901a\u4fe1\u3092\u884c\u3046UrlFetchApp.fetch\u306b\u306f\u3001\u5b9f\u884c\u56de\u6570\u4ee5\u5916\u306b\u3082\u3001\u901a\u4fe1\u30b5\u30a4\u30ba\u306a\u3069\u306e\u5236\u9650\u304c\u8a2d\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7ffb\u8a33API\u3067HTTP\/GET\u3067URL\u306b\u7ffb\u8a33\u30c6\u30ad\u30b9\u30c8\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u4e0e\u3059\u308b\u30b1\u30fc\u30b9\u3067\u306f\u3001\u7ffb\u8a33\u3057\u305f\u3044\u6587\u7ae0\u304c\u9577\u3044\u3068\u3001URL\u9577\u304c2KB\u306e\u5236\u9650\u306b\u3072\u3063\u304b\u304b\u308a\u3001\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>GAS\u306f\u7121\u6599\u3067\u4fbf\u5229\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u30b5\u30fc\u30d3\u30b9\u306e\u305f\u3081\u3001API\u901a\u4fe1\u306b\u3082\u3088\u304f\u7528\u3044\u3089\u308c\u307e\u3059\u5206\u3001\u5b9f\u884c\u4e0a\u9650\u304c\u8a2d\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u305f\u5236\u9650\u4e8b\u9805\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u3068\u3001GAS\u3092\u3088\u308a\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u30a6\u30a7\u30d6\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u969b\u306b\u306fUrlfetchApp.fetch\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002 \u3053\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u56de\u6570\u3084URL\u9577\u306b\u5236\u9650\u4e8b\u9805\u304c\u3042\u308b\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,558,863,862],"class_list":["post-5162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-urlfetchapp","tag-url","tag-862"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5162","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=5162"}],"version-history":[{"count":3,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5162\/revisions"}],"predecessor-version":[{"id":5169,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5162\/revisions\/5169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/5165"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}