{"id":32133,"date":"2025-12-29T19:19:13","date_gmt":"2025-12-29T19:19:13","guid":{"rendered":"https:\/\/www.dotcom-monitor.com\/blog\/jsonpath-web-api-monitoring\/"},"modified":"2026-05-21T21:59:53","modified_gmt":"2026-05-21T21:59:53","slug":"jsonpath-web-api-monitoring","status":"publish","type":"post","link":"https:\/\/www.dotcom-monitor.com\/blog\/ja\/jsonpath-web-api-monitoring\/","title":{"rendered":"Web API \u76e3\u8996\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b JSONPath \u3068 JSON \u691c\u8a3c"},"content":{"rendered":"

\"Web\u591a\u304f\u306e API \u76e3\u8996\u8a2d\u5b9a\u306f\u3044\u307e\u3060\u306b\u6210\u529f\u306e\u5b9a\u7fa9\u3092\u72ed\u304f\u6349\u3048\u3066\u3044\u307e\u3059\u3002\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u5fdc\u7b54\u3057\u305f\u304b\u3001\u305d\u3057\u3066 200 \u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u8fd4\u3057\u305f\u304b\uff1f<\/i> \u53ef\u7528\u6027\u306f\u4e0d\u53ef\u6b20\u3067\u3059\u304c\u3001API \u4e3b\u5c0e\u306e\u6700\u65b0\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u306f\u3001\u305d\u308c\u3060\u3051\u3067\u306f\u3082\u306f\u3084\u5341\u5206\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n

\u5b9f\u969b\u306e\u672c\u756a\u74b0\u5883\u3067\u306f\u3001API \u306f HTTP \u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u6210\u529f\u3057\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u5185\u5bb9\u304c\u8aa4\u3063\u3066\u3044\u308b\u3001\u307e\u305f\u306f\u4e0d\u5b8c\u5168\u306a\u30da\u30a4\u30ed\u30fc\u30c9<\/b> \u3092\u8fd4\u3059\u3053\u3068\u304c\u983b\u7e41\u306b\u3042\u308a\u307e\u3059\u3002\u8a8d\u8a3c\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6b20\u3044\u305f\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u30d3\u30b8\u30cd\u30b9\u4e0a\u91cd\u8981\u306a API \u304c\u3001\u6709\u52b9\u306a\u30c7\u30fc\u30bf\u3067\u306f\u306a\u304f\u7a7a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3 API \u304c\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u58ca\u3059\u3053\u3068\u306a\u304f\u30ec\u30b9\u30dd\u30f3\u30b9\u69cb\u9020\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u5916\u90e8\u304b\u3089\u898b\u308b\u3068\u3059\u3079\u3066\u304c\u300c\u7a3c\u50cd\u4e2d\u300d\u306b\u898b\u3048\u3066\u3082\u3001\u5b9f\u969b\u306b\u306f\u9023\u643a\u304c\u3059\u3067\u306b\u7834\u7dbb\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n

\u3053\u308c\u304c\u3001API \u30ec\u30b9\u30dd\u30f3\u30b9\u691c\u8a3c<\/b> \u304c\u7d99\u7d9a\u7684\u306a Web API \u76e3\u8996\u306b\u304a\u3051\u308b\u4e2d\u6838\u8981\u4ef6\u3068\u306a\u308b\u7406\u7531\u3067\u3059\u3002\u76e3\u8996\u3067\u306f\u3001API \u304c\u5fdc\u7b54\u3059\u308b\u304b\u3069\u3046\u304b\u3060\u3051\u3067\u306a\u304f\u3001\u6b63\u3057\u304f\u4e00\u8cab\u3057\u3066\u5fdc\u7b54\u3057\u3066\u3044\u308b\u304b<\/b> \u3092\u691c\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5b58\u5728\u3001\u671f\u5f85\u3055\u308c\u308b\u5024\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u69cb\u9020\u3092\u691c\u8a3c\u3057\u3001\u30b5\u30a4\u30ec\u30f3\u30c8\u306a\u969c\u5bb3\u304c\u4e0b\u6d41\u306b\u6ce2\u53ca\u3059\u308b\u524d\u306b\u691c\u77e5\u3067\u304d\u307e\u3059\u3002<\/p>\n

CI\/CD \u4e2d\u306b\u5b9f\u884c\u3055\u308c\u308b API \u30c6\u30b9\u30c8\u3068\u306f\u7570\u306a\u308a\u3001\u76e3\u8996\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3<\/a> \u306f\u672c\u756a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u7d99\u7d9a\u7684\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u30c7\u30d7\u30ed\u30a4\u6642\u3060\u3051\u3067\u306a\u304f\u3001\u6642\u9593\u306e\u7d4c\u904e\u3068\u3068\u3082\u306b \u30ea\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3\u3001\u5951\u7d04\u306e\u30c9\u30ea\u30d5\u30c8\u3001\u90e8\u5206\u7684\u306a\u969c\u5bb3<\/b> \u3092\u691c\u51fa\u3059\u308b\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u9069\u5207\u306b\u5b9f\u88c5\u3055\u308c\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u691c\u8a3c\u306f\u3001API \u306e\u4fe1\u983c\u6027\u3001SLA\u3001\u9867\u5ba2\u5411\u3051\u9023\u643a\u3092\u5b88\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30bb\u30fc\u30d5\u30ac\u30fc\u30c9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u3053\u308c\u3089\u306e\u8003\u3048\u65b9\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u3001Web API \u76e3\u8996\u306e\u4ed5\u7d44\u307f<\/b><\/a> \u3068\u3001\u691c\u8a3c\u304c\u5358\u306a\u308b\u7a3c\u50cd\u78ba\u8a8d\u3092\u8d85\u3048\u305f\u5305\u62ec\u7684\u306a\u76e3\u8996\u6226\u7565\u306e\u4e2d\u3067\u3069\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u679c\u305f\u3059\u306e\u304b\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n

JSONPath \u306e\u89e3\u8aac\uff1a\u3067\u304d\u308b\u3053\u3068\uff08\u3067\u304d\u306a\u3044\u3053\u3068\uff09<\/h2>\n

JSONPath \u306f\u3001JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u7279\u5b9a\u306e\u5024\u3092\u62bd\u51fa\u3059\u308b\u305f\u3081\u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3059\u3002API \u306b\u304a\u3044\u3066\u306f\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u7279\u5b9a\u3001\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8d70\u67fb\u3001\u914d\u5217\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30da\u30a4\u30ed\u30fc\u30c9\u3078\u306e\u6761\u4ef6\u30ed\u30b8\u30c3\u30af\u306e\u9069\u7528\u3092\u6b63\u78ba\u306b\u884c\u3046\u624b\u6bb5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n

Web API \u76e3\u8996<\/b> \u306b\u304a\u3044\u3066 JSONPath \u304c\u6700\u3082\u6709\u52b9\u306a\u306e\u306f\u3001\u91cd\u8981\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3001\u671f\u5f85\u3069\u304a\u308a\u306b\u632f\u308b\u821e\u3063\u3066\u3044\u308b\u304b<\/b> \u3092\u78ba\u8a8d\u3059\u308b\u5834\u5408\u3067\u3059\u3002\u4e00\u822c\u7684\u306a\u76e3\u8996\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n