/id endpoint return html if visited with a browser and JSON otherwise
/id endpoint return html if visited with a browser and JSON otherwise