API reference
Website contacts
POST /website reads a site's public pages after robots.txt and returns the emails, phones and social profiles it publishes, with its name, logo and favicon.
https://api.qelka.com/v1/websiteGet the contacts and brand of a company from its website: the emails, phone numbers and social profiles it publishes, and its name, logo, favicon and theme color. Each lookup costs 1 credit when the homepage could be read; sites that cannot be read, errors and test keys are never billed.
Request
Send a domain or any URL of the site. Only the host is used: the path, query, port and credentials are dropped. The API reads https://{host}/, then http://{host}/ when the HTTPS site does not answer; a URL that starts with http:// is read over HTTP only.
urlstringRequiredexample.com) or a URL of the site, 1 to 2,048 characters.freshbooleanDefault falsetrue skips the 7-day result cache and reads the site again.Only public hosts are read. An IP address, localhost, or a host under .local, .internal, .test, .invalid, .example, .home.arpa, .onion, .lan, .intranet or .corp is a 422 unprocessable_input. Redirects are followed only to public hosts, on ports 80 and 443, without credentials.
A lookup can make several requests to the site, each with a 6-second limit, so every snippet sets a 60-second client timeout.
curl https://api.qelka.com/v1/website \
--max-time 60 \
-H "Authorization: Bearer $QELKA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "mozilla.org"}'
const response = await fetch('https://api.qelka.com/v1/website', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ url: 'mozilla.org' }),
signal: AbortSignal.timeout(60_000),
})
const result = await response.json()
console.log(result)
import os
import requests
api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
"https://api.qelka.com/v1/website",
headers={"Authorization": f"Bearer {api_key}"},
json={"url": "mozilla.org"},
timeout=60,
)
result = response.json()
print(result)
<?php
$ch = curl_init('https://api.qelka.com/v1/website');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('QELKA_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['url' => 'mozilla.org']),
CURLOPT_TIMEOUT => 60,
]);
$result = json_decode(curl_exec($ch), true);
print_r($result);
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
"time"
)
func main() {
payload, _ := json.Marshal(map[string]any{"url": "mozilla.org"})
request, _ := http.NewRequest(http.MethodPost, "https://api.qelka.com/v1/website", bytes.NewReader(payload))
request.Header.Set("Authorization", "Bearer "+os.Getenv("QELKA_API_KEY"))
request.Header.Set("Content-Type", "application/json")
client := &http.Client{Timeout: 60 * time.Second}
response, err := client.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
var result map[string]any
if err := json.NewDecoder(response.Body).Decode(&result); err != nil {
panic(err)
}
fmt.Println(result)
}
require 'json'
require 'net/http'
uri = URI('https://api.qelka.com/v1/website')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = "Bearer #{ENV.fetch('QELKA_API_KEY')}"
request['Content-Type'] = 'application/json'
request.body = JSON.generate({ url: 'mozilla.org' })
response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, read_timeout: 60) do |http|
http.request(request)
end
result = JSON.parse(response.body)
puts result
Response
Every public host gets a 200. Read status first: only ok means the homepage was read.
idstringlkp_ followed by 26 characters.objectstringwebsite.inputstringurl you sent, without surrounding spaces.urlstringhttps://{host}/ or http://{host}/.final_urlstring or nullnull when the homepage was not fetched.hoststringfinal_url, or of url when final_url is null.statusstringok, robots_disallowed, unreachable, http_error or not_html.http_statusinteger or nullnull when it was not fetched.pagesarray of objectsstatus is ok.pages.urlstringpages.kindstringhome, contact or about.pages.statusintegernamestring or nullname of Organization structured data (JSON-LD), else og:site_name, else application-name, else the part of the title that contains the domain name.titlestring or nullog:title or twitter:title.descriptionstring or nullog:description or twitter:description.languagestring or nulllang attribute of html, else the content-language or og:locale meta tag, as a BCP 47 tag such as en-GB.theme_colorstring or nulltheme-color meta tag, as written.faviconstring or nullicon links first, then SVG and larger sizes. null when none is declared.logostring or nullemailsarray of stringsmailto: links, the visible text and the structured data of every page read, lower case, valid syntax only, at most 20.phonesarray of objectstel: links, numbers written with + in the text, and the structured data, at most 10.phones.e164stringphones.countrystring or nullsocialsarray of objectssocials.networkstringlinkedin, x, facebook, instagram, youtube, tiktok, github, pinterest, threads, bluesky, telegram or discord.socials.urlstringsocials.handlestring or nulltechnologiesarray of objectsgenerator meta tags. Nothing is guessed from scripts or markup.technologies.namestringWordPress.technologies.versionstring or nullcredits_usedintegerstatus is ok with a live key, else 0.cachedbooleantrue when the answer came from the 7-day cache.{
"id": "lkp_01M87667DG10WJTD4J4JF2T4DH",
"object": "website",
"input": "mozilla.org",
"url": "https://mozilla.org/",
"final_url": "https://www.mozilla.org/en-US/",
"host": "www.mozilla.org",
"status": "ok",
"http_status": 200,
"pages": [
{ "url": "https://www.mozilla.org/en-US/", "kind": "home", "status": 200 },
{ "url": "https://www.mozilla.org/en-US/contact/", "kind": "contact", "status": 200 },
{ "url": "https://www.mozilla.org/en-US/about/", "kind": "about", "status": 200 }
],
"name": "Mozilla",
"title": "Mozilla - Internet for people, not profit (US)",
"description": "We’re working to put control of the internet back in the hands of the people using it.",
"language": "en",
"theme_color": null,
"favicon": "https://www.mozilla.org/media/img/favicons/mozilla/favicon-196x196.e143075360ea.png",
"logo": "https://www.mozilla.org/media/img/logos/m24/lockup-black.f2ddba3f0724.svg",
"emails": ["trademark-permissions@mozilla.com"],
"phones": [],
"socials": [
{ "network": "bluesky", "url": "https://bsky.app/profile/mozilla.org", "handle": "mozilla.org" },
{ "network": "instagram", "url": "https://www.instagram.com/mozilla", "handle": "mozilla" },
{ "network": "linkedin", "url": "https://www.linkedin.com/company/mozilla-corporation", "handle": "mozilla-corporation" },
{ "network": "tiktok", "url": "https://www.tiktok.com/@mozilla", "handle": "@mozilla" },
{ "network": "bluesky", "url": "https://bsky.app/profile/firefox.com", "handle": "firefox.com" },
{ "network": "instagram", "url": "https://www.instagram.com/firefox", "handle": "firefox" },
{ "network": "youtube", "url": "https://www.youtube.com/user/firefoxchannel", "handle": "firefoxchannel" },
{ "network": "tiktok", "url": "https://www.tiktok.com/@firefox", "handle": "@firefox" },
{ "network": "facebook", "url": "https://www.facebook.com/mozilla", "handle": "mozilla" }
],
"technologies": [],
"credits_used": 1,
"cached": false
}
Act on the status
status |
What it means | What to do | Billed |
|---|---|---|---|
ok |
The homepage was read. | Use the contact and brand fields. An empty array means the pages read publish none. | Yes, and cached 7 days |
robots_disallowed |
robots.txt disallows the homepage, or answered a server error, which RFC 9309 treats as a full disallow; or a redirect led to a private host or to a disallowed page. Nothing else is read. | Respect it: the site does not want automated reads. | No |
unreachable |
Neither HTTPS nor HTTP answered within the timeout, or the site redirected more than 5 times. | Check the address, or try again later. | No |
http_error |
The homepage answered a 4xx or 5xx status, given in http_status. |
Try again later for a 5xx; check the address for a 4xx. | No |
not_html |
The homepage is not an HTML page. | Check that the address points to a website. | No |
Answers other than ok are never cached, so the next request reads the site again.
How the site is read
- robots.txt is read at
{scheme}://{host}/robots.txt, up to 512 kB. The rules of the group for theQelkauser agent apply, else those of*; the longest matching rule wins, andAllowwins a tie. A missing robots.txt (any 4xx) allows everything. - The homepage is fetched with the User-Agent
Qelka-API/1.0 (+https://qelka.com; support@qelka.com), following up to 5 redirects to public hosts. Each request has a 6-second timeout, and each page is cut at 1,500 kB. - Comments, scripts, styles, templates, SVG, iframes and embedded objects are removed from the HTML; nothing is run. JSON-LD structured data is read as data.
- The first link to a contact page (
/contact,/contact-us,/kontakt,/impressumand the like) and the first link to an about page (/about,/company,/a-proposand the like) on the same site are followed, when robots.txt allows them. - Phone numbers are parsed with the engine of the phone API, with the region of the page language or the country domain as a hint for numbers written without
+, and kept only when valid.
What the API keeps
The API returns only what a website publishes on its public pages, such as a support address or a company profile, and never reads pages behind a login. The request log keeps only the host of the URL you sent. A published email address or phone number can belong to a person: use the contacts the way the site intends them to be used.
Pass a full URL
Any URL of the site works: the API keeps the host and reads the homepage. Test keys return a sample site without fetching anything. With a test key in QELKA_API_KEY, this request returns:
curl https://api.qelka.com/v1/website \
--max-time 60 \
-H "Authorization: Bearer $QELKA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/about?ref=ad"}'
const response = await fetch('https://api.qelka.com/v1/website', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ url: 'https://example.com/about?ref=ad' }),
signal: AbortSignal.timeout(60_000),
})
const result = await response.json()
console.log(result)
import os
import requests
api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
"https://api.qelka.com/v1/website",
headers={"Authorization": f"Bearer {api_key}"},
json={"url": "https://example.com/about?ref=ad"},
timeout=60,
)
result = response.json()
print(result)
{
"id": "lkp_01M8714MBCYWG373X3SY947Q8G",
"object": "website",
"input": "https://example.com/about?ref=ad",
"url": "https://example.com/",
"final_url": "https://example.com/",
"host": "example.com",
"status": "ok",
"http_status": 200,
"pages": [
{ "url": "https://example.com/", "kind": "home", "status": 200 },
{ "url": "https://example.com/contact", "kind": "contact", "status": 200 }
],
"name": "Example Company",
"title": "Example Company | Simulated website",
"description": "A simulated website result returned to test keys.",
"language": "en-US",
"theme_color": "#1a56db",
"favicon": "https://example.com/favicon.svg",
"logo": "https://example.com/logo.svg",
"emails": ["hello@example.com"],
"phones": [{ "e164": "+12015550123", "country": "US" }],
"socials": [{ "network": "linkedin", "url": "https://www.linkedin.com/company/example", "handle": "example" }],
"technologies": [{ "name": "WordPress", "version": "6.4.2" }],
"credits_used": 0,
"cached": false
}
Errors
| Status | Type | When |
|---|---|---|
| 400 | invalid_request | url is missing, empty or longer than 2,048 characters, the body is not a JSON object, or it has a field the request table does not list |
| 401 | invalid_api_key | The key is missing, unknown or revoked |
| 402 | insufficient_credits | Your balance is less than 1 credit (live keys only) |
| 403 | forbidden | The key is restricted to other endpoints |
| 405 | invalid_request | The method is not POST |
| 422 | unprocessable_input | url is not a website address, or its host is not public: an IP address, localhost or a private suffix |
| 429 | rate_limited | Too many requests: wait Retry-After seconds |
| 500 | internal_error | Unexpected error on our side: retry with backoff |
No error is billed. A site that cannot be read is not an error: it is a 200 with a status other than ok and credits_used: 0.
Related
- Website contacts API
- Free tool: website contact finder
- Batch: up to 100 sites in one call, each item with
type: "website" - Bulk: a whole column of domains with
type=website - Caching, Errors, Test mode