{"id":1856,"date":"2022-07-02T00:16:34","date_gmt":"2022-07-01T16:16:34","guid":{"rendered":"https:\/\/yukihiew.com\/?p=1856"},"modified":"2022-08-10T23:35:35","modified_gmt":"2022-08-10T15:35:35","slug":"javascript-get-api","status":"publish","type":"post","link":"https:\/\/yukihiew.com\/javascript-get-api\/","title":{"rendered":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599"},"content":{"rendered":"\n

\u4f7f\u7528 javascript\u4e32\u63a5API<\/strong> \u662f\u64b0\u5beb\u5404\u7a2e\u9700\u8981\u8de8\u7db2\u7ad9\u53d6\u8cc7\u6599\u7684\u7db2\u9801\u6216app\u7684\u5fc5\u8981\u6280\u80fd\uff0c\u5728\u500b\u4eba\u7df4\u7fd2\u4e0a\u4e5f\u662f\u5f88\u597d\u7684\u53d6\u8cc7\u6599\u65b9\u5f0f\uff0c\u6709\u4e86\u9019\u4e9b\u8cc7\u6599\u5c31\u53ef\u4ee5\u505a\u51fa\u985e\u4f3c\u53e3\u7f69\u5eab\u5b58\u5730\u5716\u3001\u7e23\u5e02\u666f\u9ede\u67e5\u8a62\u3001\u5404\u7e23\u5e02\u7a7a\u6c61\u72c0\u614b\u2026\u7b49\uff0c\u9019\u6b21\u7b46\u8a18\u4f86\u81ea\u65bc\u7df4\u7fd2\u4f7f\u7528\u9ad8\u96c4\u89c0\u5149\u5c40\u63d0\u4f9b\u7684API\u4e32\u63a5\u53d6\u5f97\u666f\u9ede\u7684JSON\u8cc7\u6599\uff0c\u7136\u5f8c\u5c07\u8cc7\u6599\u8655\u7406\u5f8c\u5448\u73fe\u5728\u7db2\u9801\u4e0a\u3002
\u90a3\u9ebc\u5c31\u958b\u59cb\u5427!<\/p>\n\n\n

\u5148\u5efa\u7acb\u4e00\u500bhttp\u8acb\u6c42 \u548c \u4e00\u500b\u5b58\u8cc7\u6599\u7528\u7684\u9663\u5217<\/h2>\n\n\n
let xhr = new XMLHttpRequest(),\r\n    data = [];<\/code><\/pre>\n\n\n

\u4f7f\u7528.open\u5411\u63d0\u4f9bJSON\u8cc7\u6599\u7684\u7db2\u7ad9api\u767c\u9001get\u8acb\u6c42<\/h2>\n\n\n
xhr.open('get','https:\/\/api.kcg.gov.tw\/api\/service\/get\/9c8e1450-e833-499c-8320-29b36b7ace5c');<\/code><\/pre>\n\n\n\n

\u9019\u500bopen\u7684\u6982\u5ff5\u6bd4\u8f03\u50cf\u662f\u5148\u8ddf\u5c0d\u65b9\u7db2\u7ad9\u8a62\u554f\u8aaa\uff0c\u80fd\u4e0d\u80fd\u8ddf\u4f60\u62ff\u8cc7\u6599\u5462? \u9019\u6a23<\/p>\n\n\n

\u4f7f\u7528.send\u5411\u5c0d\u65b9\u7db2\u7ad9\u767c\u9001\u9700\u6c42<\/h2>\n\n\n
xhr.send(null);<\/code><\/pre>\n\n\n\n

\u5982\u679c\u662f\u8981\u7d22\u53d6\u5c0d\u65b9\u7684\u5168\u90e8\u8cc7\u6599(\u4e0d\u662f\u7279\u5b9a\u8cc7\u6599)\uff0c\u5c31\u767c\u9001null\u3002<\/p>\n\n\n

\u4f7f\u7528.onload\uff0c\u6216\u662f\u5efa\u7acb\u4e00\u500b\u51fd\u5f0f\u505aload\u76e3\u807d<\/h2>\n\n\n
xhr.onload = function(){ \/\/loading\u5b8c\u6210\u5f8c\u5c31\u6703\u7e7c\u7e8c\u57f7\u884c\u6b64function\r\n    let str = JSON.parse(xhr.responseText) \/\/\u5229\u7528.parse\u8f49\u63db\u6210\u9663\u5217\r\n    ...\u4f60\u8981\u57f7\u884c\u7684\u5f8c\u7e8c\u7a0b\u5f0f\r\n}\r\n\u6216\r\nvar xhr = new XMLHttpRequest();\r\nxhr.addEventListener(\"load\", mainJs); \/\/loading\u5b8c\u6210\u5f8c\u5c31\u6703\u57f7\u884cmainJs\r\nxhr.open(\"GET\", \"http:\/\/www.example.org\/example.txt\");\r\nxhr.send();\r\n\r\nfunction mainJs () {\r\n  let str = JSON.parse(xhr.responseText);\r\n  ...\u4f60\u8981\u57f7\u884c\u7684\u5f8c\u7e8c\u7a0b\u5f0f\r\n}<\/code><\/pre>\n\n\n\n

\u767c\u9001\u5f8c\u7b49\u5f85\u5c0d\u65b9\u56de\u50b3\u8cc7\u6599\u7d66\u4f60\uff0c\u6703\u5b58\u5728responseText\u88e1\uff0c\u56e0\u70ba\u700f\u89bd\u5668\u4e5f\u9700\u8981\u6642\u9593\u63a5\u6536\uff0c\u6240\u4ee5\u8981\u7b49\u63a5\u53d7\u5230\u8cc7\u6599\u5f8c\u624d\u958b\u59cb\u8655\u7406\u62ff\u5230\u7684\u8cc7\u6599\uff0c\u56e0\u6b64\u8981\u4f7f\u7528.onload\uff0c\u6216\u662f\u5efa\u7acb\u4e00\u500b\u51fd\u5f0f\u518d\u505aload\u76e3\u807d\u3002<\/p>\n\n\n

\u53c3\u8003\u8cc7\u6599<\/h2>\n\n\n

https:\/\/developer.mozilla.org\/zh-TW\/docs\/Web\/API\/XMLHttpRequest\/Using_XMLHttpRequest<\/p>\n\n\n\n

\u7dda\u4e0a\u8ab2\u7a0b\u6240\u5b78<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528 javascript\u4e32\u63a5API \u662f\u64b0\u5beb\u5404\u7a2e\u9700\u8981\u8de8\u7db2\u7ad9\u53d6\u8cc7\u6599\u7684\u7db2\u9801\u6216app\u7684\u5fc5\u8981\u6280\u80fd\uff0c\u5728\u500b\u4eba\u7df4\u7fd2\u4e0a\u4e5f\u662f\u5f88\u597d […]<\/p>\n","protected":false},"author":1,"featured_media":1859,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[124],"tags":[125],"class_list":["post-1856","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-124","tag-javascript","entry","has-media"],"yoast_head":"\n\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI<\/title>\n<meta name=\"description\" content=\"\u4f7f\u7528 javascript\u4e32\u63a5API\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yukihiew.com\/javascript-get-api\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528 javascript\u4e32\u63a5API\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yukihiew.com\/javascript-get-api\/\" \/>\n<meta property=\"og:site_name\" content=\"\u9019\u88e1\u662fYUKI\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-01T16:16:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-10T15:35:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yuki Hiew\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yuki Hiew\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/\"},\"author\":{\"name\":\"Yuki Hiew\",\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630\"},\"headline\":\"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599\",\"datePublished\":\"2022-07-01T16:16:34+00:00\",\"dateModified\":\"2022-08-10T15:35:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/\"},\"wordCount\":33,\"publisher\":{\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630\"},\"image\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1\",\"keywords\":[\"javascript\"],\"articleSection\":[\"\u524d\u7aef\u76f8\u95dc\"],\"inLanguage\":\"zh-TW\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/\",\"url\":\"https:\/\/yukihiew.com\/javascript-get-api\/\",\"name\":\"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI\",\"isPartOf\":{\"@id\":\"https:\/\/yukihiew.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1\",\"datePublished\":\"2022-07-01T16:16:34+00:00\",\"dateModified\":\"2022-08-10T15:35:35+00:00\",\"description\":\"\u4f7f\u7528 javascript\u4e32\u63a5API\",\"breadcrumb\":{\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/yukihiew.com\/javascript-get-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1\",\"width\":600,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/yukihiew.com\/javascript-get-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/yukihiew.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Note | \u7b46\u8a18\u7cfb\u5217\",\"item\":\"https:\/\/yukihiew.com\/category\/coding-note\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u524d\u7aef\u76f8\u95dc\",\"item\":\"https:\/\/yukihiew.com\/category\/coding-note\/%e5%89%8d%e7%ab%af%e7%9b%b8%e9%97%9c\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/yukihiew.com\/#website\",\"url\":\"https:\/\/yukihiew.com\/\",\"name\":\"\u9019\u88e1\u662fYUKI\",\"description\":\"\u8ddf\u8457YUKI\u5403\u559d\u73a9\u6a02\u5b78\u7a0b\u5f0f \\\\(\u25cf\u2019U`\u25cf\uff09\/\",\"publisher\":{\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/yukihiew.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630\",\"name\":\"Yuki Hiew\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i1.wp.com\/yukihiew.com\/wp-content\/uploads\/2021\/08\/cropped-fav.png?fit=512%2C512&ssl=1\",\"contentUrl\":\"https:\/\/i1.wp.com\/yukihiew.com\/wp-content\/uploads\/2021\/08\/cropped-fav.png?fit=512%2C512&ssl=1\",\"width\":512,\"height\":512,\"caption\":\"Yuki Hiew\"},\"logo\":{\"@id\":\"https:\/\/yukihiew.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/yukihiew.com\/author\/123milkcat\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI","description":"\u4f7f\u7528 javascript\u4e32\u63a5API","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yukihiew.com\/javascript-get-api\/","og_locale":"zh_TW","og_type":"article","og_title":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI","og_description":"\u4f7f\u7528 javascript\u4e32\u63a5API","og_url":"https:\/\/yukihiew.com\/javascript-get-api\/","og_site_name":"\u9019\u88e1\u662fYUKI","article_published_time":"2022-07-01T16:16:34+00:00","article_modified_time":"2022-08-10T15:35:35+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg","type":"image\/jpeg"}],"author":"Yuki Hiew","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"Yuki Hiew","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yukihiew.com\/javascript-get-api\/#article","isPartOf":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/"},"author":{"name":"Yuki Hiew","@id":"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630"},"headline":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599","datePublished":"2022-07-01T16:16:34+00:00","dateModified":"2022-08-10T15:35:35+00:00","mainEntityOfPage":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/"},"wordCount":33,"publisher":{"@id":"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630"},"image":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1","keywords":["javascript"],"articleSection":["\u524d\u7aef\u76f8\u95dc"],"inLanguage":"zh-TW"},{"@type":"WebPage","@id":"https:\/\/yukihiew.com\/javascript-get-api\/","url":"https:\/\/yukihiew.com\/javascript-get-api\/","name":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599 · \u9019\u88e1\u662fYUKI","isPartOf":{"@id":"https:\/\/yukihiew.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage"},"image":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1","datePublished":"2022-07-01T16:16:34+00:00","dateModified":"2022-08-10T15:35:35+00:00","description":"\u4f7f\u7528 javascript\u4e32\u63a5API","breadcrumb":{"@id":"https:\/\/yukihiew.com\/javascript-get-api\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yukihiew.com\/javascript-get-api\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/yukihiew.com\/javascript-get-api\/#primaryimage","url":"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1","contentUrl":"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1","width":600,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/yukihiew.com\/javascript-get-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/yukihiew.com\/"},{"@type":"ListItem","position":2,"name":"Note | \u7b46\u8a18\u7cfb\u5217","item":"https:\/\/yukihiew.com\/category\/coding-note\/"},{"@type":"ListItem","position":3,"name":"\u524d\u7aef\u76f8\u95dc","item":"https:\/\/yukihiew.com\/category\/coding-note\/%e5%89%8d%e7%ab%af%e7%9b%b8%e9%97%9c\/"},{"@type":"ListItem","position":4,"name":"\u7b46\u8a18 | \u4f7f\u7528javascript\u4e32\u63a5api \u64b0\u5bebhttp\u8acb\u6c42 \u53d6\u5f97json\u8cc7\u6599"}]},{"@type":"WebSite","@id":"https:\/\/yukihiew.com\/#website","url":"https:\/\/yukihiew.com\/","name":"\u9019\u88e1\u662fYUKI","description":"\u8ddf\u8457YUKI\u5403\u559d\u73a9\u6a02\u5b78\u7a0b\u5f0f \\(\u25cf\u2019U`\u25cf\uff09\/","publisher":{"@id":"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yukihiew.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":["Person","Organization"],"@id":"https:\/\/yukihiew.com\/#\/schema\/person\/472fc032409857a4f674434a6b357630","name":"Yuki Hiew","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/yukihiew.com\/#\/schema\/person\/image\/","url":"https:\/\/i1.wp.com\/yukihiew.com\/wp-content\/uploads\/2021\/08\/cropped-fav.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i1.wp.com\/yukihiew.com\/wp-content\/uploads\/2021\/08\/cropped-fav.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Yuki Hiew"},"logo":{"@id":"https:\/\/yukihiew.com\/#\/schema\/person\/image\/"},"url":"https:\/\/yukihiew.com\/author\/123milkcat\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/yukihiew.com\/wp-content\/uploads\/2022\/07\/javascript-get-api-cover.jpg?fit=600%2C400&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/posts\/1856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/comments?post=1856"}],"version-history":[{"count":2,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/posts\/1856\/revisions"}],"predecessor-version":[{"id":1858,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/posts\/1856\/revisions\/1858"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/media\/1859"}],"wp:attachment":[{"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/media?parent=1856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/categories?post=1856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yukihiew.com\/wp-json\/wp\/v2\/tags?post=1856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}