get api fields method