{"id":123,"date":"2019-04-29T06:41:55","date_gmt":"2019-04-29T06:41:55","guid":{"rendered":"https:\/\/www.geodatasource.com\/resources\/?post_type=ht_kb&#038;p=123"},"modified":"2023-09-12T04:17:58","modified_gmt":"2023-09-12T04:17:58","password":"","slug":"using-postman-to-call-geodatasource-location-search-api","status":"publish","type":"docs","link":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/","title":{"rendered":"Using Postman to call GeoDataSource Location Search API"},"content":{"rendered":"<h2>Intro<\/h2>\n<p>Postman is a development tool you can use to test the calling of an API. We will demonstrate how to configure Postman with the GeoDataSource Location Search API Swagger configuration to easily setup the request to the API.<\/p>\n<h2>Pre-requisites<\/h2>\n<p>First of all, you will need to download the Postman software and install it. Next, you\u00e2\u20ac\u2122ll need to go to the GeoDataSource Location Search API Swagger page at\u00c2\u00a0 <a href=\"https:\/\/app.swaggerhub.com\/apis\/geodatasource\/geodatasource-location-search\/1.0\">https:\/\/app.swaggerhub.com\/apis\/geodatasource\/geodatasource-location-search\/1.0<\/a> where you need to copy out the whole YAML configuration text. The YAML text is the part inside the red box below.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-124 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg\" alt=\"Copy YAML configuration text from GeoDataSource Location Search API Swagger page\" width=\"1920\" height=\"950\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg 1920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-300x148.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-768x380.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-1024x507.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-50x25.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-920x455.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-600x297.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1-320x158.jpg 320w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<h2>Configuring Postman with the YAML text<\/h2>\n<p>Run the Postman software and you should see the below. If you get shown the Create New dialog, you can just close it.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-125 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2.jpg\" alt=\"Run Postman software with the YAML text\" width=\"1918\" height=\"1040\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2.jpg 1918w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-768x416.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-1024x555.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-920x499.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-600x325.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step2-320x174.jpg 320w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/a><\/p>\n<p>Click on the Import button at the top left and you should see the below. Click on Paste Raw Text in the Import dialog. Next, paste the YAML text from above then click on Import.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-126 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3.jpg\" alt=\"Import YAML text with Import dialog\" width=\"1919\" height=\"1042\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3.jpg 1919w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-768x417.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-1024x556.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-920x500.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-600x326.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step3-320x174.jpg 320w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/a><\/p>\n<p>You should now see the following. Click on the part inside the red box. That will expand the collection to show you all available APIs.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-127 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4.jpg\" alt=\"Expand collection to show all available APIs\" width=\"1919\" height=\"1040\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4.jpg 1919w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-768x416.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-1024x555.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-920x499.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-600x325.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step4-320x173.jpg 320w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/a><\/p>\n<h2><\/h2>\n<h2>First test of calling the API<\/h2>\n<p>Click on the first API which is the nearest city API. You will then see the parameters required to perform a GET request to this API. You can go ahead to delete the 2nd API.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-128 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5.jpg\" alt=\"Test of calling the API\" width=\"1918\" height=\"1041\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5.jpg 1918w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-768x417.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-1024x556.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-920x499.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-600x326.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step5-320x174.jpg 320w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/a><\/p>\n<p>You can just replace the values in the VALUE column of the Params section with actual values that you wish to pass to the API. Let\u00e2\u20ac\u2122s test this API with a coordinate of 37.396374, -122.079566 and we will opt for a json formatted result from the API.<\/p>\n<p>If you don\u00e2\u20ac\u2122t have an API key, you can sign up for a free API key at <a href=\"http:\/\/www.geodatasource.com\/web-service\/location-search\">http:\/\/www.geodatasource.com\/web-service\/location-search<\/a> and you can input it like below.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-129 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6.jpg\" alt=\"Enter values that required by the API\" width=\"1916\" height=\"1042\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6.jpg 1916w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-768x418.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-1024x557.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-920x500.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-600x326.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step6-320x174.jpg 320w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/a><\/p>\n<p>Upon pressing the Send button, you will receive the json result as below.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7.jpg\" alt=\"Result returned by the API in JSON format\" width=\"1919\" height=\"1037\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7.jpg 1919w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-300x162.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-768x415.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-1024x553.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-920x497.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-600x324.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step7-320x173.jpg 320w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/a><\/p>\n<h2>Calling the API using a bulk input file<\/h2>\n<p>The previous section dealt with calling the API with a manually keyed in set of inputs. What if you have a file full of inputs you want to pass to the API? We will now show how to read inputs from a file to pass to the API.<\/p>\n<p>For our example, we have a file called geotest.csv which looks like below. The CSV data file should have a header.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-131 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8.jpg\" alt=\"Calling the API using a bulk input file\" width=\"1100\" height=\"351\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8.jpg 1100w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-300x96.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-768x245.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-1024x327.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-50x16.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-920x294.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-600x191.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step8-320x102.jpg 320w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<p>Before we run the bulk input file through the API, we need to create some tests to validate the results being returned from the API. Click on the Tests section and paste the following codes. The codes will test the return values of the 3 rows of input we have in our test file.<\/p>\n<p>pm.test(&#8220;Location Test&#8221;, function() {<\/p>\n<p>var jsonData = pm.response.json();<\/p>\n<p>pm.expect(jsonData.country).to.eql(&#8220;US&#8221;);<\/p>\n<p>});<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-132 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10.jpg\" alt=\"Perform tests to validate the results being returned from the API\" width=\"1915\" height=\"1041\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10.jpg 1915w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-768x417.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-1024x557.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-920x500.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-600x326.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step10-320x174.jpg 320w\" sizes=\"auto, (max-width: 1915px) 100vw, 1915px\" \/><\/a><\/p>\n<p>To have the API work with dynamic values from the test file, we have to modify the following 2 parameters to become variables. The variable names must follow the header names in the CSV file. The 2 fields in red below have been changed to use the header names, i.e. {{longitude}} and {{latitude}}. This means the dynamic values for both fields will come from their named counterpart in the CSV file. The curly braces are required to denote that these 2 values are variables.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-133 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9.jpg\" alt=\"API work with dynamic values from the test file\" width=\"1914\" height=\"1040\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9.jpg 1914w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-300x163.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-768x417.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-1024x556.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-50x27.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-920x500.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-600x326.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step9-320x174.jpg 320w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><\/a><\/p>\n<p>Now we are ready to call the API using input from the bulk input file. Inside Postman, click on the Runner button at the top left of the program. The button is enclosed in the red box inside the above image. Inside the Collection Runner window, click on the GeoDataSource Location Search collection. Next, click Select File to select the geotest.csv file from above. Then click on the blue Run button.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-135 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12.jpg\" alt=\"Run GeoDataSource Location Search collection\" width=\"1583\" height=\"1034\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12.jpg 1583w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-300x196.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-768x502.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-1024x669.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-50x33.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-920x601.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-600x392.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step12-320x209.jpg 320w\" sizes=\"auto, (max-width: 1583px) 100vw, 1583px\" \/><\/a><\/p>\n<p>The test results are done and look like all 3 input lines have passed the validation test.<\/p>\n<p><a href=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-136 size-full\" src=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13.jpg\" alt=\"Test results are done and have passed the validation test\" width=\"1584\" height=\"997\" srcset=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13.jpg 1584w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-300x189.jpg 300w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-768x483.jpg 768w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-1024x645.jpg 1024w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-50x31.jpg 50w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-920x579.jpg 920w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-600x378.jpg 600w, https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step13-320x201.jpg 320w\" sizes=\"auto, (max-width: 1584px) 100vw, 1584px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Intro Postman is a development tool you can use to test the calling of an API. We will demonstrate how [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[],"doc_tag":[],"class_list":["post-123","docs","type-docs","status-publish","hentry"],"year_month":"2026-06","word_count":637,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"chris","author_nicename":"chris","author_url":"https:\/\/www.geodatasource.com\/resources\/author\/chris\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Postman to call GeoDataSource Location Search API |<\/title>\n<meta name=\"description\" content=\"Using Postman to perform automated testing of the GeoDataSource Location Search API.\" \/>\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\/using-postman-to-call-geodatasource-location-search-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Postman to call GeoDataSource Location Search API |\" \/>\n<meta property=\"og:description\" content=\"Using Postman to perform automated testing of the GeoDataSource Location Search API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/geodatasource\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-12T04:17:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg\" \/>\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=\"6 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\\\/using-postman-to-call-geodatasource-location-search-api\\\/\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/\",\"name\":\"Using Postman to call GeoDataSource Location Search API |\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/step1.jpg\",\"datePublished\":\"2019-04-29T06:41:55+00:00\",\"dateModified\":\"2023-09-12T04:17:58+00:00\",\"description\":\"Using Postman to perform automated testing of the GeoDataSource Location Search API.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/step1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/step1.jpg\",\"width\":1920,\"height\":950},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.geodatasource.com\\\/resources\\\/tutorials\\\/using-postman-to-call-geodatasource-location-search-api\\\/#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\":\"Using Postman to call GeoDataSource Location Search API\"}]},{\"@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":"Using Postman to call GeoDataSource Location Search API |","description":"Using Postman to perform automated testing of the GeoDataSource Location Search API.","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\/using-postman-to-call-geodatasource-location-search-api\/","og_locale":"en_US","og_type":"article","og_title":"Using Postman to call GeoDataSource Location Search API |","og_description":"Using Postman to perform automated testing of the GeoDataSource Location Search API.","og_url":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/","article_publisher":"https:\/\/www.facebook.com\/geodatasource\/","article_modified_time":"2023-09-12T04:17:58+00:00","og_image":[{"url":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@_geodatasource","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/","url":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/","name":"Using Postman to call GeoDataSource Location Search API |","isPartOf":{"@id":"https:\/\/www.geodatasource.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/#primaryimage"},"image":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg","datePublished":"2019-04-29T06:41:55+00:00","dateModified":"2023-09-12T04:17:58+00:00","description":"Using Postman to perform automated testing of the GeoDataSource Location Search API.","breadcrumb":{"@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/#primaryimage","url":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg","contentUrl":"https:\/\/www.geodatasource.com\/resources\/wp-content\/uploads\/2019\/04\/step1.jpg","width":1920,"height":950},{"@type":"BreadcrumbList","@id":"https:\/\/www.geodatasource.com\/resources\/tutorials\/using-postman-to-call-geodatasource-location-search-api\/#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":"Using Postman to call GeoDataSource Location Search API"}]},{"@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\/123","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":5,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/docs\/123\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/docs\/123\/revisions\/576"}],"wp:attachment":[{"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/doc_category?post=123"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.geodatasource.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}