Child pages
  • What the easiest way to find most recent data added to CMR?
Skip to end of metadata
Go to start of metadata

If I am only interested in the newest collections/granules that have been populated since the last time I checked, what's the easiest way to do that via the API?

  • No labels

5 Comments

  1. Use `updated_since`. 
    curl "https://cmr.earthdata.nasa.gov/search/collections?updated_since=2014-05-08T20:06:38.331Z"
  2. The updated_since parameter can show you what data has been modified since you last checked. Here's an example showing which collections have been updated since the start of 2016:

    curl "https://cmr.earthdata.nasa.gov/search/collections.xml?updated_since=2016-01-01T00:00:00Z&pretty=true"
  3. We use 

    "updated_since": {

    "description": "Revisions with revision date later than provided value",

    "format": "date-time",

    "type": "string"

    },

     

     

  4. Is there a way to distinguish between brand-new collections and those whose metadata have been simply revised?

    1. With most of the response formats a revision id is returned. If the revision id is 1 then it's a brand new collection.