Skip to content

Content Format

The API currently supports JSON and XML formats. Format defaults to JSON, but can be specified in one of three ways, in the following priority order:

  1. file-type media extension indicator
  2. url query string
  3. HTTP Accept header

Examples

http
/punches.json
http
/punches.xml
http
?format=json
http
?format=xml
http
Accept: application/json
http
Accept: application/xml

Fareclock API Documentation