Skip to content
  • There are no suggestions because the search field is empty.

Server-Side Rendering API Overview

Currently in Beta

Overview

Websites traditionally rely on JavaScript, loading reviews after the page has already rendered. While this works for human visitors, it's more difficult for search engines and AI systems to discover and interpret review data consistently.

With Feefo’s Server-Side Rendering API (SSR), your reviews are embedded directly into your page’s HTML from the very start. Your customer feedback becomes instantly readable to crawlers and LLMs. 

This ensures valuable customer feedback is easier for AI crawlers and emerging discovery platforms to access, answer shopper questions and recommend products.

The API returns review information using Schema.org JSON-LD.

This can be used to represent:

  • product ratings and product reviews
  • service ratings and service reviews
  • merchant information
  • AI-generated product review summaries and review topics, where enabled

The API provides two resources:

 
 

Endpoint

Schema.org type

/widgets-review-service/ssr/product

Product

/widgets-review-service/ssr/service

Organization

 

The returned JSON should be added to your page inside a:

<script type="application/ld+json"> 
...
</script>

element.

Before you start

To use the Server-Side Rendering API you need:

  1. a Feefo App Key;
  2. Server-Side Rendering API enabled for that App Key;
  3. an OAuth 2.0 access token generated using the App Key;
  4. your Feefo merchant slug;
  5. the relevant widget type;
  6. for product requests, the product SKU, parent SKU or a SERIES tag.

Enable Server-Side Rendering API access

App Keys are managed in Feefo Hub.

Navigate to:

Settings → Connectivity → App Keys

Create a new App Key or edit an existing one and enable the Server-Side Rendering API option.

We recommend granting an App Key access only to the Feefo services required by your integration.

Authentication

Feefo APIs use OAuth 2.0.

Use the Client ID and Client Secret associated with your App Key to generate an access token.

Send:

POST https://api.feefo.com/api/oauth/v2/token
Content-Type: application/json

with:

{
  "client_id": "your-client-id",
  "client_secret": "your-client-secret",
  "grant_type": "client_credentials"
}

A successful request returns:

 
{
  "access_token": "your-access-token",
  "expires_in": 3600,
  "token_type": "bearer"
}

expires_in is the lifetime of the token in seconds.

When the token expires, request another using the same App Key credentials.

Include the token with Server-Side Rendering requests:

 
Authorization: Bearer your-access-token

Your App Key must have the Server-Side Rendering API option enabled.

 

Product structured data

Use the product endpoint to retrieve Schema.org structured data for a product.

 
GET /widgets-review-service/ssr/product

 

Parameters

Parameter

Required

Description

slug

Yes

Your Feefo merchant slug

sku

Conditional

Product SKU

parent_sku

Conditional

Parent product SKU

widget

Yes

Widget type/configuration

schema_id

No (optional)

The exact @id URI of your existing on-page Product schema. When provided, Feefo's generated Schema.org JSON-LD will target this ID to merge review ratings directly with your existing product schema. If omitted, a stable fallback @id will be generated automatically.

tags

No (optional)

Restricts the rating, reviews and AI content to reviews carrying the given tag, in the format key:value. Repeat the parameter to supply more than one tag. See Filtering by tags.

 

You must provide at least one of:

sku 
parent_sku
a tags value with the key SERIES

Example:

 
GET /widgets-review-service/ssr/product?slug=your-merchant&sku=ABC123&widget=on-page Authorization: Bearer your-access-token

 

Filtering by tags

The tags parameter on both Server-Side Rendering endpoints works in the same way, and uses the same syntax, as the tags parameter of the Feefo reviews API and the Feefo integration script.

  • Each tag uses the format key:value, for example tags=incentivised:1.
  • To supply several tags, repeat the parameter: tags=incentivised:1&tags=colour:red.
  • When several tags are supplied, a review must carry all of them to be included.
  • The tag filter is applied to the aggregate rating, the review count, the returned reviews and (for product requests) the AI review summary and review topics.
  • A tag that is not in the key:value format (for example tags=incentivised) is rejected with 400 Bad Request.
  • The order in which tags are supplied does not matter.

