
Clarelio partner API
Show Clarelio products on your own website or in your own system, in your own design. The API gives you the products as data: names, descriptions, features, images and links, in English, Romanian, Italian and French. It is read-only JSON over HTTPS. When we update a product, your next request gets the new text.
Your key is in the partner link Clarelio sent you. Open this page with that link to see your own examples.
Quick start
curl -H "X-Api-Key: YOUR_KEY" "https://clarelio.com/solutions/api/v1/products?lang=en"Endpoints
| GET | Returns |
|---|---|
/api/v1/products | Your products, short form: id, name, category, tagline, summary, main image, links. |
/api/v1/products/{id} | One product in full: description, problems solved, how it works, features, audience, benefits, integrations, call to action, all images, embed codes. |
/api/v1/media/{file} | An image from a product or the logo (JPEG or PNG). Use the url fields as they come. |
Base address: https://clarelio.com/solutions/api/v1. Product ids today: quotation, online-estimate.
Key and language
- Key: header
X-Api-Key(recommended), or?key=in the address. - Language:
?lang=en,ro,itorfr. Without it we follow the Accept-Language header, then English.
Fields
name,category,tagline,summary,description: text, ready to show.features: list of {title, headline, text, points[{title, text}]}.problems_solvedandhow_it_works: lists of {title, text}.audience,benefits,integrations: {title, headline, text, points}.call_to_action: {headline, text}.image/images: {url, width, height, caption}.publisher.logo: our logo.links:presentation(our full presentation for your visitors),contact,website.embed: ready-made codes if you would rather show our presentation as it is.updated: when we last changed the content.
Example: JavaScript (Node 18+ or any server)
const res = await fetch("https://clarelio.com/solutions/api/v1/products?lang=fr", { headers: { "X-Api-Key": "YOUR_KEY" } });
const { products, publisher } = await res.json();
for (const p of products) console.log(p.name, "-", p.tagline, p.image && p.image.url);Example: PHP
$ctx = stream_context_create(['http' => ['header' => "X-Api-Key: YOUR_KEY\r\n"]]);
$data = json_decode(file_get_contents('https://clarelio.com/solutions/api/v1/products/quotation?lang=it', false, $ctx), true);
echo $data['product']['name'] . ': ' . $data['product']['summary'];Example: a product card in the browser
<div id="clarelio"></div>
<script>
fetch("https://clarelio.com/solutions/api/v1/products?lang=en&key=YOUR_KEY").then(r => r.json()).then(d => {
document.getElementById("clarelio").innerHTML = d.products.map(p =>
`<article><img src="${p.image.url}" alt="${p.image.caption}" width="320">
<h3>${p.name}</h3><p>${p.summary}</p><a href="${p.links.presentation}">More</a></article>`).join("");
});
</script>In the browser the key is visible to visitors. That is allowed, but a server-side call keeps it private.
Caching and errors
- Every answer has an
ETag. Send it back asIf-None-Matchand you get 304 when nothing changed. Refreshing once a day is plenty. - 401 unknown key, 403 key expired, 404 unknown product or address, 405 not a GET. Errors come as {"error": {code, message}}.
Using our content
- Keep product names as given. You may shorten texts and pick the features you show.
- Use the images as delivered (data in the screenshots is blurred on purpose) and the logo unchanged.
- Link to
links.presentationorlinks.contactso your visitors can reach us.
No developer? Your partner page has a one-line code to paste instead.
Questions: info@clarelio.com