Child pages
  • Is it possible to retrieve a metadata record from the CMR without the <result> wrapper in the XML?
Skip to end of metadata
Go to start of metadata

curl -X GET "https://cmr.earthdata.nasa.gov/search/collections.native?provider=ges_disc&page_size=2000&concept_id=C1223726607-GES_DISC&pretty=true"

returns:

<?xml version="1.0" encoding="UTF-8"?>

<results>

    <hits>1</hits>

    <took>16</took>

    <result concept-id="C1223726607-GES_DISC"

        format="application/dif10+xml" revision-id="26">

metadata body....

   </result>

</results>

 

 

 

 

  • No labels

4 Comments

  1. I am looking for the raw XML without the <results> wrapper? Is that possible?

  2. Yes that URL will return it without the results wrapper

     

    curl https://cmr.earthdata.nasa.gov/search/concepts/C1223726607-GES_DISC

    <?xml version="1.0" encoding="UTF-8"?>
    <DIF xmlns="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"
    xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif_v10.2.xsd">
    <Entry_ID>
    <Short_Name>ACOS_L2S</Short_Name>
    <Version>3.5</Version>
    </Entry_ID>

    ...

  3. I see.  Excellent.  Thank you Jason.