# Searching Files

**URL:** <https://community.hubspot.com/t/searching-files/69454>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [November 17, 2022, 10:49am UTC](https://community.hubspot.com/t/searching-files/69454 "2022-11-17T10:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKaurin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/akaurin/32/196948_2.png) [@AKaurin](https://community.hubspot.com/u/AKaurin)\
**Post date:** [November 17, 2022, 10:49am UTC](https://community.hubspot.com/t/searching-files/69454/1 "2022-11-17T10:49:51Z")

</div>

I am using NodeJS hubspot client api. After creating the client instance, I am calling the following method:

`const response = await client.apiRequest({ method: 'GET', path: '/files/v3/files/search', defaultJson: true,});`

However, the response is the following.  
Shouldn’t this be list of the files?

```lia-code-sample
{
 "size": 0,
 "timeout": 0
}

```

Not sure what am I doing wrong.

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [November 18, 2022, 9:06am UTC](https://community.hubspot.com/t/searching-files/69454/2 "2022-11-18T09:06:49Z")

</div>

@AKaurin

Hi.

In my case, it works.

```lia-code-sample
const hubspot = require('@hubspot/api-client');

const hubspotClient = new hubspot.Client({ apiKey or accessToken });
const response = await hubspotClient.apiRequest({
 path: '/files/v3/files/search',
 method: 'GET',
 defaultJson: true,
});

console.log(response.body);
/*
{
 results: [
 { ... }, 
 ....
 paging: { ... }
}
*/

```

Does the file exist on the target?

If you can, please paste all source code and response.

Thanks.
