{"id":668,"date":"2021-10-22T00:00:00","date_gmt":"2021-10-22T00:00:00","guid":{"rendered":"https:\/\/wp3.geodatasource.com\/tutorials\/what-is-neighboring-countries-web-service\/"},"modified":"2021-10-22T00:00:00","modified_gmt":"2021-10-22T00:00:00","password":"","slug":"what-is-neighboring-countries-web-service","status":"publish","type":"docs","link":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/","title":{"rendered":"What is Neighboring Countries Web Service"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png\" alt=\"What is Neighboring Countries Web Service\" class=\"wp-image-315\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png 1200w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-300x150.png 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-1024x512.png 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-768x384.png 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-50x25.png 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-920x460.png 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-600x300.png 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img-320x160.png 320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>A Web Service is a software service used to communicate between two electronic devices over a network.<\/p>\n\n\n\n<p>GeoDataSource Neighboring Countries Web Service is a REST API that enables the user to lookup the associated land border countries which are also known as the neighboring countries based on the input of the country code in ISO3166-2 format. The Web Service will return the result in either the JSON or XML format which contains the information of the neighboring countries code and name that follow the ISO3166 Alpha-2 code and full name standard.<\/p>\n\n\n\n<p>The plan of GeoDataSource Neighboring Countries Web Service comprises different packages which consumes different amount of credits. Paid plan of this Web Service will be auto-renewed and auto-recharged monthly. Below are the details of the Web Service package.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Package<\/td><td>Price<\/td><\/tr><tr><td>Neighboring Countries Web Service (500 credits)<\/td><td>FREE<\/td><\/tr><tr><td>Neighboring Countries Web Service (50,000 credits)<\/td><td>$50.00 USD\/month<\/td><\/tr><tr><td>Neighboring Countries Web Service (250,000 credits)<\/td><td>$125.00 USD\/month<\/td><\/tr><tr><td>Neighboring Countries Web Service (1,000,000 credits)<\/td><td>$300.00 USD\/month<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The benefit of using the Web Service is that no database is required to be downloaded, to be installed or to be upgraded on the server side. It also supports HTTPS queries up to 500 times per month for free. In order to get the neighboring country information, the Web Service can be called by the following syntax.<\/p>\n\n\n\n<p>The syntax for<strong> Neighboring Countries API<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GET https:\/\/api.geodatasource.com\/v2\/neighboring-countries<\/code><\/pre>\n\n\n\n<p>The API accepts the following parameters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>key<\/td><td>string<\/td><td>(required) API key.<\/td><\/tr><tr><td>country_code<\/td><td>char<\/td><td>(required) ISO3166 Alpha-2 Country code.<\/td><\/tr><tr><td>format<\/td><td>string<\/td><td>(optional) Return the result in json (default) or xml format.<br>Valid values: json | xml<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The API response fields:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>country_code<\/td><td>string<\/td><td>Neighboring two-character country code based on ISO-3166.<\/td><\/tr><tr><td>country_name<\/td><td>string<\/td><td>Neighboring country name.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>An example response message:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n\t{\n\t\t\"country_code\":\"CA\",\n\t\t\"country_name\":\"Canada\"\n\t},\n\t{\n\t\t\"country_code\":\"MX\",\n\t\t\"country_name\":\"Mexico\"\n\t}\n]\n<\/code><\/pre>\n\n\n\n<p>For more details about the GeoDataSource Neighboring Countries Web Service, please check it out at:<br><a href=\"https:\/\/www.geodatasource.com\/web-service\/neighboring-countries\">https:\/\/www.geodatasource.com\/web-service\/neighboring-countries<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Web Service is a software service used to communicate between two electronic devices over a network. GeoDataSource Neighboring Countries [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[20],"doc_tag":[],"class_list":["post-668","docs","type-docs","status-publish","hentry","doc_category-general-topics"],"year_month":"2026-06","word_count":309,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"hexasoft","author_nicename":"hexasoft","author_url":"https:\/\/www.geodatasource.com\/resources\/author\/hexasoft\/"},"doc_category_info":[{"term_name":"General Topics","term_url":"https:\/\/www.geodatasource.com\/resources\/categories\/general-topics\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Neighboring Countries Web Service |<\/title>\n<meta name=\"description\" content=\"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Neighboring Countries Web Service |\" \/>\n<meta property=\"og:description\" content=\"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/geodatasource\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@_geodatasource\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/\",\"name\":\"What is Neighboring Countries Web Service |\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/gds-oct-img.png\",\"datePublished\":\"2021-10-22T00:00:00+00:00\",\"description\":\"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/gds-oct-img.png\",\"contentUrl\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/gds-oct-img.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/what-is-neighboring-countries-web-service\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What is Neighboring Countries Web Service\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/\",\"name\":\"GeoDataSource Articles & Tutorials\",\"description\":\"Resources About GeoDataSource Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#organization\",\"name\":\"GeoDataSource.com\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/logo-e1564122827936.png\",\"contentUrl\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/logo-e1564122827936.png\",\"width\":220,\"height\":27,\"caption\":\"GeoDataSource.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/geodatasource\\\/\",\"https:\\\/\\\/x.com\\\/_geodatasource\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Neighboring Countries Web Service |","description":"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.","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:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/","og_locale":"en_US","og_type":"article","og_title":"What is Neighboring Countries Web Service |","og_description":"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.","og_url":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/","article_publisher":"https:\/\/www.facebook.com\/geodatasource\/","og_image":[{"url":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@_geodatasource","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/","url":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/","name":"What is Neighboring Countries Web Service |","isPartOf":{"@id":"https:\/\/www.geodatasource.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/#primaryimage"},"image":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/#primaryimage"},"thumbnailUrl":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png","datePublished":"2021-10-22T00:00:00+00:00","description":"This article shows the definition What is Neighboring Countries Web Service. Read about it to learn more details.","breadcrumb":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/#primaryimage","url":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png","contentUrl":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2021\/10\/gds-oct-img.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/what-is-neighboring-countries-web-service\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.geodatasource.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/www.geodatasource.com\/resources\/tutorials\/"},{"@type":"ListItem","position":3,"name":"What is Neighboring Countries Web Service"}]},{"@type":"WebSite","@id":"https:\/\/www.geodatasource.com\/resources\/#website","url":"https:\/\/www.geodatasource.com\/resources\/","name":"GeoDataSource Articles & Tutorials","description":"Resources About GeoDataSource Services","publisher":{"@id":"https:\/\/www.geodatasource.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.geodatasource.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.geodatasource.com\/resources\/#organization","name":"GeoDataSource.com","url":"https:\/\/www.geodatasource.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.geodatasource.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/07\/logo-e1564122827936.png","contentUrl":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/07\/logo-e1564122827936.png","width":220,"height":27,"caption":"GeoDataSource.com"},"image":{"@id":"https:\/\/www.geodatasource.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/geodatasource\/","https:\/\/x.com\/_geodatasource"]}]}},"_links":{"self":[{"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/docs\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/comments?post=668"}],"version-history":[{"count":0,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/docs\/668\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/doc_category?post=668"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}