Request Demo

CustomerGauge Out: XML Comment and Net Promoter Score API

Blog by Adam Dorrell
February 14, 2018

This is v1.0 of our standard CustomerGauge XML comments and Net Promoter® Score API (Application Programming Interface). We have made it as simple to use as possible for widest possible use. See also our other feed documentation on our support page.

Using the XML API

You could use this to:

  • display comments on intranet or external sites
  • update internal systems and dashboards
  • update CRM systems with score and comment using customer number as lookup

Available Fields

We provide in the feed as standard:

  • Net Promoter Score (0 - 10)
  • Customer Comment
  • Translated Comment
  • Customer Reference Number
  • Various segments (country, store, channel)
  • Date of comment/Score
  • Product SKU (if available)
  • Useful plain-english description of feed source if re-used in other places
  • Date of feed
  • Link to comment detail page in CustomerGauge


It is available in secure mode (default) or open (no security). We are able to simply configure it depending on frequency of update and security needs.

Standard feed is secured with User Name and Password, using CURL in PHP or similar.

URL example:

Username: myfeed

password: mypass

Using the API - PHP example

Example using PHP:

<? PHP

$ch = curl_init();
$user = 'Acme';
$password = 'Acme1FeedExample';
curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, "$user:$password");
$output = curl_exec($ch);
$info = curl_getinfo($ch);


echo $output;


Once configured, you can test it using a testing page:

Testing page:

API Format:

<?xml version="1.0" encoding="UTF-8" ?>

<title>CustomerGauge Comment API</title>
<description>CustomerGauge API</description>


<description>The whole experience buying was easy &amp; stress free.  My headphones arrived swiftly &amp; are comfortable to use.   I am a great fan of Acme as I am still using the iron I was given as a wedding present in 1971.  It has been in use daily &amp; despite needing a couple of new flexes over the years has never once let me down.  Well done Acme!</description>
<store>Acme Online Shop</store>
<commentDate>2010-08-06 </commentDate>
<pubDate>2010-07-20 17:27:13</pubDate>
<source>Testimony for customer ID 145XXXXXXX from Acme Online Shop, powered by CustomerGauge</source>



Please contact us for details on help with setting it up and configuring.

Subscribe now to get the latest from the CustomerGauge Blog
See our Privacy Policy and GDPR terms.
More On This Topic
Loading Symbol