Example:

 
GET /widgets-review-service/ssr/product?slug=your-merchant&sku=ABC123&widget=on-page&tags=incentivised:1 Authorization: Bearer your-access-token

Using a SERIES tag instead of a SKU

A product request can identify a group of products with a SERIES tag instead of sku or parent_sku.

 
GET /widgets-review-service/ssr/product?slug=your-merchant&widget=on-page&tags=SERIES:my-series Authorization: Bearer your-access-token

The SERIES tag must have a value.

 

Product response

A successful product response contains Schema.org Product JSON.

For example:

 

 
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://www.example.com/products/example-product#Product",
  "name": "Example Product",
  "description": "Example product description",
  "aggregateRating": {
    "@type": "AggregateRating",
    "bestRating": 5,
    "worstRating": 1,
    "ratingValue": 4.7,
    "reviewCount": 124
  },
  "review": [
    {
      "@type": "Review",
      "author": {
        "@type": "Person",
        "name": "Trusted Customer"
      },
      "reviewRating": {
        "@type": "Rating",
        "bestRating": 5,
        "worstRating": 1,
        "ratingValue": 5
      },
      "reviewBody": "An example customer review.",
      "datePublished": "2026-01-15T10:30:00Z",
      "publisher": {
        "@type": "Organization",
        "@id": "https://www.feefo.com/#organization",
        "name": "Feefo",
        "url": "https://www.feefo.com"
      },
      "url": "https://www.feefo.com/example-review",
      "@id": "https://www.feefo.com/example-review#review",
      "inLanguage": "en-GB",
      "itemReviewed": {
        "@id": "https://www.example.com/products/example-product#Product"
      }
    }
  ]
}

Up to five eligible reviews can be included.

The exact fields present depend on the available product and review information.

 

Parent SKU requests

You can request structured data using a parent product SKU instead of an individual product SKU.

 
GET /widgets-review-service/ssr/product?slug=your-merchant&parent_sku=PARENT123&widget=on-page

The returned rating and reviews are based on the product data associated with that parent SKU.

 

AI product review content

Depending on your Feefo configuration and the widget type supplied in the request, a product response may also contain an AI-generated review summary.

For example:

 
{
  "additionalProperty": [
    {
      "@type": "PropertyValue",
      "name": "Customer review summary",
      "value": "Customers frequently praise the product's quality and ease of use."
    },
    {
      "@type": "PropertyValue",
      "name": "Review summary source",
      "value": "Feefo verified customer reviews"
    }
  ]
}

Review topics may also be included.

 
{
  "positiveNotes": {
    "@type": "ItemList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Quality"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Ease of use"
      }
    ]
  }
}

 

Negative topics use the same structure through negativeNotes.

These fields are omitted where the selected widget configuration does not enable the corresponding AI features or where suitable AI data is unavailable.

 

Schema @id and Graph Linking

Search engines like Google use the Schema.org @id property as a primary key to connect separate structured data blocks describing the same entity.

  • If you already render Product JSON-LD on your page:To ensure search engines seamlessly merge Feefo's ratings and reviews with your existing product details (such as price, availability, and images), pass the exact @id from your existing <script type="application/ld+json"> Product node into the schema_id query parameter (URL-encoded).
  • If you do NOT render any Product structured data:Omit schema_id. Feefo will automatically construct a stable fallback @id

 

Service structured data

Use the service endpoint to retrieve structured data representing your organisation and service reviews.

 
GET /widgets-review-service/ssr/service

 

Parameters 

Parameter

Required

Description

slug

Yes

Your Feefo merchant slug

widget

Yes

Widget type/configuration

tags

No (optional)

Restricts the rating and reviews to reviews carrying the given tag, in the format key:value. Repeat the parameter to supply more than one tag. See Filtering by tags.

 

Example:

 
GET /widgets-review-service/ssr/service?slug=your-merchant&widget=on-page Authorization: Bearer your-access-token

 

 

Service response

