# Is there a way to add parameters to the API query? \[more efficient way of retrieving a single row\]

**URL:** <https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592>\
**Category:** Ask for Help\
**Created:** [December 9, 2022, 9:27am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592 "2022-12-09T09:27:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cor\_prettysimpl](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cor_prettysimpl/32/51417_2.png) [@cor\_prettysimpl](https://community.glideapps.com/u/cor_prettysimpl)\
**Post date:** [December 9, 2022, 9:27am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/1 "2022-12-09T09:27:38Z")

</div>

Hi all,  
I need to get a specific row from a table but I do not have the rowId. I do however have access to another unique identifier.

Is there a way I can use the queryTables or other API endpoint to get this row in an efficient way? Retrieving 60k+ rows just to get this one row is not ideal.

Thanks in advance

Cor

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 9, 2022, 9:36am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/2 "2022-12-09T09:36:53Z")

</div>

I guess this is a follow up from your [last question](https://community.glideapps.com/t/in-custom-actions-how-do-i-access-variables-higher-up-the-flow-in-steps-lower-down/55591) 🙂

Short answer is no. The API doesn’t support any filtering options with `GET_ALL_ROWS`. It’s all or nothing. (I wish it did, and am hopeful that it will at some point).

Can you describe the bigger picture a little bit? - maybe there might be an easier way to get to your end goal. What is your data source - Glide tables only, or something else?

---

<div class="post-metadata">

**Author:** ![cor\_prettysimpl](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cor_prettysimpl/32/51417_2.png) [@cor\_prettysimpl](https://community.glideapps.com/u/cor_prettysimpl)\
**Post date:** [December 9, 2022, 9:40am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/3 "2022-12-09T09:40:04Z")

</div>

Hi @Darren_Murphy,

Thanks for the reply. While I have been in low-code for a long time this is my first real outing into Glide so just getting into all the good and unfortunately not-so-good things about it.

Still working on your suggestion in the other post, was just curious on the overall api capability or lack thereof.

Thanks again for responding so quickly and for sharing so openly.

Best  
Cor

---

<div class="post-metadata">

**Author:** ![Bill\_Donnelly](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bill_donnelly/32/55543_2.png) [@Bill\_Donnelly](https://community.glideapps.com/u/Bill_Donnelly)\
**Post date:** [April 2, 2023, 1:55am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/4 "2023-04-02T01:55:24Z")

</div>

Hi Folks,

New to Glide but long time Zapier user. I ported the back-end DBs from Air-table to Glide tables (not an easy migration BTW) when I heard you had an API. My app requires some logic that updates fields in 2 different tables from a submit action in one form. This would be easy to do in a Zap if the API followed some CRUD or REST patterns. My bad for not checking sooner, but your API is literally unusable with Zapier in this common use case:

1. +1 to the OP’s question. Having to dump the entire DB just to find your internal row identifiers is not workable and cannot scale.

2. Returning the data as CSVs instead or proper JSON means that I’d have to write some hacky parsers in Python to make the Zap work.

So 100% supportive of the low-code/no-code paradigm, but you really need a decent API for the edge cases. If we could pass parameters to the queryTables end-point based on fields in the table and if you returned a JSON data structure that Zapier could parse, that would be amazing.

I’m off to move my DBs out into something that Zapier can process.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 2, 2023, 2:25am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/5 "2023-04-02T02:25:25Z")

</div>

> [@Bill\_Donnelly](#):
>
> +1 to the OP’s question. Having to dump the entire DB just to find your internal row identifiers is not workable and cannot scale.

Filterable queries are most likely coming, we just don’t know exactly when.  
Believe me, you’re not the only one that wants this 🙂

> [@Bill\_Donnelly](#):
>
> Returning the data as CSVs instead or proper JSON means that I’d have to write some hacky parsers in Python to make the Zap work.

Where did you get this idea?  
Anyway, that’s simply not true. All Glide API calls return properly structured JSON.

---

<div class="post-metadata">

**Author:** ![Bill\_Donnelly](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bill_donnelly/32/55543_2.png) [@Bill\_Donnelly](https://community.glideapps.com/u/Bill_Donnelly)\
**Post date:** [April 2, 2023, 2:53am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/6 "2023-04-02T02:53:47Z")

</div>

Zapier puts the output in line-oriented csv (i.e. one comma-delimited line for each field in the DB).  
Do you know of a way to pass a single field’s data to a subsequent step in the Zap without parsing the string and finding the element that you need.

For example, the output in Zapier comes out like this:

 ![Screenshot 2023-04-01 at 10.45.31 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1c588105476ea132b730de5fce7ba7bafe69536a.png)

Row 1: “bill, mike, joe”  
Row 2: “smith, jones, greene”

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 2, 2023, 3:00am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/7 "2023-04-02T03:00:53Z")

</div>

ah, I see.  
So that’s a Zapier issue, not a Glide issue. Sorry, I’m not a Zapier user, but I’m sure somebody else will be able to advise on that.

---

<div class="post-metadata">

**Author:** ![Bill\_Donnelly](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bill_donnelly/32/55543_2.png) [@Bill\_Donnelly](https://community.glideapps.com/u/Bill_Donnelly)\
**Post date:** [April 2, 2023, 3:18am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/8 "2023-04-02T03:18:17Z")

</div>

Gotcha, the issue raised by the OP is the other blocker. Most DB APIs have this workflow to edit a record:

1. Call the Query API with query parameters based on fields in the DB and grab the recordID from the output
2. Use the recordID to make a call back to the API to update the record.

We can’t do that with the Glide Table API. We would first have to pull the entire DB, then (on the Zapier side) put it all into something that could be indexed (i.e. array), figure out which field identifiers correspond to the fields we need to search, make a search function to find the record we need, then get the recordID.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 2, 2023, 3:23am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/9 "2023-04-02T03:23:49Z")

</div>

yep, I agree, it’s a PITA.  
I’ve been badgering Glide about this for some time now.  
As I mentioned earlier, I’ve been told it’s most likely coming, it’s just a matter of how long it takes to bubble to the top of the list.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 3, 2023, 12:10am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/10 "2023-04-03T00:10:17Z")

</div>

Just curious since I never used it, does it cost 1 update to query the whole table, or X updates with X being the rows count of that table?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 3, 2023, 1:28am UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/11 "2023-04-03T01:28:12Z")

</div>

I assume it’s just a single update, or maybe a handful.  
It’s definitely not one update per row, otherwise I’d be racking up millions up updates per month 🤣  
(I’m not)

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [August 11, 2023, 7:22pm UTC](https://community.glideapps.com/t/is-there-a-way-to-add-parameters-to-the-api-query-more-efficient-way-of-retrieving-a-single-row/55592/12 "2023-08-11T19:22:09Z")

</div>

Yes, this will help you: [🆕 Call API: call custom APIs, and return data back to your app](https://community.glideapps.com/t/call-api-call-custom-apis-and-return-data-back-to-your-app/64938)
