latest

The latest service returns the most recent record of each instance of an entity.

https://consumer.qa.data.spglobal.com/namespace/Entity/latest?...

Use a filter on a field such as id to keep the response size manageable:

https://consumer.qa.data.spglobal.com/namespace/Entity/latest?id=ID1,ID2,ID3

A single record can also be requested by its identifier: https://consumer.qa.data.spglobal.com/namespace/Entity/ID1/latest. This returns one object, or the error INSTANCE_DOES_NOT_EXIST with status 404. https://consumer.qa.data.spglobal.com/namespace/Entity and https://consumer.qa.data.spglobal.com/namespace/Entity/ID1 are shorter forms of the same requests.

Paging

Use limit to restrict the number of records per response. The default and maximum number of records per request are determined by your account, and the default is 10,000. A larger limit is refused with an error.

To obtain the next page, request the envelope and repeat the request with after set to the value from the envelope. Do not construct the after value yourself.

Filtering on a range of values

Add an inclusive lower bound with >= and an inclusive upper bound with <= after a range field:

https://consumer.qa.data.spglobal.com/namespace/Entity/latest?asOf>=2017-03-04Z&asOf<=2017-03-31Z

Not all fields that can be used as filters support ranges. Dates are written as YYYY-MM-DD, optionally followed by a time and a time zone, or as milliseconds since the epoch. A + in a time zone offset must be percent-encoded as %2B. Quote the URL when you use it in a shell, because < and > have a special meaning.

Note: The latest service only provides the most recent record. If the most recent record does not fall in the specified range, nothing is returned for that instance, even when an earlier record did.

Combining entities

Use inline to expand references to other entities in the response.

Other parameters

rankBy, sortBy, descending, groupBy, modulus, fields, dateFormat, format, showMessage, showStreamCursor and requestTimeout also apply to the latest service.