Use cases
What teams use KLOAKD for
Three jobs teams hand to KLOAKD, and what it gives you for each.
AI agents
Building an agent
Your agent has to read whatever URL it is given, including sites that block bots, and get HTML or JSON back in one call, without you running browsers or proxies for it.
What KLOAKD gives you
- Fetch returns the page's HTML. Anti-bot handling, browsers and proxies are included.
- A long fetch becomes a job to poll after about 85 seconds, and the SDKs poll it for you, so your tool call simply returns.
- When the agent needs JSON, Extract returns the page's content, or exact fields from CSS selectors.
- Proxies, fingerprints, challenge solving and browsers are part of the call. Your agent never sees them.
import os
from kloakd import Kloakd
client = Kloakd(
api_key=os.environ["KLOAKD_API_KEY"],
organization_id=os.environ["KLOAKD_ORG_ID"],
)
def read_page(url: str) -> str:
"""A tool for your agent: the page's HTML, or why it failed."""
result = client.evadr.fetch(url)
if not result.success:
return f"Could not read {url}: {result.error}"
return result.html or ""Data teams
Collecting data
You need structured data, such as prices, listings or filings, from many pages of sites that block bots, and you want it as records rather than raw pages.
What KLOAKD gives you
- Crawl collects every page of a site, paginated listings included, and can extract records from each in the same call.
- Extract gives one record per item on a list page, with the fields you name.
- Plans are priced by GB of data received, not by page or by request.
import os
from kloakd import Kloakd
client = Kloakd(
api_key=os.environ["KLOAKD_API_KEY"],
organization_id=os.environ["KLOAKD_ORG_ID"],
)
SCHEMA = {
"item_selector": "article.product_pod",
"fields": [
{"name": "title", "selector": "h3 a", "attribute": "title"},
{"name": "price", "selector": "p.price_color"},
],
}
crawl = client.webgrph.crawl("https://books.toscrape.com/", max_pages=50)
rows = []
for page in crawl.pages:
result = client.kolektr.page(page.url, schema=SCHEMA)
if result.success:
rows.extend(result.records)Developers
Integrating with code
You want a typed client in your own language that handles retries and long-running jobs, so web access is one function call in your codebase.
What KLOAKD gives you
- SDKs for Python, TypeScript, Go and Java, with the same modules in each.
- Retries where they are safe: a rate-limited call after its Retry-After, server errors on reads; a POST that may have done its work is never repeated.
- Typed errors, such as ConcurrencyLimitError when all your running jobs are busy, and JobTimeoutError with the job_id to resume.
import os
from kloakd import Kloakd
client = Kloakd(
api_key=os.environ["KLOAKD_API_KEY"],
organization_id=os.environ["KLOAKD_ORG_ID"],
)
from kloakd import ConcurrencyLimitError, JobTimeoutError
try:
result = client.evadr.fetch("https://example.com")
except ConcurrencyLimitError:
... # all your running jobs are busy; retry when one ends
except JobTimeoutError as e:
job = client.wait_for_handoff(e.job_id) # keep waiting for the same jobGive your agent the web.
Free for 30 days with 0.5 GB of data. No card needed to start.
