# Rest API gravity forms, cURL

**URL:** <https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322>\
**Category:** Meeting Minutes\
**Created:** [October 15, 2021, 2:12pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322 "2021-10-15T14:12:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph\_menard-lansac](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@joseph\_menard-lansac](https://discuss.jsonapi.org/u/joseph_menard-lansac)\
**Post date:** [October 15, 2021, 2:12pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/1 "2021-10-15T14:12:15Z")

</div>

I have a problème with the Rest API of gravity forms, I use it with the cURL method, I have no problem with, except with the size of the J-son chain, he only give me 10 last entry to the concerned forms, if anyone know how to ask more entry (or all the entries of the form, that would be perfect but some forms have more than 1000 entry, i think it’s to heavy for the j-son link) thanks in advance for you’r help and I wish you a good afternoon, Joseph.

---

<div class="post-metadata">

**Author:** ![timothy.stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/timothy.stone/32/750_2.png) [@timothy.stone](https://discuss.jsonapi.org/u/timothy.stone)\
**Post date:** [October 15, 2021, 5:30pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/2 "2021-10-15T17:30:39Z")

</div>

Welcome @joseph_menard-lansac!

A couple of questions.

1. Gravity forms is a product or service using the JSON.api specification?
2. Can you use `curl` to source the `--data` from a file, reducing the complexity of the command? See below.

From `curl` manual, see `-d, --data <data>`

```nohighlight
If you start the data with the letter @, the rest should be a file name
to read the data from, or - if you want curl to read the data from
stdin. Multiple files can also be specified. Posting data from a file
named from a file like that, carriage returns and newlines will be
stripped out. If you don't want the @ character to have a special
interpretation use --data-raw instead.

```

**Edit** I think your question relates to Gravity Forms pagination API on a second read. See [GET /entries](https://docs.gravityforms.com/rest-api-v2/#get-entries) here and `page_size`. But 1000 may be a process intensive request, so tread lightly. If this was about POSTing 1000 forms, see above and reference the Gravity Forms API documentation.

But this forum is really not for generic JSON API discussions. See below.

HTH,  
Tim

---

<div class="post-metadata">

**Author:** ![timothy.stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/timothy.stone/32/750_2.png) [@timothy.stone](https://discuss.jsonapi.org/u/timothy.stone)\
**Post date:** [October 15, 2021, 5:50pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/3 "2021-10-15T17:50:07Z")

</div>

@joseph_menard-lansac The **Gravity Forms** REST API v2 is “a JSON API”, but it _does not follow_ the json:api specification. This discussion forum is for the json:api specification specifically, not for generic JSON API implementations or questions.

This often causes confusion in web searches, but please see [Section 2, Introduction](https://jsonapi.org/format/#introduction) for what the JSON.api specification is, and why Gravity Forms does not conform to the specification.

Though I hope my previous answer provides you a way of managing your request data size.

HTH,  
Tim

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [October 15, 2021, 10:08pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/4 "2021-10-15T22:08:00Z")

</div>

Another demonstration of naming being the hardest problem in software engineering.

–sigh–

-Fred

---

<div class="post-metadata">

**Author:** ![timothy.stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/timothy.stone/32/750_2.png) [@timothy.stone](https://discuss.jsonapi.org/u/timothy.stone)\
**Post date:** [October 19, 2021, 2:20pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/5 "2021-10-19T14:20:51Z")

</div>

@fdrake We had a “homebrew,” as in 🍺, slack channel at my previous employer. We would often get random questions about “homebrew,” the Mac OS \*nix package manager, in the channel from colleagues, _completely_ out of context to the conversation taking place about bottle shares, specific gravities, recipes, and flamewars about extract, partial, and full-grain brewing. 😆 It happens.

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [October 19, 2021, 2:42pm UTC](https://discuss.jsonapi.org/t/rest-api-gravity-forms-curl/2322/6 "2021-10-19T14:42:41Z")

</div>

The proper solution to such inappropriate questions would have been to take the Mac OS devices away from the questioners.

Of course, my position on Mac OS might present as bias.

-Fred
