# AliExpress Rating summary API (aliexpress.ratings)

- Canonical page: https://everyinfra.com/en/aliexpress-api/ratings
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "aliexpress", "action": "ratings", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=aliexpress&action=ratings

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Specifies the target AliExpress item using a full URL (such as https://www.aliexpress.com/item/<item_id>.html). Use url with profile to fetch product metadata, variants for SKUs, reviews or ratings for feedback summaries, or product_detail (which also accepts a numeric item ID). |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| average_star | platform-native meaning |
| total_reviews | platform-native meaning |
| positive_rate | platform-native meaning |
| neutral_rate | platform-native meaning |
| negative_rate | platform-native meaning |
| five_star | platform-native meaning |
| four_star | platform-native meaning |
| three_star | platform-native meaning |
| two_star | platform-native meaning |
| one_star | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "aliexpress",
  "action": "ratings",
  "params": {
    "url": "https://www.aliexpress.com/item/3256806025886958.html"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "aliexpress",
        "action": "ratings",
        "params": {
            "url": "https://www.aliexpress.com/item/3256806025886958.html",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "aliexpress",
  "action": "ratings",
  "results": {
    "average_star": …,
    "total_reviews": …,
    "positive_rate": …,
    "neutral_rate": …,
    "negative_rate": …,
    "five_star": …,
    "four_star": …,
    "three_star": …,
    "two_star": …,
    "one_star": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=aliexpress
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