A successful response contains Schema.org Organization JSON.

For example:

 
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://www.feefo.com/en-GB/reviews/example-merchant",
  "sameAs": "https://www.feefo.com/en-GB/reviews/example-merchant",
  "url": "https://www.example.com",
  "image": "https://api.feefo.com/api/merchant-image/example-logo.png",
  "name": "Example Merchant",
  "aggregateRating": {
    "@type": "AggregateRating",
    "bestRating": 5,
    "worstRating": 1,
    "ratingValue": 4.8,
    "reviewCount": 1500
  },
  "review": [
    {
      "@type": "Review",
      "author": {
        "@type": "Person",
        "name": "Trusted Customer"
      },
      "reviewRating": {
        "@type": "Rating",
        "bestRating": 5,
        "worstRating": 1,
        "ratingValue": 5
      },
      "reviewBody": "Excellent service.",
      "datePublished": "2026-01-15T10:30:00Z",
      "publisher": {
        "@type": "Organization",
        "@id": "https://www.feefo.com/#organization",
        "name": "Feefo",
        "url": "https://www.feefo.com"
      }
    }
  ],
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "GB",
    "addressLocality": "London",
    "addressRegion": "Greater London",
    "postalCode": "AB1 2CD",
    "streetAddress": "1 Example Street"
  },
  "telephone": "01234567890"
}

Up to five eligible service reviews can be included.

Fields such as address, telephone, image and website depend on the information available for your Feefo account.

 

Understanding the widget parameter

The widget parameter determines which Feefo widget configuration should be applied when structured data is generated.

For example:

 
widget=on-page

or:

 
widget=pop-up

Different widget configurations can have different customisations.

This can affect the generated structured data, including whether AI review summaries or review topics are included.

You should therefore send the widget type corresponding to the widget used on the page.

 

Response statuses

200 OK

A generated Sever-Side Rendering result is available.

The response body contains the Schema.org JSON.

 
HTTP/1.1 200 OK Content-Type: application/json

 

204 No Content

A result is not currently available.

 
HTTP/1.1 204 No Content Cache-Control: no-store

The body is empty.

A 204 may occur the first time a particular Server-Side Rendering resource is requested because Feefo generates Sever-Side Rendering data asynchronously. Each distinct combination of parameters, including each distinct set of tags, is generated separately.

Receiving 204 therefore does not necessarily mean that no review data exists.

The same request can be retried later.

Do not cache the 204 response.

 

400 Bad Request

The request is missing required parameters or contains an invalid parameter combination.

Examples include:

  • missing slug;
  • missing widget;
  • a product request containing none of sku, parent_sku or a SERIES tag with a value;
  • a tags value that is not in the key:value format.

 

First-request behaviour

Server-Side Rendering data is generated asynchronously.

For a request that has not previously been generated, the flow can therefore look like:

 
Your server
    |
    | GET /ssr/product
    v
Feefo SSR API
    |
    | 204 No Content
    |
    | SSR data is generated
    |
    | GET /ssr/product
    v
Feefo SSR API
    |
    | 200 OK
    v
Schema.org JSON

Your integration should handle this behaviour gracefully.

 

Recommended retry behaviour

When the API returns:

 
204 No Content

do not repeatedly retry in a tight loop.

Instead:

  1. treat the current response as having no Server-Side Rendering payload available;
  2. do not cache the 204;
  3. retry the request after a short delay or during a subsequent page render;
  4. use the JSON once a 200 response is returned.

Applications that need to obtain the data immediately may use bounded polling rather than a fixed long delay.

 

Data refresh

Server-Side Rendering results are stored by Feefo and periodically regenerated.

A valid stored result can continue to be returned while a newer version is generated asynchronously.

This refresh behaviour is managed by the Server-Side Rendering API itself; the Server-Side Rendering endpoints are not served from a CDN cache.

Integrations do not need to perform any cache invalidation when Feefo review data changes.

 

Adding the response to your page

The response from the Server-Side Rendering API is a JSON object.

It should be serialised into your server-rendered HTML using:

 
<script id='onpage-product-schema-ABC' type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product"
}
</script>

 

