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

GETReturns
/api/v1/productsYour 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

Fields

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

Using our content

No developer? Your partner page has a one-line code to paste instead.

Questions: info@clarelio.com