X-HubSpot-RateLimit-Secondly-Remaining
How do I get this value? on
/crm/v3/objects/contacts/search
The Create/Update contact batches have it, but my issue is on the search as this is individual per every record.
My headers on Axios as recommended to use here:
https://community.hubspot.com/t5/APIs-Integrations/Wrapped-API-NodeJS-Headers/td-p/707764
This endpoint does not show Secondly Limit Remaining.
I am having to wait to hit it, then increase the timer or reduce records before it hits the timer.
Below is my headers from my call prior to hitting the limit error.
AxiosHeaders {
date: ‘REDACTED’,
‘content-type’: ‘application/json;charset=utf-8’,
‘content-length’: ‘24’,
connection: ‘close’,
‘cf-ray’: ‘7d1ff7430d474139-LHR’,
‘cf-cache-status’: ‘DYNAMIC’,
‘strict-transport-security’: ‘max-age=31536000; includeSubDomains; preload’,
vary: ‘origin, Accept-Encoding’,
‘access-control-allow-credentials’: ‘false’,
‘x-envoy-upstream-service-time’: ‘50’,
‘x-evy-trace-listener’: ‘listener_https’,
‘x-evy-trace-route-configuration’: ‘listener_https/all’,
‘x-evy-trace-route-service-name’: ‘envoyset-translator’,
‘x-evy-trace-served-by-pod’: ‘iad02/hubapi-td/envoy-proxy-598c95b5b7-ltr78’,
‘x-evy-trace-virtual-host’: ‘all’,
‘x-hubspot-correlation-id’: ‘46653b25-1ec7-4b68-a63e-2ed45bc5bfd8’,
‘x-hubspot-ratelimit-daily’: ‘500000’,
‘x-hubspot-ratelimit-daily-remaining’: ‘499851’,
‘x-request-id’: ‘ee0dc67a-d6bd-443a-96cd-80c8f9f5ea41’,
‘x-trace’: ‘2BBEDAE212973A0E093B676CA8A25C66FB635D802F000000000000000000’,
‘report-to’: ‘{“endpoints”:[{“url”:“https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Z22pQqwg7p1CWLI6hKBrcSpzAA14OTbxDMgYpQXO9ctyPQCdqEBdOK8Mkd5%2FtHF1NDewyWOWMnsTMjbP%2Fpv7RRPsdIhXS9EAeqdVNY6Nj%2B674Ezq1Z%2FWBesHcgHUy9Xe”}],“group”:“cf-nel”,“max_age”:604800}’,
nel: ‘{“success_fraction”:0.01,“report_to”:“cf-nel”,“max_age”:604800}’,
server: ‘cloudflare’,
‘alt-svc’: ‘h3=“:443”; ma=86400’
}