API query for a record.