title: Get specific metadata only from List of Blobs in Azure Storage [Azure-Blob][REST]
body: <p>I am successfully able to get a List of Blobs in a Container through REST calls in Azure Blob through this code.</p>
  <pre><code>const request = require(&quot;request&quot;);  
  require(&quot;dotenv&quot;).config();
  
  const account = process.env.ACCOUNT_NAME || &quot;&quot;;
  const key = process.env.ACCOUNT_KEY || &quot;&quot;;
  var strTime = new Date().toUTCString();
  const containerName = &quot;demo&quot;;
  
  const BearerToken = &lt;BearerToken&gt;;
  
  const options = {
    url: `https://${account}.blob.core.windows.net/${containerName}?comp=list&amp;restype=container`,
  
    headers: {
      Authorization: `Bearer ${BearerToken}`,
      &quot;x-ms-date&quot;: strTime, //var strTime = new Date().toUTCString();
      &quot;x-ms-version&quot;: &quot;2019-02-02&quot;, // Stable xms vesrion
    },
  };
  
  function callback(error, response, body) {
    console.log(response.body);
  }
  
  request(options, callback);
  </code></pre>
  <p>The output of the code:</p>
  <pre><code> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;EnumerationResults ServiceEndpoint=&quot;https://&lt;storageaccount&gt;.blob.core.windows.net/&quot; ContainerName=&quot;demo&quot;&gt;
      &lt;Blobs&gt;
          &lt;Blob&gt;
              &lt;Name&gt;
                  Mayank Photo.jpg
              &lt;/Name&gt;
              &lt;Properties&gt;
                  &lt;Creation-Time&gt;
                      Fri, 12 Mar 2021 09:09:32 GMT
                  &lt;/Creation-Time&gt;
                  &lt;Last-Modified&gt;
                      Fri, 12 Mar 2021 09:09:32 GMT
                  &lt;/Last-Modified&gt;
                  &lt;Etag&gt;
                      0x8D8E5368CBE80AB
                  &lt;/Etag&gt;
                  &lt;Content-Length&gt;
                      16685
                  &lt;/Content-Length&gt;
                  &lt;Content-Type&gt;
                      image/jpeg
                  &lt;/Content-Type&gt;
                  &lt;Content-Encoding /&gt;
                  &lt;Content-Language /&gt;
                  &lt;Content-CRC64 /&gt;
                  &lt;Content-MD5&gt;
                      AIoyEnG9amzFlWZ7t1YlCw==
                  &lt;/Content-MD5&gt;
                  &lt;Cache-Control /&gt;
                  &lt;Content-Disposition /&gt;
                  &lt;BlobType&gt;
                      BlockBlob
                  &lt;/BlobType&gt;
                  &lt;AccessTier&gt;
                      Hot
                  &lt;/AccessTier&gt;
                  &lt;AccessTierInferred&gt;
                      true
                  &lt;/AccessTierInferred&gt;
                  &lt;LeaseStatus&gt;
                      unlocked
                  &lt;/LeaseStatus&gt;
                  &lt;LeaseState&gt;
                      available
                  &lt;/LeaseState&gt;
                  &lt;ServerEncrypted&gt;
                      true
                  &lt;/ServerEncrypted&gt;
              &lt;/Properties&gt;
          &lt;/Blob&gt;
          &lt;Blob&gt;
              &lt;Name&gt;
                  MayankPhoto.jpg
              &lt;/Name&gt;
              &lt;Properties&gt;
                  &lt;Creation-Time&gt;
                      Fri, 12 Mar 2021 09:10:28 GMT
                  &lt;/Creation-Time&gt;
                  &lt;Last-Modified&gt;
                      Fri, 12 Mar 2021 09:10:28 GMT
                  &lt;/Last-Modified&gt;
                  &lt;Etag&gt;
                      0x8D8E536AE20F3A1
                  &lt;/Etag&gt;
                  &lt;Content-Length&gt;
                      16685
                  &lt;/Content-Length&gt;
                  &lt;Content-Type&gt;
                      image/jpeg
                  &lt;/Content-Type&gt;
                  &lt;Content-Encoding /&gt;
                  &lt;Content-Language /&gt;
                  &lt;Content-CRC64 /&gt;
                  &lt;Content-MD5&gt;
                      AIoyEnG9amzFlWZ7t1YlCw==
                  &lt;/Content-MD5&gt;
                  &lt;Cache-Control /&gt;
                  &lt;Content-Disposition /&gt;
                  &lt;BlobType&gt;
                      BlockBlob
                  &lt;/BlobType&gt;
                  &lt;AccessTier&gt;
                      Hot
                  &lt;/AccessTier&gt;
                  &lt;AccessTierInferred&gt;
                      true
                  &lt;/AccessTierInferred&gt;
                  &lt;LeaseStatus&gt;
                      unlocked
                  &lt;/LeaseStatus&gt;
                  &lt;LeaseState&gt;
                      available
                  &lt;/LeaseState&gt;
                  &lt;ServerEncrypted&gt;
                      true
                  &lt;/ServerEncrypted&gt;
              &lt;/Properties&gt;
          &lt;/Blob&gt;
      &lt;/Blobs&gt;
      &lt;NextMarker /&gt;
  &lt;/EnumerationResults&gt;
  </code></pre>
  <p>As you can see there are many other fields/metadata returned apart from the blob name is there a way to get only some specific metadata field in output eg: filename, DateCreated, ContentLength.
  Because sometimes I may encounter a long list of files in that case I need a short and fast response.</p>
  <p>I think it might have something to with the metadata URL parameter in the include specified <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/list-blobs" rel="nofollow noreferrer">here</a> but I don't know how to modify my URL accordingly.</p>