Fixed #22812 -- Refactored lookup API documentation.

Thanks Anssi and Tim for reviews.