# Export data, query limit

**URL:** <https://forum.wixstudio.com/t/export-data-query-limit/37292>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [October 12, 2017, 1:41pm UTC](https://forum.wixstudio.com/t/export-data-query-limit/37292 "2017-10-12T13:41:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![belikerich](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@belikerich](https://forum.wixstudio.com/u/belikerich)\
**Post date:** [October 12, 2017, 1:41pm UTC](https://forum.wixstudio.com/t/export-data-query-limit/37292/1 "2017-10-12T13:41:15Z")

</div>

Hi, I’m working with your new feature: importing and exporting data.  
It works really well and I’m happy to use it.  
But I have two questions:

1. On the post [Velo Tutorial: Importing and Exporting Collection Data with Code | Help Center | Wix.com](https://support.wix.com/en/article/how-to-import-and-export-collection-data) you are saying: “The maximum allowable limit is 1000. So if you want to export more than 1000 items from your collection, you will need to perform multiple queries.” Could you give me an example how to pull out the data if there are over 1000 records? As we are aspecting a lot of subscribers based on last events.

2. We would like to download the data and it is nice that it can be doen by going to a third party website. But we would like to make it easy for our clients. Is there a possibility for a button download CSV? Which converts the data from JSON to CSV and immediately starts downloading the CSV?

Kind regards,

Richard

---

<div class="post-metadata">

**Author:** ![giedrius-grazevicius](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giedrius-grazevicius/32/711_2.png) [@giedrius-grazevicius](https://forum.wixstudio.com/u/giedrius-grazevicius)\
**Post date:** [October 12, 2017, 6:52pm UTC](https://forum.wixstudio.com/t/export-data-query-limit/37292/2 "2017-10-12T18:52:01Z")

</div>

Hi Richard,

to answer your questions:

1. You can always skip first X items to get 1000 more items. For example to get second thousand of items you could run the following query:

```javascript
wixData.query("collection")
  .limit(1000)
  .skip(1000)
  .find()

```

It is possible to count items in collection and loop the request until all items are received.

1. Currently, it is not possible with just Wix Code. But we are working on a feature that will enable such use cases. Follow our Product Updates for announcement.

Let me know if you need further assistance.

---

<div class="post-metadata">

**Author:** ![belikerich](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@belikerich](https://forum.wixstudio.com/u/belikerich)\
**Post date:** [October 13, 2017, 8:42am UTC](https://forum.wixstudio.com/t/export-data-query-limit/37292/3 "2017-10-13T08:42:31Z")

</div>

Thanks, that sure helps me a bit, especially for the first part!

But beside from the Wix code, isn’t it possible to combine it with Javascript what does the job?  
Tried already some things but not all elements where approved by Wix, for example $document and document.body.appendChild(link); are giving me errors. The code is coming from the following JS Fiddle which is quite easy code. Is it possible to combine it with the Wix code? I really want to have the job done.

Thanks,

---

<div class="post-metadata">

**Author:** ![giedrius-grazevicius](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giedrius-grazevicius/32/711_2.png) [@giedrius-grazevicius](https://forum.wixstudio.com/u/giedrius-grazevicius)\
**Post date:** [October 13, 2017, 7:07pm UTC](https://forum.wixstudio.com/t/export-data-query-limit/37292/4 "2017-10-13T19:07:49Z")

</div>

In Wix Code elements like document or window are not exposed. You get a higher level of abstraction to interact with elements in the page.

The reference of the things available can be found here:

> **[Velo API Reference - Wix.com](https://www.wix.com/velo/reference)**
>
> Velo's APIs (previously Corvid) empower you to take full control of your site’s functionality. Use the APIs to interact with site elements, your site’s database content, Wix Apps, and external services. The APIs also give you access to information...
