Query the lookup field object records based on lookup field setting.

Language
Credentials
Header
Click Try It! to start a request and see the response here!