{"id":4094,"date":"2023-11-04T23:14:03","date_gmt":"2023-11-04T23:14:03","guid":{"rendered":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/"},"modified":"2023-11-05T05:48:01","modified_gmt":"2023-11-05T05:48:01","slug":"building-an-azure-serverless-function-for-image-processing","status":"publish","type":"post","link":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/","title":{"rendered":"Building an Azure Serverless Function for image processing"},"content":{"rendered":"

Azure functions are an excellent solution for serverless computing needs. They’re highly scalable, flexible, and can handle complex business logic that runs asynchronously. In this tutorial, we’ll dive into how to build an Azure function for image processing using Azure Functions.<\/p>\n

What is Azure Functions?<\/h2>\n

Azure Functions is a serverless computing platform that allows you to write event-driven functions that execute when triggered by an event. These functions can be written in various programming languages, including C#, F#, Java, Python, and Node.js and execute in a fully managed, serverless environment.<\/p>\n

Azure Functions scale seamlessly based on demand, which makes them an excellent solution for applications with unpredictable traffic. They also allow you to save money by only paying for the processing power used, rather than paying for idle servers and infrastructure.<\/p>\n

Azure Functions Prerequisites<\/h2>\n

Before we dive into building our Azure function for image processing, we need to have a few prerequisites in place.<\/p>\n

Azure Subscription<\/h3>\n

First, we need to have an Azure subscription. If you don’t have an Azure subscription, you can sign up for a free one-month trial and get $200 in free Azure credits to try the service.<\/p>\n

Azure Functions Core Tools<\/h3>\n

Second, we need to download and install the Azure Functions Core Tools. The Azure Functions Core Tools has everything we need to develop, test, and deploy Azure Functions locally.<\/p>\n

You can download the Azure Functions Core Tools from the official GitHub page.<\/p>\n

Azure Storage Account<\/h3>\n

We also need to create an Azure Storage account to store the data generated by our Azure function. Azure Functions use the Azure Storage account to store logs, function code, and other assets.<\/p>\n

Azure Computer Vision API Key<\/h3>\n

We will use the Azure Computer Vision API to process the images. We need to obtain an Azure Computer Vision API Key to use the service. We can create an Azure Computer Vision API account through the Azure portal.<\/p>\n

Creating the Azure Function<\/h2>\n

Now that we have the prerequisites in place, we can start building our Azure function.<\/p>\n

    \n
  1. Open your terminal or command prompt and type the following command to create a new Azure function project.<\/li>\n<\/ol>\n
    func init image-processor --worker-runtime node \n<\/code><\/pre>\n

    This command creates a new Azure function project with Node.js as a runtime.<\/p>\n

      \n
    1. Change the current directory to the image-processor directory.<\/li>\n<\/ol>\n
      cd image-processor\n<\/code><\/pre>\n
        \n
      1. Use the following command to create a new Azure function.<\/li>\n<\/ol>\n
        func new --name image-processor --template \"HttpTrigger\"\n<\/code><\/pre>\n

        This command creates a new Azure function with an HTTP trigger. This trigger allows us to call the function through an HTTP endpoint, which passes the image URL to our function.<\/p>\n

          \n
        1. Install the following NPM packages that we need to perform image processing.<\/li>\n<\/ol>\n
          npm install azure-storage\nnpm install request\n<\/code><\/pre>\n

          Writing the Azure Function<\/h2>\n

          Now that we’ve created our Azure function project, let’s dive into writing the actual Azure function.<\/p>\n

            \n
          1. Open the image-processor\/index.js file in your preferred IDE or text editor.<\/p>\n<\/li>\n
          2. \n

            Add the following code to your index.js file to import required modules.<\/p>\n<\/li>\n<\/ol>\n

            const request = require(\"request\");\nconst azure = require('azure-storage');\nconst visionApiKey = process.env['COMPUTER_VISION_API_KEY'];\nconst blobService = azure.createBlobService()\n<\/code><\/pre>\n

            The code imports the request module that we will use to send requests to the Azure computer vision API and the azure-storage module. We then define the Azure Computer Vision API key as an environment variable and create a new blob service instance to perform operations on the Azure storage account.<\/p>\n

              \n
            1. Replace the existing function code with the following code.<\/li>\n<\/ol>\n
              module.exports = function (context, req) {\n    context.log('JavaScript HTTP trigger function processed a request.');\n    let responseHeaders = { 'Content-Type': 'application\/json' };\n    if (req.body.url) {\n        const url = req.body.url.trim();\n        request.post({\n            url: \"https:\/\/westus2.api.cognitive.microsoft.com\/vision\/v2.0\/analyze?visualFeatures=Description\",\n            headers: {\n                \"Content-Type\": \"application\/json\",\n                \"Ocp-Apim-Subscription-Key\": visionApiKey\n            },\n            json: {\n                url: url\n            }\n        }, function (err, httpResponse, body) {\n            if (err) {\n                context.log.error(err);\n                context.res = {\n                    headers: responseHeaders,\n                    body: JSON.stringify({ error: err })\n                };\n                context.done();\n                return;\n            }\n            if (body.error) {\n                context.log.error(body.error.message);\n                context.res = {\n                    headers: responseHeaders,\n                    body: JSON.stringify({ error: body.error })\n                };\n                context.done();\n\n          return;\n            }\n            const connString = process.env['AzureWebJobsStorage'];\n            const containerName = \"images\"\n            const blobName = Date.now() + \".json\";\n            const blobUrl = `https:\/\/${connString}.blob.core.windows.net\/${containerName}\/${blobName}`\n            const blobContent = JSON.stringify(body)\n            blobService.createBlockBlobFromText(containerName, blobName, blobContent, function (error, result, response) {\n                if (error) {\n                    context.log.error(`Failed to store JSON. ${error}`);\n                    context.res = {\n                        headers: responseHeaders,\n                        body: JSON.stringify({ error: error })\n                    };\n                } else {\n                    context.res = {\n                        headers: responseHeaders,\n                        body: JSON.stringify({ result: { 'url': url, 'visionResultUrl': blobUrl } })\n                    };\n                }\n                context.done();\n            });\n        });\n    } else {\n        context.res = {\n            headers: responseHeaders,\n            body: JSON.stringify({ error: 'URL is not defined.' })\n        };\n        context.done();\n    }\n};\n<\/code><\/pre>\n

              This code defines the image-processing Azure function. The function accepts an HTTP request with a URL of the image to process. The code sends a request to Azure computer vision API to analyze the image and generate a JSON response containing information about the image, such as its description.<\/p>\n

              The code then saves the JSON to the Azure Storage account and returns the URL of the JSON file.<\/p>\n

              Deploying the Azure Function<\/h2>\n

              Now that we have written our Azure function, we can deploy it to Azure.<\/p>\n

                \n
              1. Open your terminal or command prompt and change the directory to your project’s root folder.<\/p>\n<\/li>\n
              2. \n

                Use the following command to publish your function to Azure.<\/p>\n<\/li>\n<\/ol>\n

                func azure functionapp publish <function-app-name> --build remote\n<\/code><\/pre>\n

                The command publishes the code to Azure and compiles it remotely. The is the name of the Azure function app you created in the Azure portal.<\/p>\n

                  \n
                1. Navigate to the Azure portal to verify that the function is working correctly.<\/li>\n<\/ol>\n

                  Testing the Azure Function<\/h2>\n

                  Now that we have deployed our function to Azure, we can test it by invoking the HTTP endpoint.<\/p>\n

                    \n
                  1. Open Postman or your favorite REST client.<\/p>\n<\/li>\n
                  2. \n

                    Create a new POST request and enter the HTTP endpoint of your Azure function.<\/p>\n<\/li>\n

                  3. \n

                    In the request body, enter the following JSON.<\/p>\n<\/li>\n<\/ol>\n

                    {\n    \"url\": \"<image-url>\"\n}\n<\/code><\/pre>\n

                    Replace “” with the URL of an image you’d like to process. An excellent source of images to use for testing is the following URL: https:\/\/pixabay.com\/api\/docs.<\/p>\n

                      \n
                    1. Send the request and verify that the JSON file is stored in the Azure Storage account.<\/li>\n<\/ol>\n

                      Conclusion<\/h2>\n

                      In this tutorial, we learned how to build an Azure function for image processing using Azure Functions. We started by creating the Azure function project, writing the Azure function, deploying it to Azure, and testing it using an HTTP endpoint.<\/p>\n

                      Azure Functions allow you to scale your applications seamlessly based on demand and are an excellent solution for applications with unpredictable traffic. By only paying for the processing power used, Azure Functions enable you to save money on infrastructure costs.<\/p>\n","protected":false},"excerpt":{"rendered":"

                      Azure functions are an excellent solution for serverless computing needs. They’re highly scalable, flexible, and can handle complex business logic that runs asynchronously. In this tutorial, we’ll dive into how to build an Azure function for image processing using Azure Functions. What is Azure Functions? Azure Functions is a serverless Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[1114,585,87,30,708,1253,326,212,424,1255],"yoast_head":"\nBuilding an Azure Serverless Function for image processing - Pantherax Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building an Azure Serverless Function for image processing\" \/>\n<meta property=\"og:description\" content=\"Azure functions are an excellent solution for serverless computing needs. They’re highly scalable, flexible, and can handle complex business logic that runs asynchronously. In this tutorial, we’ll dive into how to build an Azure function for image processing using Azure Functions. What is Azure Functions? Azure Functions is a serverless Continue Reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\" \/>\n<meta property=\"og:site_name\" content=\"Pantherax Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T23:14:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-05T05:48:01+00:00\" \/>\n<meta name=\"author\" content=\"Panther\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Panther\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Panther\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\"\n\t },\n\t \"headline\": \"Building an Azure Serverless Function for image processing\",\n\t \"datePublished\": \"2023-11-04T23:14:03+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:01+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\"\n\t },\n\t \"wordCount\": 877,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"keywords\": [\n\t \"\\\"Azure cloud\\\"\",\n\t \"\\\"Azure Functions\\\"\",\n\t \"\\\"Azure\\\"\",\n\t \"\\\"cloud computing\\\"\",\n\t \"\\\"cloud services\\\"\",\n\t \"\\\"Functions\\\"\",\n\t \"\\\"Image Processing\\\"\",\n\t \"\\\"Microsoft Azure\\\"\",\n\t \"\\\"Serverless Computing\\\"\",\n\t \"\\\"Serverless Function\\\"\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\",\n\t \"url\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\",\n\t \"name\": \"Building an Azure Serverless Function for image processing - Pantherax Blogs\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#website\"\n\t },\n\t \"datePublished\": \"2023-11-04T23:14:03+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:01+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10003\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"Building an Azure Serverless Function for image processing\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10003\/#website\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"description\": \"\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10003\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"Organization\",\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"logo\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\",\n\t \"url\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"contentUrl\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"width\": 1024,\n\t \"height\": 1024,\n\t \"caption\": \"Pantherax Blogs\"\n\t },\n\t \"image\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\"\n\t }\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\",\n\t \"name\": \"Panther\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"caption\": \"Panther\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10003\"\n\t ],\n\t \"url\": \"http:\/\/localhost:10003\/author\/pepethefrog\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Building an Azure Serverless Function for image processing - Pantherax Blogs","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":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/","og_locale":"en_US","og_type":"article","og_title":"Building an Azure Serverless Function for image processing","og_description":"Azure functions are an excellent solution for serverless computing needs. They’re highly scalable, flexible, and can handle complex business logic that runs asynchronously. In this tutorial, we’ll dive into how to build an Azure function for image processing using Azure Functions. What is Azure Functions? Azure Functions is a serverless Continue Reading","og_url":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/","og_site_name":"Pantherax Blogs","article_published_time":"2023-11-04T23:14:03+00:00","article_modified_time":"2023-11-05T05:48:01+00:00","author":"Panther","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Panther","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#article","isPartOf":{"@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/"},"author":{"name":"Panther","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7"},"headline":"Building an Azure Serverless Function for image processing","datePublished":"2023-11-04T23:14:03+00:00","dateModified":"2023-11-05T05:48:01+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/"},"wordCount":877,"publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"keywords":["\"Azure cloud\"","\"Azure Functions\"","\"Azure\"","\"cloud computing\"","\"cloud services\"","\"Functions\"","\"Image Processing\"","\"Microsoft Azure\"","\"Serverless Computing\"","\"Serverless Function\""],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/","url":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/","name":"Building an Azure Serverless Function for image processing - Pantherax Blogs","isPartOf":{"@id":"http:\/\/localhost:10003\/#website"},"datePublished":"2023-11-04T23:14:03+00:00","dateModified":"2023-11-05T05:48:01+00:00","breadcrumb":{"@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10003\/building-an-azure-serverless-function-for-image-processing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10003\/"},{"@type":"ListItem","position":2,"name":"Building an Azure Serverless Function for image processing"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10003\/#website","url":"http:\/\/localhost:10003\/","name":"Pantherax Blogs","description":"","publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10003\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/localhost:10003\/#organization","name":"Pantherax Blogs","url":"http:\/\/localhost:10003\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/","url":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","contentUrl":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","width":1024,"height":1024,"caption":"Pantherax Blogs"},"image":{"@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7","name":"Panther","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","caption":"Panther"},"sameAs":["http:\/\/localhost:10003"],"url":"http:\/\/localhost:10003\/author\/pepethefrog\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4094"}],"collection":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/comments?post=4094"}],"version-history":[{"count":1,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4094\/revisions"}],"predecessor-version":[{"id":4450,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4094\/revisions\/4450"}],"wp:attachment":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/media?parent=4094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/categories?post=4094"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/tags?post=4094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}