{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-v2/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Rate Limiting"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"rate-limiting","__idx":0},"children":["Rate Limiting"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The HG Insights API enforces rate limits to ensure fair usage and service stability."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"rate-limit","__idx":1},"children":["Rate Limit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your rate limit depends on your plan:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Plan"},"children":["Plan"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Requests per Second"},"children":["Requests per Second"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Requests per Day"},"children":["Requests per Day"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sandbox"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1,000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Standard"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["25"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["50,000"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enterprise"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unlimited"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"how-bulk-endpoints-count","__idx":2},"children":["How bulk endpoints count"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The rate limit is per ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["request"]},", not per company. Endpoints that accept multiple companies per call (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/companies/enrich"]}," accepts up to 25 companies per request) count as ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1 request"]}," against the limit — regardless of how many companies you include. Batching is the most efficient way to stay under the limit."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"rate-limit-headers","__idx":3},"children":["Rate Limit Headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every response includes headers showing your current rate limit status:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Header"},"children":["Header"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x-ratelimit-limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum requests allowed per window for your plan (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["25, 25;w=1"]}," on Standard)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x-ratelimit-remaining"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Requests remaining in the current window"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x-ratelimit-reset"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Seconds until the window resets"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"x-ratelimit-limit: 25, 25;w=1\nx-ratelimit-remaining: 24\nx-ratelimit-reset: 1\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(Example shown for the Standard plan — the numbers reflect your plan's per-second limit.)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When you exceed the limit, the API returns a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429 Too Many Requests"]}," response. Check ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x-ratelimit-reset"]}," to know how long to wait before retrying."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"best-practices","__idx":4},"children":["Best Practices"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use batch requests"]}," — The enrichment endpoint accepts up to 25 companies per request, reducing the number of calls needed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Implement backoff"]}," — If you receive a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}," response, wait for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x-ratelimit-reset"]}," seconds before retrying"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Spread requests evenly"]}," — Avoid bursts; distribute requests across the full second window"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"need-higher-limits","__idx":5},"children":["Need Higher Limits?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Contact your HG Insights account manager to upgrade your plan for a higher rate limit."]}]},"headings":[{"value":"Rate Limiting","id":"rate-limiting","depth":1},{"value":"Rate Limit","id":"rate-limit","depth":2},{"value":"How bulk endpoints count","id":"how-bulk-endpoints-count","depth":3},{"value":"Rate Limit Headers","id":"rate-limit-headers","depth":2},{"value":"Best Practices","id":"best-practices","depth":2},{"value":"Need Higher Limits?","id":"need-higher-limits","depth":2}],"frontmatter":{"seo":{"title":"Rate Limiting"}},"lastModified":"2026-09-18T20:24:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/v2/guides/rate-limiting","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}