{"id":1799,"date":"2018-07-11T13:10:03","date_gmt":"2018-07-11T07:40:03","guid":{"rendered":"http:\/\/www.aqbsolutions.com\/?p=1799"},"modified":"2025-04-17T04:27:10","modified_gmt":"2025-04-17T04:27:10","slug":"use-your-lambda-function-to-call-an-external-api","status":"publish","type":"post","link":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/","title":{"rendered":"Use your Lambda Function to call an External API"},"content":{"rendered":"<p>In the last article, you have seen how an AWS Lambda function can be created. In this article, you will see how a Lambda function can be used to call an external API. You will also see how to run a Lambda function at a specific time using Cloudwatch event trigger and cron expressions.<\/p>\r\n<p>We have used an external API from the website https:\/\/openweathermap.org\/api. This Current weather data API could be used to access the current weather data for any location for about 200,000 cities in the world. When the API is called, it returns the data in JSON format. The website allows you to generate an API key for both, signup and paid plans. The API can be called by using this key along with parameters such as city name, city id, geographic coordinates, etc. In this example, we have used the City name to access weather information for the city of Washington, US.<\/p>\r\n<p>The API call is as follows :<br \/>http:\/\/api.openweathermap.org\/data\/2.5\/forecast?q=Washington,us&amp;APPID=53d6430c1eccacb54e827045d1aee3d3<\/p>\r\n<p>The json structure returned by the API for the weather forecast of Washington is as follows :<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>{\r\n\r\n'message': 0.005,\r\n\r\n'city': {\r\n\r\n'country': 'US',\r\n\r\n'coord': {\r\n\r\n'lon': -77.0367,\r\n\r\n'lat': 38.895\r\n\r\n},\r\n\r\n'population': 863420,\r\n\r\n'name': 'Washington DC.',\r\n\r\n'id': 4366164\r\n\r\n},\r\n\r\n'list': [{\r\n\r\n'weather': [{\r\n\r\n'icon': '03n',\r\n\r\n'description': 'scattered clouds',\r\n\r\n'main': 'Clouds',\r\n\r\n'id': 802\r\n\r\n}],\r\n\r\n'wind': {\r\n\r\n'deg': 329.505,\r\n\r\n'speed': 3.07\r\n\r\n},\r\n\r\n'dt': 1531299600,\r\n\r\n'clouds': {\r\n\r\n'all': 36\r\n\r\n},\r\n\r\n'sys': {\r\n\r\n'pod': 'n'\r\n\r\n},\r\n\r\n'main': {\r\n\r\n'temp_kf': -1.04,\r\n\r\n'temp': 296.24,\r\n\r\n'temp_min': 296.24,\r\n\r\n'temp_max': 297.273,\r\n\r\n'humidity': 77,\r\n\r\n'sea_level': 1026.12,\r\n\r\n'pressure': 1019.66,\r\n\r\n'grnd_level': 1019.66\r\n\r\n},\r\n\r\n'dt_txt': '2018-07-11 09:00:00'\r\n\r\n}, {\r\n\r\n'weather': [{\r\n\r\n'icon': '01d',\r\n\r\n'description': 'clear sky',\r\n\r\n'main': 'Clear',\r\n\r\n'id': 800\r\n\r\n}],\r\n\r\n'wind': {\r\n\r\n'deg': 348.5,\r\n\r\n'speed': 3.12\r\n\r\n},\r\n\r\n'dt': 1531310400,\r\n\r\n'clouds': {\r\n\r\n'all': 0\r\n\r\n},\r\n\r\n'sys': {\r\n\r\n'pod': 'd'\r\n\r\n},\r\n\r\n'main': {\r\n\r\n'temp_kf': -0.78,\r\n\r\n'temp': 298.35,\r\n\r\n'temp_min': 298.35,\r\n\r\n'temp_max': 299.131,\r\n\r\n'humidity': 61,\r\n\r\n'sea_level': 1027.41,\r\n\r\n'pressure': 1020.9,\r\n\r\n'grnd_level': 1020.9\r\n\r\n},\r\n\r\n'dt_txt': '2018-07-11 12:00:00'\r\n\r\n}, {\r\n\r\n'weather': [{\r\n\r\n'icon': '02d',\r\n\r\n'description': 'clear sky',\r\n\r\n'main': 'Clear',\r\n\r\n'id': 800\r\n\r\n}],\r\n\r\n'wind': {\r\n\r\n'deg': 354.5,\r\n\r\n'speed': 2.86\r\n\r\n},\r\n\r\n'dt': 1531321200,\r\n\r\n'clouds': {\r\n\r\n'all': 8\r\n\r\n},\r\n\r\n'sys': {\r\n\r\n'pod': 'd'\r\n\r\n},\r\n<\/code><\/pre>\r\n\r\n<p>You can use the following steps to call an API from your Lambda function and schedule the function at a specific interval, say 1 minute.<\/p>\r\n<p>Step 1: Create your Lambda function to call an external API<\/p>\r\n<p>The current weather data API returns weather information in JSON format, for the city of Washington, for six consecutive days including the current date and for three-hour intervals such as 12 pm, 3 pm, 6 pm, etc. The lambda function returns the weather data for the city of Washington for the current date, for the first three-hour interval that is scheduled after the current time.<\/p>\r\n<p>The code written in Python is as follows :<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code># import libraries here\r\n\r\nfrom botocore.vendored import requests\r\n\r\nfrom datetime import datetime\r\n\r\ndef lambda_handler(event, context):\r\n\r\n# Get the current date and time in yy\u2013mm-dd hours:minutes:seconds format\r\nnow = datetime.now()\r\nnow_str = now.strftime(\u2018%Y-%m-%d %H:%M:%S\u2019)\r\n\r\n# API call\r\nresponse = requests.get(\u2018http:\/\/api.openweathermap.org\/data\/2.5\/forecast?\r\nq=Washington,us&amp;APPID=53d6430c1eccacb54e827045d1aee3d3\u2032)\r\n\r\n# Check if the request completed successfully\r\nif response.status_code == 200:\r\n\r\n# Convert response data to python dictionary object\r\ndatadictionary = response.json()\r\n\r\n# Return the desired weather information for today from the dictionary object\r\nfor data in datadictionary[\u2018list\u2019]:\r\nif data[\u2018dt_txt\u2019] &gt; now_str:\r\n\r\n# Return data and print data\r\ndescription = data[\u2018weather\u2019][0][\u2018description\u2019]humidity = data[\u2018main\u2019][\u2018humidity\u2019]sea_level = data[\u2018main\u2019][\u2018sea_level\u2019]temp = data[\u2018main\u2019][\u2018temp\u2019]print(\u201cweather:{}, humidity: {}, sea_level: {},temperature:\r\n{}\u201d.format(description,humidity,sea_level,temp))\r\nreturn \u201cweather:{}, humidity: {}, sea_level: {},temperature:\r\n{}\u201d.format(description,humidity,sea_level,temp)<\/code><\/pre>\r\n\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2196\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/1-1024x527-777x400.png\" alt=\"\" width=\"777\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Once you are done with the code, save the function, test it and check whether it is successful in the <strong>Execution result<\/strong>.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2197\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/2-1024x526-779x400.png\" alt=\"\" width=\"779\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n<p><strong>Step 2: Schedule the Lambda function at specific intervals<\/strong><\/p>\r\n<p>To schedule your Lambda function at specific intervals, go to <strong>Add Triggers<\/strong> section and click on <strong>Cloudwatch Events<\/strong>.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2199\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/3-1024x490-800x383.png\" alt=\"\" width=\"800\" height=\"383\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Then, configure your trigger in the <strong>configure trigger<\/strong> section by performing the following actions<\/p>\r\n<ol>\r\n<li>In the Rule, section select the option to <strong>create a new rule<\/strong><\/li>\r\n<li>Specify a name for the rule in the <strong>Rule name <\/strong>section<\/li>\r\n<li>Provide a description of the rule you have specified in the <strong>Rule Description<\/strong> section.<\/li>\r\n<li>4.Under the <strong>Rule Type<\/strong> section select <strong>schedule expression\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<ol start=\"5\">\r\n<li>Under the schedule expression section specify your cron expression for the specific interval for which you would be scheduling your lambda function. You can get your cron expression for the site: <a href=\"http:\/\/www.cronmaker.com\/\"><strong>http:\/\/www.cronmaker.com\/<\/strong><\/a>. In this case, we have selected the specific interval to be 1 minute.<\/li>\r\n<li>Ensure that <strong>Enable Trigger<\/strong> option is clicked.<\/li>\r\n<li>Finally, click on <strong>Add<\/strong> to add the trigger to your function and <strong>Save<\/strong> the changes.<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2200\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/4-1024x534-767x400.png\" alt=\"\" width=\"767\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2201\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/5-1024x529-774x400.png\" alt=\"\" width=\"774\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2202\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/6-1024x526-779x400.png\" alt=\"\" width=\"779\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><strong>Step 3: Check the Cloudwatch event logs<\/strong><\/p>\r\n<p>To check whether your Lambda function is triggered at regular intervals, (1 minute in this case), check the Cloudwatch event logs, as shown below.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2203\" src=\"http:\/\/www.aqbsolutions.com\/wp-content\/uploads\/2018\/07\/7-1024x529-774x400.png\" alt=\"\" width=\"774\" height=\"400\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In the last article, you have seen how an AWS Lambda function can be created. In this article, you will see how [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":6102,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[2,3,4,7,10],"class_list":["post-1799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development","tag-amazon","tag-android-2","tag-app","tag-technology","tag-web-services-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use your AWS Lambda Function to call an External API | aQb<\/title>\n<meta name=\"description\" content=\"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use your AWS Lambda Function to call an External API | aQb\" \/>\n<meta property=\"og:description\" content=\"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-11T07:40:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-17T04:27:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"780\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"aQbSolutions\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"aQbSolutions\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\"},\"author\":{\"name\":\"aQbSolutions\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952\"},\"headline\":\"Use your Lambda Function to call an External API\",\"datePublished\":\"2018-07-11T07:40:03+00:00\",\"dateModified\":\"2025-04-17T04:27:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\"},\"wordCount\":530,\"image\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png\",\"keywords\":[\"Amazon\",\"android\",\"app\",\"technology\",\"Web services\"],\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\",\"url\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\",\"name\":\"Use your AWS Lambda Function to call an External API | aQb\",\"isPartOf\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png\",\"datePublished\":\"2018-07-11T07:40:03+00:00\",\"dateModified\":\"2025-04-17T04:27:10+00:00\",\"author\":{\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952\"},\"description\":\"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage\",\"url\":\"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png\",\"contentUrl\":\"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png\",\"width\":1200,\"height\":780,\"caption\":\"Lambda Function to call an external API\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#website\",\"url\":\"https:\/\/aqbsolutions.com\/blog\/\",\"name\":\"Aqbsolutions Blog\",\"description\":\"Blogs | IT Services in USA and Canada | aQb Solutions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/aqbsolutions.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952\",\"name\":\"aQbSolutions\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d37e12c5e93bdf3f02abdb5c8a89bad8841bd4743b3b2ea558914abbb60c7414?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d37e12c5e93bdf3f02abdb5c8a89bad8841bd4743b3b2ea558914abbb60c7414?s=96&d=mm&r=g\",\"caption\":\"aQbSolutions\"},\"url\":\"https:\/\/aqbsolutions.com\/blog\/author\/aqbsolutions\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use your AWS Lambda Function to call an External API | aQb","description":"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS","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:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/","og_locale":"en_US","og_type":"article","og_title":"Use your AWS Lambda Function to call an External API | aQb","og_description":"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS","og_url":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/","og_site_name":"Blog","article_published_time":"2018-07-11T07:40:03+00:00","article_modified_time":"2025-04-17T04:27:10+00:00","og_image":[{"width":1200,"height":780,"url":"http:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png","type":"image\/png"}],"author":"aQbSolutions","twitter_card":"summary_large_image","twitter_misc":{"Written by":"aQbSolutions","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#article","isPartOf":{"@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/"},"author":{"name":"aQbSolutions","@id":"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952"},"headline":"Use your Lambda Function to call an External API","datePublished":"2018-07-11T07:40:03+00:00","dateModified":"2025-04-17T04:27:10+00:00","mainEntityOfPage":{"@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/"},"wordCount":530,"image":{"@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage"},"thumbnailUrl":"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png","keywords":["Amazon","android","app","technology","Web services"],"articleSection":["Web Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/","url":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/","name":"Use your AWS Lambda Function to call an External API | aQb","isPartOf":{"@id":"https:\/\/aqbsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage"},"image":{"@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage"},"thumbnailUrl":"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png","datePublished":"2018-07-11T07:40:03+00:00","dateModified":"2025-04-17T04:27:10+00:00","author":{"@id":"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952"},"description":"Take advantage of the call function of lambda to connect with an external API and make your app development seamless. Visit us to know more about AWS","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aqbsolutions.com\/blog\/2018\/07\/11\/use-your-lambda-function-to-call-an-external-api\/#primaryimage","url":"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png","contentUrl":"https:\/\/aqbsolutions.com\/blog\/wp-content\/uploads\/2018\/07\/Lambda-Function-to-call-an-external-API.png","width":1200,"height":780,"caption":"Lambda Function to call an external API"},{"@type":"WebSite","@id":"https:\/\/aqbsolutions.com\/blog\/#website","url":"https:\/\/aqbsolutions.com\/blog\/","name":"Aqbsolutions Blog","description":"Blogs | IT Services in USA and Canada | aQb Solutions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aqbsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/7f8c6dcba99e9b5a7c24a525f8365952","name":"aQbSolutions","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aqbsolutions.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d37e12c5e93bdf3f02abdb5c8a89bad8841bd4743b3b2ea558914abbb60c7414?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d37e12c5e93bdf3f02abdb5c8a89bad8841bd4743b3b2ea558914abbb60c7414?s=96&d=mm&r=g","caption":"aQbSolutions"},"url":"https:\/\/aqbsolutions.com\/blog\/author\/aqbsolutions\/"}]}},"_links":{"self":[{"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1799"}],"version-history":[{"count":1,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1799\/revisions"}],"predecessor-version":[{"id":5531,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1799\/revisions\/5531"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/media\/6102"}],"wp:attachment":[{"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aqbsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}