IMDb API endpoint
Returns IMDb's aggregate rating, vote count, ten rating buckets, and country rating summaries. Pass exactly one of `id` or `url`.
/imdb/title/ratingsQuery parameters:
id — IMDb title ID, such as tt0111161.url — absolute IMDb title URL, such as https://www.imdb.com/title/tt0111161/.Example: ?id=tt0111161
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| rating | 10 | 1 to 10, median 5 |
| vote_count | 10 | 0 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | No | IMDb title id | tt0111161 | |
| url | string | No | Absolute IMDb title URL | https://www.imdb.com/title/tt0111161/ | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/imdb/title/ratings" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"id": "tt0111161",
"rating_value": 9.3,
"histogram": [
{
"rating": 10,
"vote_count": 1
}
],
"countries": [
{
"country": "US",
"aggregate": 9.3,
"vote_count": 1
}
]
}
}Request schema
No body schema
Response schema
#/definitions/imdb.ratingsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | imdb.RatingsResponse | No | ||||
| data.countries | array | No | ||||
| data.countries[].aggregate | number | No | ||||
| data.countries[].country | string | No | ||||
| data.countries[].vote_count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.histogram | array | No | ||||
| data.histogram[].rating | integer | No | ||||
| data.histogram[].vote_count | integer | No | ||||
| data.id | string | No | ||||
| data.rating_count | integer | No | ||||
| data.rating_value | number | No | ||||
| data.source_url | string | No | ||||
| data.title | string | No | ||||
| data.url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/imdb/title/ratings" \
-H "x-api-key: $CRAWLORA_API_KEY"