APIs & Integrations

KPadhiyar
Participant

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

I'm using hubspot-api-php for do operation in HubSpot.

When I try to get single contact by objectId with more than 350 properties it gives me error like: 414 Request-URI Too Large. Can anyone suggest me what can I do for handle such type of instance? What's the maximum limit of character in API query parameter?

Thanks,



1 Accepted solution
KPadhiyar
Solution
Participant

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

@Jaycee_Lewis The problem has been resolved. We can use batch API for this kind of issues. Thanks for the reply.

View solution in original post

0 Upvotes
4 Replies 4
GRajput
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

Hi @KPadhiyar 

 

Are you looking for a particular contact or do you want all contacts?
Are these properties HubSpot defined or contacts-custom property?

 

here is the link of contact API - https://developers.hubspot.com/docs/reference/api/crm/objects/contacts

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
KPadhiyar
Participant

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

@GRajput I want for particular contact and properties can be any HubSpot defined or custom. Batch API works for me. I've already reply in this thread as Accepted Solution.

0 Upvotes
KPadhiyar
Solution
Participant

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

@Jaycee_Lewis The problem has been resolved. We can use batch API for this kind of issues. Thanks for the reply.

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

I got 414 Request-URI Too Large while fetching contact with more than 350 properties.

SOLVE

Hey, @KPadhiyar 👋 The documentation for these endpoints doesn't explicitly list a character limit. Have you tried using the Search API instead? Other posters who've hit the same limitation have worked around it by using the Search API. The Search API does list the query limitations in the documentation, which is helpful: “A query can contain a maximum of 3,000 characters. If the body of your request exceeds 3,000 characters, a 400 error will be returned”.

 

Best,

Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes