CRM

foxsterben
Colaborador

Obtener todos los contactos mas de 100

resolver

alguien sabe como con la llamada a la api se puedan obtener mas de 100 que leo es el limite.

 

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo


me parece increible que la llamada se llame Gett All Contacts y solo puedas traer 100, es una incongruencia

0 Me gusta
1 Soluciones aceptada
tominal
Solución
Guía | Partner
Guía | Partner

Obtener todos los contactos mas de 100

resolver

Hi @foxsterben,

 

We are limited to 100 to prevent servers from being overloaded. What if you had 15,000,000 contacts? Returning them all in one request is not feasible. It is up to your integration to make requests one after the other in order to get all contacts.

 

For example, you can run the API request once and it will tell you if you need to run it again with an offset.

 

{
  "contacts": [
    ...
  ],
  "has-more": true,
  "vid-offset": 207303
}

 

You can use those two values to keep making API requests to get more and more data. If has-more is true, your next call would be:

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&vidOffset=207303

Hope that helps!


Google Translated version (my apologies if this is butchered):

Estamos limitados a 100 para evitar que los servidores se sobrecarguen. ¿Y si tuvieras 15.000.000 de contactos? Devolverlos todos en una sola solicitud no es factible. Depende de su integración realizar solicitudes una tras otra para obtener todos los contactos.

 

Por ejemplo, puede ejecutar la solicitud de API una vez y le dirá si necesita ejecutarla nuevamente con un desplazamiento.

 

{
  "contacts": [
    ...
  ],
  "has-more": true,
  "vid-offset": 207303
}

 

Puede usar esos dos valores para seguir haciendo solicitudes de API para obtener más y más datos. Si has-more es cierto, tu próxima llamada sería:

 

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&vidOffset=207303

 

¡Espero que ayude!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com

Ver la solución en mensaje original publicado

1 Respuesta 1
tominal
Solución
Guía | Partner
Guía | Partner

Obtener todos los contactos mas de 100

resolver

Hi @foxsterben,

 

We are limited to 100 to prevent servers from being overloaded. What if you had 15,000,000 contacts? Returning them all in one request is not feasible. It is up to your integration to make requests one after the other in order to get all contacts.

 

For example, you can run the API request once and it will tell you if you need to run it again with an offset.

 

{
  "contacts": [
    ...
  ],
  "has-more": true,
  "vid-offset": 207303
}

 

You can use those two values to keep making API requests to get more and more data. If has-more is true, your next call would be:

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&vidOffset=207303

Hope that helps!


Google Translated version (my apologies if this is butchered):

Estamos limitados a 100 para evitar que los servidores se sobrecarguen. ¿Y si tuvieras 15.000.000 de contactos? Devolverlos todos en una sola solicitud no es factible. Depende de su integración realizar solicitudes una tras otra para obtener todos los contactos.

 

Por ejemplo, puede ejecutar la solicitud de API una vez y le dirá si necesita ejecutarla nuevamente con un desplazamiento.

 

{
  "contacts": [
    ...
  ],
  "has-more": true,
  "vid-offset": 207303
}

 

Puede usar esos dos valores para seguir haciendo solicitudes de API para obtener más y más datos. Si has-more es cierto, tu próxima llamada sería:

 

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&vidOffset=207303

 

¡Espero que ayude!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com