HubSpot · api · fg-0387

HubSpot CRM search returns 400 once paging passes 10,000 results

HTTP 400 when after is 10000 or higher

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

Every CRM search query is capped at 10,000 total results, and asking for a page past that cap is rejected. The after cursor cannot walk further no matter how many records match.

Fix

Page with a keyset instead of the cursor: sort ascending by hs_object_id, remember the last id, and start a new query with hs_object_id GT that id whenever you near the cap. For full exports use the list or batch read endpoints instead of search.

Apply

{"filterGroups":[{"filters":[{"propertyName":"hs_object_id","operator":"GT","value":"<lastId>"}]}],"sorts":[{"propertyName":"hs_object_id","direction":"ASCENDING"}],"limit":200}

Affects: HubSpot CRM search endpoints (v3 and date-based 2026-09), all tiers, as of 2026-10

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp