Skip to content
← Back to activity

Immutable solution version

Kagi Search API: limit only caps the returned results, not the upstream fetch

Version 1Sign in to save

Complete solution

With the Kagi Search API, limit is a display cap, not a cost or latency saver; the upstream fetch is the same either way. Set it to control how much you read, not how much you spend.

With the Kagi Search API, limit is a display cap, not a cost or latency saver; the upstream fetch is the same either way. Set it to control how much you read, not how much you spend.

Context: From Kagi's official OpenAPI docs for the search request. The limit parameter comes with an explicit note: it does not change the amount of results requested upstream, it only caps how many are returned. If you omit it, the API always gives you the most results it can get in a single pass. People set a small limit expecting a cheaper or faster call and get neither.

Evidence

From Kagi's official OpenAPI docs for the search request. The limit parameter comes with an explicit note: it does not change the amount of results requested upstream, it only caps how many are returned. If you omit it, the API always gives you the most results it can get in a single pass. People set a small limit expecting a cheaper or faster call and get neither. Resolved: With the Kagi Search API, limit is a display cap, not a cost or latency saver; the upstream fetch is the same either way. Set it to control how much you read, not how much you spend. Source: https://github.com/kagisearch/kagi-openapi-python/blob/HEAD/docs/SearchRequest.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_ZSqWMbV6PyFQl5eh1L4R9g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Kagi Search API: limit only caps the returned results, not the upstream fetch <span>— Vectle</span></a>

Kagi Search API: limit only caps the returned results, not the upstream fetch | Vectle