{"id":19174,"date":"2020-05-29T09:51:56","date_gmt":"2020-05-29T02:51:56","guid":{"rendered":"https:\/\/itviec.com\/blog\/?p=19174"},"modified":"2024-10-07T18:52:15","modified_gmt":"2024-10-07T11:52:15","slug":"api-la-gi","status":"publish","type":"post","link":"https:\/\/itviec.com\/blog\/api-la-gi\/","title":{"rendered":"API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">N\u1ed9i dung b\u00e0i vi\u1ebft<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#API_la_gi\" >API l\u00e0 g\u00ec?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#4_dac_diem_noi_bat_cua_API\" >4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#Uu_va_nhuoc_diem_cua_API\" >\u01afu v\u00e0 nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a API<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#Ung_dung_cua_API\" >\u1ee8ng d\u1ee5ng c\u1ee7a API<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#Lam_sao_de_dam_bao_tinh_bao_mat_cho_API\" >L\u00e0m sao \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o t\u00ednh b\u1ea3o m\u1eadt cho API?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/#Nhung_API_mien_phi_danh_cho_developer\" >Nh\u1eefng API mi\u1ec5n ph\u00ed d\u00e0nh cho developer<\/a><\/li><\/ul><\/nav><\/div>\n\r\n<p><strong><em>API l\u00e0 g\u00ec?<\/em> <em>API l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Application Programming Interface &#8211; ph\u01b0\u01a1ng th\u1ee9c trung gian k\u1ebft n\u1ed1i c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c nhau.<\/em><\/strong><\/p>\r\n\r\n\r\n\r\n<p>S\u1eed d\u1ee5ng API gi\u00fap developer \u0111\u1ea9y nhanh qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m, t\u1ea1o ra s\u1ef1 nhanh ch\u00f3ng, thu\u1eadn ti\u1ec7n \u0111\u1ec3 h\u01b0\u1edbng \u0111\u1ebfn m\u1ee5c ti\u00eau cu\u1ed1i l\u00e0 n\u00e2ng cao hi\u1ec7u su\u1ea5t c\u00f4ng vi\u1ec7c.<\/p>\r\n\r\n\r\n\r\n<p>\u0110\u1ecdc b\u00e0i vi\u1ebft c\u1ee7a ITviec \u0111\u1ec3 t\u00ecm hi\u1ec3u xem:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>API l\u00e0 g\u00ec? Web API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API l\u00e0 g\u00ec?<\/li>\r\n<li>\u01afu, nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a API v\u00e0 c\u00e1c \u1ee9ng d\u1ee5ng c\u1ee7a API<\/li>\r\n<li>L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o t\u00ednh b\u1ea3o m\u1eadt cho API<\/li>\r\n<li>Nh\u1eefng API mi\u1ec5n ph\u00ed cho developer th\u1ef1c h\u00e0nh<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><strong>Xem th\u00eam <a href=\"https:\/\/itviec.com\/viec-lam-it\/developer?utm_source=blogpost&amp;utm_medium=first_post&amp;utm_campaign=linktosite\" target=\"_blank\" rel=\"noreferrer noopener\">vi\u1ec7c l\u00e0m Developer<\/a> tr\u00ean ITviec<\/strong><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-api-la-gi\"><span class=\"ez-toc-section\" id=\"API_la_gi\"><\/span><strong>API l\u00e0 g\u00ec?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>API l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Application Programming Interface &#8211; ph\u01b0\u01a1ng th\u1ee9c trung gian k\u1ebft n\u1ed1i c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c nhau.<\/p>\r\n\r\n\r\n\r\n<p>N\u00f3 cung c\u1ea5p kh\u1ea3 n\u0103ng truy xu\u1ea5t \u0111\u1ebfn m\u1ed9t t\u1eadp c\u00e1c h\u00e0m hay d\u00f9ng, t\u1eeb \u0111\u00f3 c\u00f3 th\u1ec3 trao \u0111\u1ed5i d\u1eef li\u1ec7u gi\u1eefa c\u00e1c \u1ee9ng d\u1ee5ng.<\/p>\r\n\r\n\r\n\r\n<p>Thi tho\u1ea3ng v\u1eabn c\u00f3 ng\u01b0\u1eddi l\u1ea7m t\u01b0\u1edfng API l\u00e0 m\u1ed9t <a href=\"https:\/\/itviec.com\/blog\/ngon-ngu-lap-trinh\/\" target=\"_blank\" rel=\"noreferrer noopener\">ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh<\/a> nh\u01b0ng th\u1ef1c ra, API ch\u1ec9 l\u00e0 c\u00e1c h\u00e0m hay th\u1ee7 t\u1ee5c th\u00f4ng th\u01b0\u1eddng. C\u00e1c h\u00e0m n\u00e0y \u0111\u01b0\u1ee3c vi\u1ebft tr\u00ean nhi\u1ec1u ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh kh\u00e1c nhau.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><em>\u0110\u1ec3 hi\u1ec3u r\u00f5 h\u01a1n API l\u00e0 g\u00ec, h\u00e3y t\u01b0\u1edfng t\u01b0\u1ee3ng b\u1ea1n \u0111ang ng\u1ed3i trong m\u1ed9t nh\u00e0 h\u00e0ng, tr\u01b0\u1edbc m\u1eb7t b\u1ea1n l\u00e0 menu \u0111\u1ec3 g\u1ecdi th\u1ee9c \u0103n. Nh\u00e0 b\u1ebfp l\u00e0 m\u1ed9t ph\u1ea7n c\u1ee7a \u201ch\u1ec7 th\u1ed1ng\u201d, n\u01a1i s\u1ebd chu\u1ea9n b\u1ecb nh\u1eefng m\u00f3n \u0103n m\u00e0 b\u1ea1n g\u1ecdi. Tuy nhi\u00ean, l\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 nh\u00e0 b\u1ebfp bi\u1ebft \u0111\u01b0\u1ee3c b\u1ea1n mu\u1ed1n \u0103n m\u00f3n n\u00e0o? <\/em>V<em>\u00e0 l\u00e0m sao \u0111\u1ec3 h\u1ecd ph\u00e2n ph\u1ed1i th\u1ee9c \u0103n \u0111\u1ebfn b\u00e0n c\u1ee7a b\u1ea1n? \u0110\u00e2y l\u00e0 l\u00fac c\u1ea7n \u0111\u1ebfn s\u1ef1 xu\u1ea5t hi\u1ec7n c\u1ee7a ng\u01b0\u1eddi ph\u1ee5c v\u1ee5, \u0111\u00f3ng vai tr\u00f2 nh\u01b0 API.<\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><em>Ng\u01b0\u1eddi ph\u1ee5c v\u1ee5 (hay API) s\u1ebd nh\u1eadn y\u00eau c\u1ea7u t\u1eeb b\u1ea1n v\u00e0 truy\u1ec1n \u0111\u1ea1t v\u1edbi nh\u00e0 b\u1ebfp (h\u1ec7 th\u1ed1ng) nh\u1eefng th\u1ee9 c\u1ea7n l\u00e0m. Sau \u0111\u00f3 ng\u01b0\u1eddi ph\u1ee5c v\u1ee5 s\u1ebd ph\u1ea3n h\u1ed3i ng\u01b0\u1ee3c l\u1ea1i cho b\u1ea1n, trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y, h\u1ecd s\u1ebd mang th\u1ee9c \u0103n sau khi nh\u00e0 b\u1ebfp ho\u00e0n th\u00e0nh \u0111\u1ebfn t\u1eadn b\u00e0n cho b\u1ea1n.<\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-4-d\u1eb7c-di\u1ec3m-n\u1ed5i-b\u1eadt-c\u1ee7a-api\"><span class=\"ez-toc-section\" id=\"4_dac_diem_noi_bat_cua_API\"><\/span><strong>4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>API s\u1eed d\u1ee5ng m\u00e3 ngu\u1ed3n m\u1edf, d\u00f9ng \u0111\u01b0\u1ee3c v\u1edbi m\u1ecdi client h\u1ed7 tr\u1ee3 XML, JSON.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>API c\u00f3 kh\u1ea3 n\u0103ng \u0111\u00e1p \u1ee9ng \u0111\u1ea7y \u0111\u1ee7 c\u00e1c th\u00e0nh ph\u1ea7n HTTP: URI, request\/response headers, caching, versioning, content forma\u2026. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c host n\u1eb1m trong ph\u1ea7n \u1ee9ng d\u1ee5ng ho\u1eb7c tr\u00ean IIS.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>M\u00f4 h\u00ecnh web API d\u00f9ng \u0111\u1ec3 h\u1ed7 tr\u1ee3 MVC nh\u01b0: unit test, injection, ioc container, model binder, action result, filter, routing, controller. Ngo\u00e0i ra, n\u00f3 c\u0169ng h\u1ed7 tr\u1ee3 RESTful \u0111\u1ea7y \u0111\u1ee7 c\u00e1c ph\u01b0\u01a1ng th\u1ee9c nh\u01b0: GET, POST, PUT, DELETE c\u00e1c d\u1eef li\u1ec7u.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>\u0110\u01b0\u1ee3c \u0111\u00e1nh gi\u00e1 l\u00e0 m\u1ed9t trong nh\u1eefng ki\u1ec3u ki\u1ebfn tr\u00fac h\u1ed7 tr\u1ee3 t\u1ed1t nh\u1ea5t v\u1edbi c\u00e1c thi\u1ebft b\u1ecb c\u00f3 l\u01b0\u1ee3ng b\u0103ng th\u00f4ng b\u1ecb gi\u1edbi h\u1ea1n nh\u01b0 smartphone, tablet&#8230;<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-\u01b0u-va-nh\u01b0\u1ee3c-di\u1ec3m-c\u1ee7a-api\"><span class=\"ez-toc-section\" id=\"Uu_va_nhuoc_diem_cua_API\"><\/span><strong>\u01afu v\u00e0 nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a API<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-\u01b0u-di\u1ec3m\"><strong>\u01afu \u0111i\u1ec3m<\/strong><\/h3>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Giao ti\u1ebfp hai chi\u1ec1u ph\u1ea3i \u0111\u01b0\u1ee3c x\u00e1c nh\u1eadn trong c\u00e1c giao d\u1ecbch s\u1eed d\u1ee5ng API. C\u0169ng ch\u00ednh v\u00ec v\u1eady m\u00e0 c\u00e1c th\u00f4ng tin r\u1ea5t \u0111\u00e1ng tin c\u1eady.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"2\">\r\n<li>API l\u00e0 c\u00f4ng c\u1ee5 m\u00e3 ngu\u1ed3n m\u1edf, c\u00f3 th\u1ec3 k\u1ebft n\u1ed1i m\u1ecdi l\u00fac nh\u1edd v\u00e0o Internet.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"3\">\r\n<li>H\u1ed7 tr\u1ee3 ch\u1ee9c n\u0103ng RESTful m\u1ed9t c\u00e1ch \u0111\u1ea7y \u0111\u1ee7.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"4\">\r\n<li>C\u1ea5u h\u00ecnh \u0111\u01a1n gi\u1ea3n khi \u0111\u01b0\u1ee3c so s\u00e1nh v\u1edbi WCF (Window Communication Foundation). Cung c\u1ea5p c\u1ea5p tr\u1ea3i nghi\u1ec7m th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-nh\u01b0\u1ee3c-di\u1ec3m\"><strong>Nh\u01b0\u1ee3c \u0111i\u1ec3m<\/strong><\/h3>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>T\u1ed1n nhi\u1ec1u chi ph\u00ed ph\u00e1t tri\u1ec3n, v\u1eadn h\u00e0nh, ch\u1ec9nh s\u1eeda.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>\u0110\u00f2i h\u1ecfi ki\u1ebfn th\u1ee9c chuy\u00ean s\u00e2u.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>C\u00f3 th\u1ec3 g\u1eb7p v\u1ea5n \u0111\u1ec1 b\u1ea3o m\u1eadt khi b\u1ecb t\u1ea5n c\u00f4ng h\u1ec7 th\u1ed1ng.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><em>M\u00ecnh s\u1eed d\u1ee5ng API trong h\u1ea7u h\u1ebft nh\u1eefng d\u1ef1 \u00e1n web application v\u00e0 mobile application<\/em>. M<em>\u1ee5c \u0111\u00edch l\u00e0 \u0111\u1ec3 k\u1ebft n\u1ed1i th\u01b0 vi\u1ec7n, d\u1eef li\u1ec7u gi\u1eefa nh\u1eefng n\u1ec1n t\u1ea3ng kh\u00e1c nhau. Tuy nhi\u00ean, t\u00ednh b\u1ea3o m\u1eadt c\u1ee7a API c\u00f2n k\u00e9m, khi\u1ebfn m\u00ecnh \u0111au c\u1ea3 \u0111\u1ea7u (c\u01b0\u1eddi). &#8211; Ng\u1ecdc Th\u00e1i chia s\u1ebb<\/em> &#8211;<\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"322\" class=\"wp-image-19184\" src=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-1-640x322.jpg\" alt=\"API l\u00e0 g\u00ec, \u1ee9ng d\u1ee5ng c\u1ee7a API trong cu\u1ed9c s\u1ed1ng\" srcset=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-1.jpg 640w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-1-300x151.jpg 300w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-1-768x386.jpg 768w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-1-200x101.jpg 200w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-\u1ee9ng-d\u1ee5ng-c\u1ee7a-api\"><span class=\"ez-toc-section\" id=\"Ung_dung_cua_API\"><\/span><strong>\u1ee8ng d\u1ee5ng c\u1ee7a API<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Web API<\/strong>: L\u00e0 h\u1ec7 th\u1ed1ng API \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong c\u00e1c h\u1ec7 th\u1ed1ng website, ch\u1eb3ng h\u1ea1n: Google, Facebook&#8230; H\u1ea7u h\u1ebft c\u00e1c website \u0111\u1ec1u cung c\u1ea5p h\u1ec7 th\u1ed1ng API cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i, l\u1ea5y d\u1eef li\u1ec7u ho\u1eb7c c\u1eadp nh\u1eadt c\u01a1 s\u1edf d\u1eef li\u1ec7u. \u0110a s\u1ed1 Web API \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf theo ti\u00eau chu\u1ea9n RESTful.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>API tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh<\/strong>: Windows hay Linux c\u00f3 r\u1ea5t nhi\u1ec1u API. H\u1ecd cung c\u1ea5p c\u00e1c t\u00e0i li\u1ec7u API l\u00e0 \u0111\u1eb7c t\u1ea3 c\u00e1c h\u00e0m, ph\u01b0\u01a1ng th\u1ee9c c\u0169ng nh\u01b0 c\u00e1c giao th\u1ee9c k\u1ebft n\u1ed1i. N\u00f3 gi\u00fap <a href=\"https:\/\/itviec.com\/viec-lam-it\/developer?utm_source=blogpost&amp;utm_medium=center_post&amp;utm_campaign=linktosite\" target=\"_blank\" rel=\"noreferrer noopener\">l\u1eadp tr\u00ecnh vi\u00ean<\/a> c\u00f3 th\u1ec3 t\u1ea1o ra c\u00e1c ph\u1ea7n m\u1ec1m \u1ee9ng d\u1ee5ng c\u00f3 th\u1ec3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp v\u1edbi h\u1ec7 \u0111i\u1ec1u h\u00e0nh.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>API c\u1ee7a th\u01b0 vi\u1ec7n ph\u1ea7n m\u1ec1m (framework):<\/strong> API m\u00f4 t\u1ea3 v\u00e0 quy \u0111\u1ecbnh c\u00e1c h\u00e0nh \u0111\u1ed9ng mong mu\u1ed1n m\u00e0 c\u00e1c th\u01b0 vi\u1ec7n cung c\u1ea5p. M\u1ed9t API c\u00f3 th\u1ec3 c\u00f3 nhi\u1ec1u c\u00e1ch tri\u1ec3n khai kh\u00e1c nhau, gi\u00fap cho m\u1ed9t ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef n\u00e0y c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c th\u01b0 vi\u1ec7n vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef kh\u00e1c.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-lam-sao-d\u1ec3-d\u1ea3m-b\u1ea3o-tinh-b\u1ea3o-m\u1eadt-cho-api\"><span class=\"ez-toc-section\" id=\"Lam_sao_de_dam_bao_tinh_bao_mat_cho_API\"><\/span><strong>L\u00e0m sao \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o t\u00ednh b\u1ea3o m\u1eadt cho API?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-2-v\u1ea5n-d\u1ec1-ph\u1ed5-bi\u1ebfn-nh\u1ea5t-lien-quan-d\u1ebfn-b\u1ea3o-m\u1eadt-api\"><strong>2 v\u1ea5n \u0111\u1ec1 ph\u1ed5 bi\u1ebfn nh\u1ea5t li\u00ean quan \u0111\u1ebfn b\u1ea3o m\u1eadt API<\/strong><\/h3>\r\n\r\n\r\n\r\n<p><strong>1. SQL Injection<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Injection hay SQL Injection l\u00e0 m\u1ed9t l\u1ed7i kh\u00e1 ph\u1ed5 bi\u1ebfn. Nh\u1eefng k\u1ebb t\u1ea5n c\u00f4ng l\u1ee3i d\u1ee5ng l\u1ed7 h\u1ed5ng c\u1ee7a vi\u1ec7c ki\u1ec3m tra d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o trong c\u00e1c \u1ee9ng d\u1ee5ng web \u0111\u1ebfn h\u1ec7 th\u1ed1ng qu\u1ea3n l\u00fd c\u01a1 s\u1edf d\u1eef li\u1ec7u (DBMS) \u0111\u1ec3 khai th\u00e1c c\u00e1c th\u00f4ng tin nh\u1ea1y c\u1ea3m.<\/p>\r\n\r\n\r\n\r\n<p><strong>H\u01b0\u1edbng kh\u1eafc ph\u1ee5c:<\/strong> R\u00e0ng bu\u1ed9c th\u1eadt k\u1ef9 d\u1eef li\u1ec7u ng\u01b0\u1eddi d\u00f9ng nh\u1eadp v\u00e0o. C\u00f3 th\u1ec3 d\u00f9ng Regular Expression \u0111\u1ec3 lo\u1ea1i b\u1ecf \u0111i c\u00e1c k\u00fd t\u1ef1 l\u1ea1 ho\u1eb7c c\u00e1c k\u00fd t\u1ef1 kh\u00f4ng ph\u1ea3i l\u00e0 s\u1ed1 ho\u1eb7c d\u00f9ng c\u00e1c h\u00e0m c\u00f3 s\u1eb5n \u0111\u1ec3 gi\u1ea3m thi\u1ec3u l\u1ed7i.<\/p>\r\n\r\n\r\n\r\n<p><strong>2. Spam request<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Nh\u1eefng request \u0111\u1ec3 ch\u1ebf \u0111\u1ed9 c\u00f4ng khai r\u1ea5t d\u1ec5 b\u1ecb spam.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><em>V\u00ed d\u1ee5: ch\u1ec9 c\u1ea7n ho\u00e0n th\u00e0nh username v\u00e0 password \u0111\u1ec3 \u0111\u0103ng k\u00fd t\u00e0i kho\u1ea3n (d\u00f9 sau \u0111\u00f3 c\u00f3 y\u00eau c\u1ea7u x\u00e1c th\u1ef1c t\u00e0i kho\u1ea3n hay kh\u00f4ng).<\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p><em>Nh\u1eefng ng\u01b0\u1eddi th\u00edch \u201cngh\u1ecbch\u201d s\u1ebd vi\u1ebft m\u1ed9t \u0111o\u1ea1n script g\u1eedi request li\u00ean ti\u1ebfp cho server<\/em>. S<em>erver s\u1ebd ph\u1ea3i x\u1eed l\u00fd h\u1ebft c\u00e1c request n\u00e0y v\u00e0 ti\u1ebfn h\u00e0nh \u0111\u0103ng k\u00fd li\u00ean t\u1ee5c.<\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><strong>H\u01b0\u1edbng kh\u1eafc ph\u1ee5c:<\/strong> H\u00e3y khi\u1ebfn cho nh\u1eefng request n\u00e0y tr\u1edf n\u00ean ph\u1ee9c t\u1ea1p h\u01a1n. Ch\u1eb3ng h\u1ea1n: th\u00eam c\u00e2u h\u1ecfi b\u1ea3o m\u1eadt, y\u00eau c\u1ea7u ng\u01b0\u1eddi d\u00f9ng ch\u1edd trong gi\u00e2y l\u00e1t \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c ti\u1ebfp theo\u2026<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-m\u1ed9t-s\u1ed1-ph\u01b0\u01a1ng-an-ngan-ro-r\u1ec9-l\u1ed7-h\u1ed5ng-thong-tin-trong-api\"><strong>M\u1ed9t s\u1ed1 ph\u01b0\u01a1ng \u00e1n ng\u0103n r\u00f2 r\u1ec9 l\u1ed7 h\u1ed5ng th\u00f4ng tin trong API<\/strong><\/h3>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Ki\u1ec3m tra th\u1ea9m quy\u1ec1n ng\u01b0\u1eddi s\u1eed d\u1ee5ng v\u00e0 x\u00e1c th\u1ef1c \u1ee9ng d\u1ee5ng:<\/strong> Ngo\u00e0i x\u00e1c th\u1ef1c ng\u01b0\u1eddi s\u1eed d\u1ee5ng cu\u1ed1i, b\u1ea1n c\u1ea7n ph\u1ea3i x\u00e1c th\u1ef1c \u1ee9ng d\u1ee5ng. V\u00ed d\u1ee5 n\u1ebfu b\u1ea1n \u0111ang s\u1eed d\u1ee5ng \u1ee9ng d\u1ee5ng AirBnB ho\u1eb7c Uber, nh\u1eefng \u1ee9ng d\u1ee5ng n\u00e0y s\u1ebd g\u1ecdi c\u00e1c API c\u1ee7a ch\u00fang v\u00e0 v\u00ec v\u1eady \u1ee9ng d\u1ee5ng \u0111\u01b0\u1ee3c x\u00e1c th\u1ef1c.<\/li>\r\n<li><strong>M\u00e3 h\u00f3a d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c truy\u1ec1n \u0111i:<\/strong> S\u1eed d\u1ee5ng ch\u1ee9ng ch\u1ec9 SSL (Secure Sockets Layer) \u0111\u1ec3 m\u00e3 h\u00f3a c\u00e1c d\u1eef li\u1ec7u quan tr\u1ecdng.<\/li>\r\n<li><strong>Ch\u1eef k\u00fd s\u1ed1:<\/strong> C\u00e1c ch\u1eef k\u00fd s\u1ed1 l\u00e0 c\u00e1c chu\u1ed7i k\u00fd t\u1ef1 duy nh\u1ea5t t\u01b0\u1ee3ng tr\u01b0ng cho m\u1ed9t ng\u01b0\u1eddi s\u1eed d\u1ee5ng. B\u1ea1n l\u01b0u tr\u1eef c\u00e1c chu\u1ed7i n\u00e0y trong c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 ch\u1ec9 cung c\u1ea5p n\u1ebfu ng\u01b0\u1eddi s\u1eed d\u1ee5ng nh\u1eadp \u0111\u00fang t\u00ean v\u00e0 m\u1eadt kh\u1ea9u.<\/li>\r\n<li><strong>Tr\u00e1nh c\u00e1c m\u1eadt kh\u1ea9u c\u1ed1 \u0111\u1ecbnh ho\u1eb7c nh\u00fang:<\/strong> \u0110\u1eebng v\u00ec l\u01b0\u1eddi bi\u1ebfng mu\u1ed1n r\u00fat g\u1ecdn thao t\u00e1c m\u00e0 s\u1eed d\u1ee5ng m\u1eadt kh\u1ea9u \u0111\u01a1n gi\u1ea3n ho\u1eb7c l\u1ea5y th\u00f4ng tin ID v\u00e0 m\u1eadt kh\u1ea9u \u0111\u01b0\u1ee3c l\u01b0u c\u1ee5c b\u1ed9 tr\u00ean m\u1ed9t \u1ee9ng d\u1ee5ng di \u0111\u1ed9ng.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-nh\u1eefng-api-mi\u1ec5n-phi-danh-cho-developer\"><span class=\"ez-toc-section\" id=\"Nhung_API_mien_phi_danh_cho_developer\"><\/span><strong>Nh\u1eefng API mi\u1ec5n ph\u00ed d\u00e0nh cho developer<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong><a href=\"https:\/\/dog.ceo\/dog-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Dog API<\/a><\/strong>: API Dog ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed, cung c\u1ea5p c\u00e1c endpoints cho c\u00e1c \u1ea3nh v\u00e0 d\u1eef li\u1ec7u v\u0103n b\u1ea3n v\u1ec1 ch\u00f3. N\u00f3 h\u1ed7 tr\u1ee3 CORS do \u0111\u00f3 ch\u00fang ta c\u00f3 th\u1ec3 d\u00f9ng tr\u1ef1c ti\u1ebfp t\u1eeb c\u00e1c \u1ee9ng d\u1ee5ng front-end.<\/li>\r\n<li><strong><a href=\"https:\/\/www.petfinder.com\/developers\/v2\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">Petfinder<\/a><\/strong>: API n\u00e0y cung c\u1ea5p c\u00e1c d\u1eef li\u1ec7u v\u1ec1 nh\u1eadn nu\u00f4i th\u00fa c\u01b0ng, y\u00eau c\u1ea7u x\u00e1c th\u1ef1c b\u1eb1ng OAuth \u0111\u1ec3 truy c\u1eadp d\u1eef li\u1ec7u. API n\u00e0y c\u0169ng h\u1ed7 tr\u1ee3 CORS nh\u01b0 Dog API.<\/li>\r\n<li><strong><a href=\"https:\/\/shibe.online\/\" target=\"_blank\" rel=\"noreferrer noopener\">shibe.online<\/a>:<\/strong> shibe.online cung c\u1ea5p URL cho c\u00e1c h\u00ecnh \u1ea3nh v\u1ec1 nh\u1eefng ch\u00fa ch\u00f3 d\u1ec5 th\u01b0\u01a1ng \u0111\u1ec3 l\u00e0m d\u1eef li\u1ec7u. N\u00f3 d\u00f9ng c\u00e1c chu\u1ed7i truy v\u1ea5n \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u t\u1eeb API.<\/li>\r\n<li><strong><a href=\"https:\/\/www.animenewsnetwork.com\/encyclopedia\/api.php\" target=\"_blank\" rel=\"noreferrer noopener\">Anime News Network API<\/a>:<\/strong> N\u1ebfu b\u1ea1n th\u00edch Anime th\u00ec API n\u00e0y ch\u00ednh l\u00e0 d\u00e0nh cho b\u1ea1n. N\u00f3 tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u \u1edf c\u00e1c \u0111\u1ecbnh d\u1ea1ng kh\u00e1c nhau nh\u01b0 HTML ho\u1eb7c XML. Do \u0111\u00f3, n\u1ebfu b\u1ea1n c\u1ea7n thao t\u00e1c v\u00e0 hi\u1ec3n th\u1ecb d\u1eef li\u1ec7u th\u00ec b\u1ea1n s\u1ebd ph\u1ea3i chuy\u1ec3n \u0111\u1ed5i t\u1eeb XML sang JSON.<\/li>\r\n<li><strong><a href=\"https:\/\/jikan.moe\/\" target=\"_blank\" rel=\"noreferrer noopener\">Jikan<\/a>:<\/strong> \u0110\u00e2y l\u00e0 m\u1ed9t API d\u1eef li\u1ec7u anime kh\u00e1c, c\u00f3 1 REST API h\u1ed7 tr\u1ee3 CORS b\u00ean c\u1ea1nh c\u00e1c th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c t\u1ea1o cho c\u00e1c n\u1ec1n t\u1ea3ng kh\u00e1c nhau nh\u01b0 Python, Ruby v\u00e0 JavaScript.<\/li>\r\n<li><strong><a href=\"https:\/\/jsonplaceholder.typicode.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">JSONPlaceholder<\/a>:<\/strong> Cung c\u1ea5p m\u1ed9t API v\u1edbi c\u00e1c y\u00eau c\u1ea7u GET, POST, PUT v\u00e0 DELETE c\u00f3 h\u1ed7 tr\u1ee3 CORS. C\u00e1c endpoints \u0111\u01b0\u1ee3c cung c\u1ea5p v\u1edbi d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c t\u1ea3i s\u1eb5n m\u00e0 ch\u00fang ta c\u00f3 th\u1ec3 d\u00f9ng \u0111\u1ec3 hi\u1ec3n th\u1ecb v\u00e0 c\u1eadp nh\u1eadt.<\/li>\r\n<li><strong><a href=\"https:\/\/reqres.in\/\" target=\"_blank\" rel=\"noreferrer noopener\">REQ|RES<\/a>: <\/strong>C\u0169ng gi\u1ed1ng nh\u01b0 JSONPlaceholder, REQ|RES cung c\u1ea5p m\u1ed9t API th\u1ef1c s\u1ef1 \u0111\u1ec3 b\u1ea1n x\u00e2y d\u1ef1ng giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng. N\u00f3 c\u00f3 c\u00e1c endpoints cho t\u1ea5t c\u1ea3 c\u00e1c thao t\u00e1c HTTP \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 nh\u1eadn v\u00e0 thao t\u00e1c d\u1eef li\u1ec7u ng\u01b0\u1eddi d\u00f9ng fake. C\u00e1c d\u1eef li\u1ec7u n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c chu\u1ea9n b\u1ecb tr\u01b0\u1edbc n\u00ean b\u1ea1n c\u0169ng kh\u00f4ng ph\u1ea3i t\u1ef1 th\u00eam v\u00e0o n\u1eefa.<\/li>\r\n<\/ul>\r\n<blockquote>\r\n<p><em>Tham kh\u1ea3o: <strong><a href=\"https:\/\/itviec.com\/blog\/dien-toan-dam-may-la-gi\/\" target=\"_blank\" rel=\"noopener\">\u0110i\u1ec7n to\u00e1n \u0111\u00e1m m\u00e2y<\/a> l\u00e0 g\u00ec: Kh\u00e1i ni\u1ec7m c\u01a1 b\u1ea3n, ph\u00e2n lo\u1ea1i v\u00e0 \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf<\/strong><\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p>Nh\u00ecn chung, API l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 quan tr\u1ecdng cho c\u00e1c doanh nghi\u1ec7p thu\u1ed9c nhi\u1ec1u ng\u00e0nh. API mang \u0111\u1ebfn cho c\u00e1c c\u00f4ng ty c\u01a1 h\u1ed9i m\u1edf r\u1ed9ng quy m\u00f4, th\u00fac \u0111\u1ea9y s\u1ef1 \u0111\u1ed5i m\u1edbi v\u00e0 ti\u1ebfp c\u1eadn nhi\u1ec1u \u0111\u1ed1i t\u01b0\u1ee3ng h\u01a1n.<\/p>\r\n<p>Nh\u01b0 Forbes \u0111\u00e3 n\u00f3i, \u201cVi\u1ec7c doanh nghi\u1ec7p th\u1eafng hay thua ng\u00e0y c\u00e0ng ph\u1ee5 thu\u1ed9c v\u00e0o m\u1ee9c \u0111\u1ed9 h\u1ecd k\u1ebft n\u1ed1i v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng, thi\u1ebft b\u1ecb v\u00e0 d\u1ecbch v\u1ee5 c\u1ee7a b\u00ean ngo\u00e0i\u201d v\u00e0 x\u00e9t t\u1eeb g\u00f3c nh\u00ecn k\u1ef9 thu\u1eadt, API cho ph\u00e9p vi\u1ec7c k\u1ebft n\u1ed1i \u0111\u00f3 di\u1ec5n ra. C\u00f3 th\u1ec3 th\u1ea5y, API \u0111ang th\u00fac \u0111\u1ea9y m\u1ed9t l\u00e0n s\u00f3ng \u0111\u1ed5i m\u1edbi m\u1edbi t\u1eadp trung v\u00e0o c\u00e1c d\u1ecbch v\u1ee5 chia s\u1ebb.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2015\/07\/Robby2-200x200.png\" alt=\"Robby2\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p style=\"text-align: center;\"><strong>B\u1ea1n th\u1ea5y b\u00e0i vi\u1ebft hay v\u00e0 c\u1ea7n thi\u1ebft v\u1edbi nhi\u1ec1u ng\u01b0\u1eddi? \u0110\u1eebng ng\u1ea1i nh\u1ea5n n\u00fat Share b\u00ean d\u01b0\u1edbi nh\u00e9.<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\" style=\"text-align: center;\"><strong>V\u00e0 \u0111\u1eebng qu\u00ean tham kh\u1ea3o <a href=\"https:\/\/itviec.com\/it-jobs\/developer?utm_source=blogpost&amp;utm_medium=end_post&amp;utm_campaign=linktosite\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">vi\u1ec7c l\u00e0m Developer<\/a> tr\u00ean ITviec<\/strong><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>API l\u00e0 g\u00ec? API l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Application Programming Interface &#8211; ph\u01b0\u01a1ng th\u1ee9c trung gian k\u1ebft n\u1ed1i c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c nhau. S\u1eed d\u1ee5ng API gi\u00fap developer \u0111\u1ea9y nhanh qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m, t\u1ea1o ra s\u1ef1 nhanh ch\u00f3ng, thu\u1eadn ti\u1ec7n \u0111\u1ec3 h\u01b0\u1edbng \u0111\u1ebfn m\u1ee5c ti\u00eau cu\u1ed1i l\u00e0 n\u00e2ng cao [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":19180,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_gspb_post_css":"","footnotes":""},"categories":[109,111],"tags":[10125],"class_list":["post-19174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chuyen-mon-it","category-tai-lieu-it-online","tag-api"],"blocksy_meta":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>API l\u00e0 g\u00ec? Vi\u1ebft t\u1eaft c\u1ee7a t\u1eeb g\u00ec? K\u1ebft n\u1ed1i API \u0111\u1ec3 l\u00e0m g\u00ec?<\/title>\n<meta name=\"description\" content=\"API l\u00e0 g\u00ec? B\u00e0i vi\u1ebft gi\u1ea3i th\u00edch API l\u00e0 g\u00ec theo c\u00e1ch d\u1ec5 hi\u1ec3u nh\u1ea5t. V\u00e0 g\u1ee3i \u00fd nh\u1eefng c\u00e1ch b\u1ea3o m\u1eadt API m\u1ecdi Developer \u0111\u1ec1u c\u1ea7n bi\u1ebft.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itviec.com\/blog\/api-la-gi\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API\" \/>\n<meta property=\"og:description\" content=\"API l\u00e0 g\u00ec? API l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Application Programming Interface - ph\u01b0\u01a1ng th\u1ee9c trung gian k\u1ebft n\u1ed1i c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c nhau. S\u1eed d\u1ee5ng API gi\u00fap\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itviec.com\/blog\/api-la-gi\/\" \/>\n<meta property=\"og:site_name\" content=\"ITviec Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ITviec\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-29T02:51:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-07T11:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"669\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tinh To\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ITviec\" \/>\n<meta name=\"twitter:site\" content=\"@ITviec\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tinh To\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 ph\u00fat\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"API l\u00e0 g\u00ec? Vi\u1ebft t\u1eaft c\u1ee7a t\u1eeb g\u00ec? K\u1ebft n\u1ed1i API \u0111\u1ec3 l\u00e0m g\u00ec?","description":"API l\u00e0 g\u00ec? B\u00e0i vi\u1ebft gi\u1ea3i th\u00edch API l\u00e0 g\u00ec theo c\u00e1ch d\u1ec5 hi\u1ec3u nh\u1ea5t. V\u00e0 g\u1ee3i \u00fd nh\u1eefng c\u00e1ch b\u1ea3o m\u1eadt API m\u1ecdi Developer \u0111\u1ec1u c\u1ea7n bi\u1ebft.","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:\/\/itviec.com\/blog\/api-la-gi\/","og_locale":"vi_VN","og_type":"article","og_title":"API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API","og_description":"API l\u00e0 g\u00ec? API l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Application Programming Interface - ph\u01b0\u01a1ng th\u1ee9c trung gian k\u1ebft n\u1ed1i c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c nhau. S\u1eed d\u1ee5ng API gi\u00fap","og_url":"https:\/\/itviec.com\/blog\/api-la-gi\/","og_site_name":"ITviec Blog","article_publisher":"https:\/\/www.facebook.com\/ITviec","article_published_time":"2020-05-29T02:51:56+00:00","article_modified_time":"2024-10-07T11:52:15+00:00","og_image":[{"width":669,"height":350,"url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png","type":"image\/png"}],"author":"Tinh To","twitter_card":"summary_large_image","twitter_creator":"@ITviec","twitter_site":"@ITviec","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"Tinh To","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"9 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#article","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/"},"author":{"name":"Tinh To","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/6580f1be8090663be6e793f5d5f14d6c"},"headline":"API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API","datePublished":"2020-05-29T02:51:56+00:00","dateModified":"2024-10-07T11:52:15+00:00","mainEntityOfPage":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/"},"wordCount":2515,"publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"image":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png","keywords":["API"],"articleSection":["Chuy\u00ean m\u00f4n IT","T\u00e0i li\u1ec7u IT online"],"inLanguage":"vi"},{"@type":"WebPage","@id":"https:\/\/itviec.com\/blog\/api-la-gi\/","url":"https:\/\/itviec.com\/blog\/api-la-gi\/","name":"API l\u00e0 g\u00ec? Vi\u1ebft t\u1eaft c\u1ee7a t\u1eeb g\u00ec? K\u1ebft n\u1ed1i API \u0111\u1ec3 l\u00e0m g\u00ec?","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#primaryimage"},"image":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png","datePublished":"2020-05-29T02:51:56+00:00","dateModified":"2024-10-07T11:52:15+00:00","description":"API l\u00e0 g\u00ec? B\u00e0i vi\u1ebft gi\u1ea3i th\u00edch API l\u00e0 g\u00ec theo c\u00e1ch d\u1ec5 hi\u1ec3u nh\u1ea5t. V\u00e0 g\u1ee3i \u00fd nh\u1eefng c\u00e1ch b\u1ea3o m\u1eadt API m\u1ecdi Developer \u0111\u1ec1u c\u1ea7n bi\u1ebft.","breadcrumb":{"@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itviec.com\/blog\/api-la-gi\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#primaryimage","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2020\/05\/api-la-gi-thumnail.png","width":669,"height":350,"caption":"API l\u00e0 g\u00ec, 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API"},{"@type":"BreadcrumbList","@id":"https:\/\/itviec.com\/blog\/api-la-gi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Chuy\u00ean m\u00f4n IT","item":"https:\/\/itviec.com\/blog\/chuyen-mon-it\/"},{"@type":"ListItem","position":2,"name":"API l\u00e0 g\u00ec? 4 \u0111\u1eb7c \u0111i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a API"}]},{"@type":"WebSite","@id":"https:\/\/itviec.com\/blog\/#website","url":"https:\/\/itviec.com\/blog\/","name":"ITviec Blog","description":"IT Jobs &amp; People in Vietnam","publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itviec.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/itviec.com\/blog\/#organization","name":"ITviec","url":"https:\/\/itviec.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","width":1800,"height":1800,"caption":"ITviec"},"image":{"@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ITviec","https:\/\/x.com\/ITviec","https:\/\/www.linkedin.com\/company\/itviec","https:\/\/www.youtube.com\/channel\/UCYthAQ3bcGr57M_ag5gHDvQ"]},{"@type":"Person","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/6580f1be8090663be6e793f5d5f14d6c","name":"Tinh To","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/secure.gravatar.com\/avatar\/a67154fc44dbb2d39713d4bb3a2591ba69ced8c6bb191b9af5305b02054b21ae?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a67154fc44dbb2d39713d4bb3a2591ba69ced8c6bb191b9af5305b02054b21ae?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a67154fc44dbb2d39713d4bb3a2591ba69ced8c6bb191b9af5305b02054b21ae?s=96&d=mm&r=g","caption":"Tinh To"},"description":"T\u00ecnh c\u00f3 h\u01a1n 4 n\u0103m kinh nghi\u1ec7m l\u00e0m vi\u1ec7c, vi\u1ebft b\u00e0i ph\u1ecfng v\u1ea5n v\u1ec1 ki\u1ebfn th\u1ee9c chuy\u00ean m\u00f4n IT v\u1edbi c\u00e1c chuy\u00ean gia c\u00f4ng ngh\u1ec7 \u1edf \u0111a d\u1ea1ng v\u1ecb tr\u00ed nh\u01b0 Front-end Developer, Data Analyst, Data Scientist, CTO\u2026 v\u00e0 c\u00e1c ch\u1ee7 \u0111\u1ec1 ph\u00e1t tri\u1ec3n s\u1ef1 nghi\u1ec7p IT, th\u00f4ng tin th\u1ecb tr\u01b0\u1eddng ng\u00e0nh IT t\u1ea1i Vi\u1ec7t Nam. Qua s\u1ef1 t\u00ecm hi\u1ec3u, trao \u0111\u1ed5i li\u00ean t\u1ee5c v\u1edbi Nh\u00e0 tuy\u1ec3n d\u1ee5ng IT &amp; Chuy\u00ean gia IT, T\u00ecnh cung c\u1ea5p c\u00e1c g\u00f3c nh\u00ecn kh\u00e1ch quan nh\u1ea5t trong c\u00e1c b\u00e0i vi\u1ebft v\u00e0 \u0111\u1ea3m b\u1ea3o t\u00ednh trung th\u1ef1c nh\u1ea5t c\u1ee7a c\u00e1c n\u1ed9i dung \u0111\u01b0\u1ee3c th\u00f4ng tin \u0111\u1ebfn \u0111\u1ed9c gi\u1ea3.","url":"https:\/\/itviec.com\/blog\/author\/tinh-to\/"}]}},"_links":{"self":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/19174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/comments?post=19174"}],"version-history":[{"count":0,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/19174\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media\/19180"}],"wp:attachment":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media?parent=19174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/categories?post=19174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/tags?post=19174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}