# How to use query string to when making kintone.proxy() call?

**URL:** <https://forum.kintone.dev/t/how-to-use-query-string-to-when-making-kintone-proxy-call/227>\
**Category:** General\
**Created:** [January 4, 2022, 9:24pm UTC](https://forum.kintone.dev/t/how-to-use-query-string-to-when-making-kintone-proxy-call/227 "2022-01-04T21:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 4, 2022, 9:24pm UTC](https://forum.kintone.dev/t/how-to-use-query-string-to-when-making-kintone-proxy-call/227/1 "2022-01-04T21:24:40Z")

</div>

How to use query string to limit my retrieval to only matching records when making kintone.proxy() call? For example, I want to retrieve only records that has gp=record.gphidden.value (a string)

function getData(machinesselected, record) {

&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; var header = { ‘X-Cybozu-API-Token’: ‘xxx’’ };

&nbsp; &nbsp; &nbsp; &nbsp; var url = ‘/k/v1/records.json?app=83’;

&nbsp; &nbsp; &nbsp; &nbsp; kintone.proxy(url, ‘GET’, header, {}, function (body, status, headers) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.log(JSON.parse(body));

&nbsp; &nbsp; &nbsp; &nbsp; }, function (error) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.log(‘error’, error);

&nbsp; &nbsp; &nbsp; &nbsp; });

}

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 6, 2022, 5:41pm UTC](https://forum.kintone.dev/t/how-to-use-query-string-to-when-making-kintone-proxy-call/227/2 "2022-01-06T17:41:25Z")

</div>

## Retrieve Records Using Developer Tool Console

Hi Annaylee,

By executing the following process on the console screen of the developer tool, you can retrieve records by specifying a query.

### Example

```javascript
var sQuery = 'gp="record.gphidden.value"';
sQuery = encodeURIComponent(sQuery);

kintone.proxy(
  'https://{subdomain}.cybozu.com/k/v1/records.json?app=83&query=' + sQuery,
  'GET',
  {
    'X-Cybozu-API-Token': "API Token"
  },
  {},
  function (body, status, headers) {
    console.log(JSON.parse(body));
  },
  function (error) {
    console.log(error);
  }
);

```

Please refer to the example and see if you can achieve the desired result by modifying the process.

Hopefully, this helps.
