# Combine filter and order in API calls?

**URL:** <https://community.awork.com/t/combine-filter-and-order-in-api-calls/2911>\
**Category:** Developer Forum\
**Created:** [20. Februar 2025 um 11:10 UTC](https://community.awork.com/t/combine-filter-and-order-in-api-calls/2911 "2025-02-20T11:10:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregor1](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@Gregor1](https://community.awork.com/u/Gregor1)\
**Post date:** [20. Februar 2025 um 11:10 UTC](https://community.awork.com/t/combine-filter-and-order-in-api-calls/2911/1 "2025-02-20T11:10:05Z")

</div>

Hi,

is it possible to pass both order and filter parameters to the API calls? I searched both docs and board, but did not find an answer.

e.g. api-call/?orderby=date asc AND filterby=name eq ‚XY‘

I tried and the only result is an API response telling me that either orderby or filterby is invalid, depending on which one is first.

I could filter or order in a third party tool calling the API, but a refined API response would facilitate the process.

Greg

---

<div class="post-metadata">

**Author:** ![Sebastian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.awork.com/sebastian/32/1305_2.png) [@Sebastian](https://community.awork.com/u/Sebastian)\
**Post date:** [20. Februar 2025 um 11:12 UTC](https://community.awork.com/t/combine-filter-and-order-in-api-calls/2911/2 "2025-02-20T11:12:02Z")

</div>

Hi @Gregor1, yes you can do that. You need to pass them as separate query params. Didn’t test it but this should work:

`api-call/?orderby=date asc&filterby=name eq 'XY'`

---

<div class="post-metadata">

**Author:** ![Gregor1](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@Gregor1](https://community.awork.com/u/Gregor1)\
**Post date:** [20. Februar 2025 um 11:16 UTC](https://community.awork.com/t/combine-filter-and-order-in-api-calls/2911/3 "2025-02-20T11:16:45Z")

</div>

Oh, stupid me 🤦‍♂️

Separate parameters makes so much sense 😉
