How to filter for a field using lookml_models explore endpoint

I am trying to fetch all the fields using GET /api/3.1/lookml_models/{lookml_model_name}/explores/{explore_name} but the query is hanging on me. ( I tried via the swagger UI from looker UI)

What could be going possible wrong? Also, is there a way to filter for a field in that API endpoint? What is the syntax for it?

0 1 110
1 REPLY 1

I always like to start with API calls using the API Docs here: https://cloudbrigade.looker.com:19999/api-docs/index.html#!/3.1/ I tried your endpoint there and it worked fine for me. In quick experimentation I couldn’t figure out what fields took, I always got a blank response when I specified fields. However, that seems like a minor point. The syntax for fields in API Docs shows ?fields=

After API Docs work, I usually try curl. That worked for me too. Here’s my curl example:

set api=https://cloudbrigade.looker.com:19999/api/3.1/lookml_models/%model%/explores/%explore%
curl -H "Authorization: token %access_token%" %api%

So, this is proof of concept that the API does indeed work. My hunch would be your problem is something specific to your model or explore. I’d try others and see if you get the same result. If you can reproduce your problem with a looker provided explore with API Docs or curl, then I’d think that would be a time to engage support.