Use case

AliExpress reviews for your blog

A product review is only as good as its evidence. Back yours with the rating distribution and the words of thousands of real buyers.

Get a free API keyRead the docs

From opinion to evidence

Most “best of AliExpress” posts repeat the listing. A post that says “4.4 stars from 452 buyers, 7% of them give 1 star, and the usual complaint is the left earbud” is more useful and more credible, and ranks for the long-tail questions readers actually search.

With the API you get the summary and the reviews of any product, so you can write about what buyers say instead of guessing.

What you can do with it

  • Show a rating box on your post with the average, the total and the distribution by stars.
  • Write pros and cons from the 5 and 1-star reviews, or let an LLM summarise them.
  • Quote real buyers, with country and date, translated to your readers’ language.
  • Keep roundups fresh by rebuilding the site on a schedule so the numbers stay current.

Example: fetch the data when your site builds

Do it at build time, not in the visitor’s browser: your API key stays private and your pages stay fast. This Node.js script writes a JSON file that Astro, Eleventy, Next.js, Hugo or Jekyll can read as data.

Node.js — data file for your site
// build-reviews.mjs — run before your site builds (e.g. "prebuild": "node build-reviews.mjs").
// Writes the rating summary and the best and worst reviews of each product to a JSON file your pages can import.
import { writeFileSync } from 'node:fs';

const API = 'https://api.aliexpress-reviews.com';
const PRODUCTS = ['1005006123456789']; // AliExpress product ids you write about
const headers = { 'x-api-key': process.env.REVIEWS_API_KEY };

async function get(id, filter) {
  const res = await fetch(`${API}/v1/reviews/${id}?filter=${filter}&pageSize=5`, { headers });
  if (!res.ok) throw new Error(`${id}: HTTP ${res.status}`);
  return res.json();
}

const out = {};
for (const id of PRODUCTS) {
  const best = await get(id, '5');
  const worst = await get(id, '1');
  out[id] = { summary: best.summary, praise: best.data, complaints: worst.data };
}
writeFileSync('src/data/aliexpress-reviews.json', JSON.stringify(out, null, 2));

Details worth getting right

  • Never put the key in client-side code. Anything in the browser can be copied.
  • One request per product per build is enough: the summary comes with the first page of reviews.
  • Say where the data comes from and link to the product. Readers and search engines trust sourced numbers.
  • Check your affiliate rules. Programmes differ on how they allow reviews and ratings to be quoted.

Questions

Does it work with WordPress, Ghost or a static site?

Yes. It is a REST API with an x-api-key header, so you can call it from PHP, from a build script or from a serverless function and render the result in any CMS.

Can I show the reviews directly in the browser?

We recommend not to: the key would be visible to anyone. Fetch at build time or through a small server-side endpoint of your own.

How many requests do I need?

One per product and build is enough for the summary and the first reviews. The Free plan has 100 requests a day, which covers a blog with dozens of products.

Is the API affiliated with AliExpress?

No. It returns the public reviews AliExpress shows on its product pages, but it is an independent service.

Try it with your own products

100 requests a day for free, no card required. Paste a product ID into the tester in your dashboard and see the JSON.

Get a free API keyPricing