GET /catalog/changes lists each of those changes,
oldest first. Reading it is free and needs no key.
Do you need it?
If you leavesource out of your requests, you do not need to watch this feed. Routing
picks a source for each request and fails over to another when one fails. A removed or
repriced source is handled for you.
If you name a source in source, poll this feed. A request that names a source is tied to
that source: when it is removed, those requests are refused, and when its price changes,
they cost the new price. See Choose sources for how pinning works.
Most changes appear in the feed when they go live. A price increase can be announced
ahead instead: see Announced price increases.
Poll the feed
Start with nocursor. You get the changes from the first one, up to 50 per response:
cursor. On your next poll, send it back:
changes is empty and cursor is
the one you sent. When hasMore is true, poll again right away with the new cursor.
limit asks for fewer changes per response. A value above the maximum is reduced to it.
Change kinds
source and before and after appear only on source changes. before is the source as it
was, on source_removed and source_price_changed, and its current price on
source_price_increase_scheduled. after is the source as it is now, on source_added and
source_price_changed, and the price it will charge on source_price_increase_scheduled. Each holds the source’s identity and its offers,
priced in USD in the same shape as lanes[].pricing on GET /catalog. Most sources have one
offer.
Announced price increases
A price increase can arrive in three steps, tied together by the samechangeId:
source_price_increase_scheduledannounces it.beforeholds the price the source charges now andafterthe price it will charge.effectiveAtis when the new price applies. Until then, requests that name the source keep paying the current price.source_price_changedreports it applying, with the samechangeIdandeffectiveAt.- Or
source_price_increase_cancelledwithdraws it, with the samechangeIdand a shortreasoncode. The source keeps its price.
source_price_changed with no changeId was not announced ahead; it went live when it
appears.
Sources that pause
A source that has stopped serving for a while after failures is not a change, and does not appear here. It stays listed onGET /catalog under notServingSources and returns on its own.