The API provides several response types, each designed to be useful in a variety of programming contexts:
The request can specify the desired response type in either of two ways:
The type argument, if present, overrides the Accept header.The Accept header works by specifying one or more acceptable media types and a "quality factor" for each. Our API selects the media type with the highest quality factor from the list below and uses the corresponding response type:
If more than one media type have equal quality factors, the API selects the first from the list. If none of the listed media types are acceptable, the XML response type is used.
The response indicates the response type in the HTTP Content-Type header: