<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Maximum length of GET request for the API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300077#M28211</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/102130"&gt;@Bernardo_Cobli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GET Requests are usually limited to 2,048 Characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you use a different method? e.g. POST?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no limits (as far as I know) to POST requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2019 00:06:59 GMT</pubDate>
    <dc:creator>Mike_Eastwood</dc:creator>
    <dc:date>2019-11-02T00:06:59Z</dc:date>
    <item>
      <title>Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/299963#M28193</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the "get all tickets"(&lt;A href="https://developers.hubspot.com/docs/methods/tickets/get-all-tickets" target="_blank"&gt;https://developers.hubspot.com/docs/methods/tickets/get-all-tickets&lt;/A&gt;) API call, but I'm trying to get&amp;nbsp;around&amp;nbsp; 600 properties, some with very long names. If I try to get them all in one call I receive "414 Request-URI Too Large", which is expected, but I was unable to find what is the maximum size allowed.&lt;BR /&gt;Trying different numbers I discovered the with a URL request of about 16300 I can still perform the request.&lt;BR /&gt;My question is, can I trust that this number will be mantained? Do you have a more precision definition? is this a constant for all requests?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:35:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/299963#M28193</guid>
      <dc:creator>Bernardo_Cobli</dc:creator>
      <dc:date>2019-11-01T12:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300077#M28211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/102130"&gt;@Bernardo_Cobli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GET Requests are usually limited to 2,048 Characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you use a different method? e.g. POST?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no limits (as far as I know) to POST requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 00:06:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300077#M28211</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2019-11-02T00:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300370#M28238</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the delay, the method is described as a GET, so I am gessing that I can't use a POST method.&lt;/P&gt;&lt;P&gt;About the limit, the GET limit is actually defined between client and server, the 2048 limit is a defaut for some browsers, but in this case I was able to get about 16300 characters without an error, so that isn't the limit.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:50:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300370#M28238</guid>
      <dc:creator>Bernardo_Cobli</dc:creator>
      <dc:date>2019-11-05T11:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300528#M28257</link>
      <description>&lt;P&gt;Sorry, I wasn't very clear – as far as I know there's a limit to query lengths in a URI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GET method from the API should return a significant amount of data easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To me – from the error "&lt;SPAN&gt;414 Request-URI Too Large&lt;/SPAN&gt;" I would assume the query URI called by you code is too long. Difficult to know without seeing your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you just request all properties? Then the Request URI would be shorter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:27:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/300528#M28257</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2019-11-05T21:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/662625#M54681</link>
      <description>&lt;P&gt;Two questions&lt;BR /&gt;&lt;BR /&gt;1) is there a post version of the List API?&amp;nbsp; (documentation doesn't seem to indicate there is)|&lt;BR /&gt;2) Is there a 'get all properties' request (once again documentation doesn't seem to indicate there is)&lt;BR /&gt;&lt;BR /&gt;So both are blockers&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 07:06:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/662625#M54681</guid>
      <dc:creator>CAS-FHQ</dc:creator>
      <dc:date>2022-07-11T07:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/663888#M54759</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/159557"&gt;@CAS-FHQ&lt;/a&gt;. Can you link me to List API documentation you are referring to, please?&lt;/P&gt;
&lt;P&gt;I found several POST endpoints for the Lists API:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/lists/create_list" target="_blank" rel="noopener"&gt;Create a new contact list&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/lists/update_list" target="_blank" rel="noopener"&gt;Update a contact list&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list" target="_blank" rel="noopener"&gt;Add existing contacts to a list&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A role="menuitem" href="https://legacydocs.hubspot.com/docs/methods/lists/remove_contact_from_list?_ga=2.223854235.147368465.1657550707-1884560883.1643660332&amp;amp;_gac=1.191505880.1656102554.CjwKCAjwwdWVBhA4EiwAjcYJEBtBN2__H3Bf63HofPs5C7Kz7I5EHB79GH6ZyOra_igAhotRPLaDExoCI08QAvD_BwE" target="_blank"&gt;Remove contact from list&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Source — &lt;A href="https://developers.hubspot.com/docs/api/marketing/contact-lists#:~:text=For%20the%20latest%20stable%20Version%20check%20out%20these%20pages" target="_blank" rel="noopener"&gt;Contact List API options&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For Q2, we have the Get all properties endpoint for a specific Object —&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-properties/get-properties" target="_blank" rel="noopener"&gt;Get all object properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have additional or more specific questions, I'd encourage you to create a new post, as this post is older and posting here may not get you the visibility your question deserves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 17:22:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/663888#M54759</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-07-12T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GET request for the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/664217#M54770</link>
      <description>&lt;P&gt;Sorry wasn't clear I realise (given there is a thing called lists).&lt;BR /&gt;&lt;BR /&gt;All of the object APIs have a list capability (i.e. get all data)&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/contacts&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;GET&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v3/objects/contacts&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;They are GET, not POST.&amp;nbsp; To retrieve properties you have to pass the properties array on the URL as a parameter so you get something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/objects/contacts?limit=100&amp;amp;properties=email%2Csomecustomproperty%2Canothercustomproperty&amp;amp;archived=false&amp;amp;hapikey=YOUR_HUBSPOT_API_KEY'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want every property you have to put them all on the URL query string.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 05:34:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Maximum-length-of-GET-request-for-the-API/m-p/664217#M54770</guid>
      <dc:creator>CAS-FHQ</dc:creator>
      <dc:date>2022-07-13T05:34:28Z</dc:date>
    </item>
  </channel>
</rss>

