archive

The archive service provides stream messages that are no longer available on the stream service.

Finding archives

https://consumer.qa.data.spglobal.com/namespace/archives?from=DATE_TIME_START&to=DATE_TIME_END

returns the archives in the time range, in an envelope with an archives array. Each archive has an id and a size. With includeMetaData=true each archive also has a from and to time and an eventsCount. The default limit is 1000.

Only archives older than the retention period of the stream are listed. The service is available for datasets that are archived.

Reading an archive

https://consumer.qa.data.spglobal.com/namespace/ARCHIVE_ID/archive?limit=LIMIT

The response is an envelope with an archive array of stream messages, requestId, timeToFirstWrite and an after value. The messages have the structure described for the stream service, with the underlying event names as message types. CSV is not available for this service.

Use after to request the next page:

https://consumer.qa.data.spglobal.com/namespace/ARCHIVE_ID/archive?limit=LIMIT&after=AFTER_VALUE

An archive identifier can contain slashes. Use it exactly as returned by the archives request.