Filtering the API Query

Hello,

Is it possible to use filter on API Query? It doesn’t seem so, at least I didn’t find a way, how to do it.

If not, is there a feature request or idea on Ideaboard I could vote for?

Thanks

1 Like

Can the api filter on api request? Like WordPress api does. By the api link you can filter posts, users ect. That’s often the whole point of an api. Getting selected data instead of everything.

Bricks does have an idea board.

Maybe some more information about what you want to filter might help with answers.

Well maybe I wasn’t clear enough. By filtering the API Query I meant this filtering: Query Sort, Filter & Live Search – Bricks Academy

I can make a query loop based on API:

Now, I would like to create a filter for it using Brick’s filter fields.

But there’s no way to add there a field from API Query data, I can add only Taxonomies, WP fields and custom fields. No API fields there:

And yes, I’ve tried to use the custom fields to fill in the API fields and it didn’t work…

I can imagine, it would be quite a difficult task, but it would be nice to have it there…

You get a locally stored data set from the api so normally you would request a specific api url for what you want to filter on.

You can add several url parameters inside the api config to do so.

I don’t think they are accessible inside the filters atm. A feature request might be nice.

Though, I’m not sure if the desired behavior of an api is presenting a complete database to a user and have him filter on it. (normal caching time is 5 min)(and you lose tracking what a user looks at).

So i would imagine, instead of filtering, just sending a new api request based on the “selected” filter.

I had this exact same question. Opening this up would allow for some very powerful integrations.

@Matej what are your thoughts about this one? “Filter support for API queries”