Do not render the JSON as visible page content.

In order for our widget to recognise the existing schema on the page, please add an id to the script tag with the prefix:

  • product schema: 'onpage-product-schema-'
  • service schema: 'onpage-organization-schema-'

You can append any id generated to the end of this prefix.

 

Example server-side flow

A typical product-page integration is:

 

1. Receive request for a product page.

2. Request:

GET /widgets-review-service/ssr/product

?slug=<merchant>

&sku=<product-sku>

&widget=<widget-type>

&tags=<key>:<value>

(optional)

3. Include:

Authorization: Bearer <access-token>

4. If Feefo returns 200:

add the JSON response to the HTML as application/ld+json.

5. If Feefo returns 204:

render the page without the Feefo JSON-LD and retry on a later request.

6. Return the completed HTML page.

 

This ensures that Feefo structured data is present in the server-generated document when it is available.


Example HTML

 
<!doctype html>
<html lang="en">
<head>
    <title>Example Product</title>

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Product",
      "@id": "https://www.example.com/products/example-product#Product",
      "name": "Example Product",
      "aggregateRating": {
        "@type": "AggregateRating",
        "bestRating": 5,
        "worstRating": 1,
        "ratingValue": 4.7,
        "reviewCount": 124
      }
    }
    </script>
</head>
<body>
    ...
</body>
</html>

 

Important integration recommendations

Keep App Key credentials server-side

Your Client Secret must not be exposed in browser-side JavaScript.

OAuth token generation and Server-Side Rendering API requests should therefore be performed from a trusted server environment.

Use the appropriate widget value

Use the widget type corresponding to the Feefo widget being rendered on the page so the generated structured data reflects the appropriate customisations.

Use the same tags as your widget

If the Feefo widget on the page is configured with tags, send the same tags to the SSR API so the Server-Rendered structured data matches the reviews shown by the widget.

Handle 204 responses

A 204 is part of the normal asynchronous generation flow.

Do not treat it as an application error and do not cache it.

Do not modify Feefo review data

The returned structured data represents Feefo review information and should be inserted as returned rather than altering ratings, review text, authors or review counts.

Do not expose your access token

OAuth access tokens should remain within your server-side integration.

 

Configure request timeouts and fallback behaviour

Because Server-Side Rendering API requests occur during server-side page generation, high upstream latency or temporary network degradation can impact your page render time and Time to First Byte (TTFB).

To prevent blocking page generation, configure a strict timeout on your HTTP request to the Feefo Server-Side Rendering API.

  • Recommended timeout: ~100ms
  • Fallback strategy: If a request exceeds this timeout (or fails with a network error), abort the request and continue rendering the HTML document without the Feefo JSON-LD block.
  • Safe client-side fallback: Failing to fetch the SSR payload does not prevent reviews or structured data from appearing on your site. The embedded client-side Feefo widget will automatically generate and inject the Schema.org JSON-LD directly in the browser if it detects that the structured data was not rendered server-side.

 

Product endpoint summary

 
GET /widgets-review-service/ssr/product

Required:

 
slug widget sku, parent_sku and/or a SERIES tag

Optional:

 
schema_id tags (key:value, repeatable)

Returns:

 
Schema.org Product

 

Service endpoint summary

 
GET /widgets-review-service/ssr/service

Required:

 
slug widget

Optional:

 
tags (key:value, repeatable)

Returns:

 
Schema.org Organization

 

Summary

The Server-Side Rendering API allows Feefo review data to be included in server-rendered pages as Schema.org JSON-LD.

A standard integration consists of:

  1. creating an App Key with SSR API enabled;
  2. generating an OAuth 2.0 access token;
  3. requesting the relevant product or service SSR endpoint, optionally filtered with tags;
  4. handling both 200 and 204 responses;
  5. inserting successful responses into the server-rendered page as application/ld+json.

Because results are generated asynchronously and refreshed without blocking existing responses, integrations should be designed to tolerate an initial 204 and use the structured data once it becomes available.