adds api_id to fields returned for easier debugging