Integrate the Tech Stack API in Python
When a new lead signs up with a company domain, you may want to know whether its website uses technologies relevant to your product before routing it to sales. This guide shows how to request a domain’s technology identifiers with Python, read objects.company.tech, and turn the result into a usable enrichment signal without treating an unknown result as a negative match.
Why use Klazify for technology-stack enrichment?
Documentation describes Klazify as a domain data source that can identify technologies as well as categorize websites. For a signup workflow, that means you can use a domain to enrich a lead with detected technology identifiers and, where available, company and content context.
The technology endpoint is useful when your question is specific: “Which identifiers were detected for this website?” Klazify detects technology types including content management systems, analytics tools, CDNs, frameworks, and ad networks. A detected identifier can help prioritize a lead or flag a domain for review, but it should not be treated as proof of a company’s complete internal stack.
Website categorization answers a different question: “What is this site about?” Klazify analyzes website content, supports multilingual sites, and maps content to an IAB taxonomy. That context can help distinguish a relevant prospect from a domain that happens to use a technology you track. Review the returned results and their freshness for your use case rather than assuming every site will yield a complete, current profile.
| Signal | Question it helps answer | Possible action |
|---|---|---|
| Technology identifiers | Which technologies were detected for the domain? | Add a lead-enrichment flag or queue a review. |
| Website categories | What content is associated with the site? | Map a category to an internal market segment or content policy. |
| Company data | What company context is available for the domain? | Attach available details to a CRM record for qualification. |
These signals are complementary. A technology identifier is not an IAB category, and a content category is not evidence that a particular technology is installed. For policy or compliance decisions, use the signals as inputs to a documented review process rather than as a guarantee of safety or compliance.
Request the technology stack
Send a JSON body containing the target URL to the technology endpoint. Replace YOUR_API_KEY with your Klazify API key:
curl -X POST "https://www.klazify.com/api/domain_tech" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://cbsnews.com"}'
The request targets one URL. The field to read is objects.company.tech, an array of technology identifiers. Keep each identifier as returned; it is a machine-readable value, not necessarily a display name or a technology category.
Call the same endpoint from Python
The following script uses Python’s standard library. It accepts the URL as an argument and reads the API key from an environment variable, so the key does not have to be embedded in the source file.
import json
import os
import sys
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
ENDPOINT = "https://www.klazify.com/api/domain_tech"
def get_technologies(url, api_key):
payload = json.dumps({"url": url}).encode("utf-8")
request = Request(
ENDPOINT,
data=payload,
headers={
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
},
method="POST",
)
timeout = os.environ.get("REQUEST_TIMEOUT_SECONDS")
if timeout:
response = urlopen(request, timeout=float(timeout))
else:
response = urlopen(request)
with response:
data = json.load(response)
if not isinstance(data, dict) or data.get("success") is False:
raise ValueError("API did not return a usable result")
objects = data.get("objects")
company = objects.get("company") if isinstance(objects, dict) else None
tech = company.get("tech") if isinstance(company, dict) else None
if not isinstance(tech, list):
raise ValueError("Technology data is unavailable")
if not all(isinstance(item, str) for item in tech):
raise ValueError("Unexpected technology identifier")
return tech
def main():
api_key = os.environ.get("KLAZIFY_API_KEY")
if not api_key or len(sys.argv) != 2:
sys.exit("Set KLAZIFY_API_KEY and pass a URL as the argument")
try:
technologies = get_technologies(sys.argv[1], api_key)
except (HTTPError, URLError, OSError, ValueError) as exc:
print(f"Technology lookup failed: {exc}", file=sys.stderr)
sys.exit(1)
if not technologies:
print("No technology identifiers were returned")
return
for identifier in technologies:
print(identifier)
if __name__ == "__main__":
main()
Save the script as tech_stack.py, set KLAZIFY_API_KEY, and run python tech_stack.py "$DOMAIN_URL" with DOMAIN_URL set to the URL you want to enrich. For a production worker, set REQUEST_TIMEOUT_SECONDS to a value appropriate for your latency budget; if it is unset, the script uses the Python environment’s default network timeout behavior.
The script checks that the response is an object and that the technology field is a list of strings. It reports a missing or malformed field as unavailable rather than silently turning it into an empty list. An empty list means only that the response contained no technology identifiers; it does not establish that the website uses no technologies.
Read the response and choose an action
The following provided response illustrates the fields Klazify can return for a company. It is an example for the company shown in the response, not a response to the URL in the curl request above. The technology integration should depend on the documented objects.company.tech path, rather than assuming every accompanying field will be present on every request.
{
"domain": {
"categories": [
{
"confidence": 0.92,
"name": "/Computers & Electronics/Consumer Electronics",
"IAB-632-596": "Consumer Electronics/Technology & Computing/Consumer Electronics"
},
{
"confidence": 0.89,
"name": "/Internet & Telecom/Mobile & Wireless/Mobile Phones"
}
],
"social_media": null,
"logo_url": "https://klazify.s3.amazonaws.com/2110787991611585019600ed5fb1d1300.04730104.png"
},
"success": true,
"objects": {
"company": {
"url": "https://www.apple.com/",
"name": "Apple",
"city": "Cupertino",
"stateCode": "CA",
"countryCode": "US",
"employeesRange": "100K+",
"revenue": 274515000000,
"raised": null,
"tags": [
"E-commerce",
"Consumer Electronics",
"Mobile",
"B2C"
],
"tech": [
"omniture_adobe_analytics",
"atlassian_confluence",
"successfactors",
"apache_apex",
"talend",
"oracle_peoplesoft",
"salesforce",
"stripe",
"dell_boomi_atomsphere",
"gigya",
"sage_50cloud",
"quickbooks",
"webmethods",
"apache_tomcat",
"alteryx",
"tibco_rendezvous",
"atlassian_jira",
"..."
]
}
},
"domain_registration_data": {
"domain_age_date": "1987-02-19",
"domain_age_days_ago": "13026",
"domain_expiration_date": "2030-02-20",
"domain_expiration_days_left": "123"
},
"similar_domains": [
"bestbuy.com",
"icloud.com",
"microsoft.com",
"macrumors.com",
"google.com",
"samsung.com",
"twitter.com",
"hp.com",
"bhphotovideo.com",
"dell.com"
]
}
For the integration in this guide, objects.company.tech is the main field. For example, an application can match omniture_adobe_analytics or atlassian_confluence against its own list of identifiers of interest. The final ... in the example indicates omitted entries; it is not a technology to add to your matching rules.
The example also has success, which is true here. When category data is available, domain.categories contains category names and confidence values; the first item also includes an IAB mapping. These are content-classification signals, separate from the technology list. A confidence value in this example should not be interpreted as a measured accuracy rate for the API.
Company context is under objects.company, including the example’s name, location, employee range, revenue, and tags. Fields such as raised and social_media can be null in the example, so downstream systems should tolerate missing values. The registration and similar-domain data shown here can support other workflows, but neither is necessary to extract a technology stack.
Map identifiers to your own labels
Keep a small, versioned mapping from identifiers you care about to your internal labels or actions. For instance, if your sales team tracks a particular analytics integration, match the exact returned identifier to an internal enrichment flag. Preserve the original identifier alongside the flag so you can revise the mapping without losing the source value.
Leave unrecognized identifiers unmapped rather than guessing their type from a name. Review new identifiers before adding them to routing rules, and distinguish “no tracked identifier matched” from “lookup unavailable.” That distinction keeps a temporary lookup failure from being mistaken for evidence that a lead is not relevant.
Operate the integration at scale
For a signup flow, put the lookup behind a worker if the user does not need the result immediately. Store the submitted domain with the lead, enqueue the lookup, and update the enrichment record when it completes. If a product decision must happen synchronously, define an explicit fallback for an unavailable response rather than holding the signup indefinitely.
For a larger list, process domains through a controlled queue. Deduplicate repeated domains before calling the endpoint and limit concurrent requests according to your account’s rate limits. Check the MCP and API documentation for the integration information relevant to your workflow; do not assume a particular batch size or throughput.
Cache successful results per normalized domain, together with the time you retrieved them. Normalize consistently—for example, decide how your system handles capitalization and trailing dots—while retaining the submitted URL for traceability. Choose a refresh interval based on how quickly your business needs to notice stack changes; a cache is a snapshot, not proof of a site’s current configuration.
Track at least three outcomes separately: identifiers returned, a successful response with an empty list, and a lookup that could not produce usable data. New, unreachable, or otherwise unknown domains may need a later retry or manual review. Use bounded retries with backoff for transient failures, avoid repeatedly retrying a persistently unavailable domain, and record enough context to investigate failures without logging API keys.
Technology detection is not itself a content-blocking policy or a cybersecurity verdict. If you also classify content, map returned category names or IAB values to your own taxonomy in a separate step. Review how you handle unmapped categories and confidence values before using them to block traffic or audit ad placements; an unknown category should not silently become an allow or deny decision.
FAQ
Does an empty technology list mean the website has no stack?
No. It means no identifiers were returned in that list. Keep that result distinct from a missing field or failed lookup, and refresh it according to your application’s needs.
Can I use the same technology identifier as a website category?
No. Technology identifiers describe detected technologies; website categories describe content. Maintain separate mappings and combine the signals only where your business rules require both.
Should I call the API for every signup?
Not necessarily. If multiple signups use the same normalized domain, a cached result can avoid duplicate calls. Refresh the cached result when its age exceeds the interval your workflow permits.
What does the Starter plan cost, and are failed calls billed?
Starter is $39.99 per month with a seven-day trial. Failed or unreachable calls are not billed. Check your account and the documentation for the limits that apply to your usage.
Ready to enrich domains with detected technologies? Register to create a free account, then use your API key to test the request and build your domain-enrichment pipeline.
Ready to use Klazify?
Start classifying websites, enriching company data, and exploring web intelligence.
Get Started Free