Skip to main content
POST
Rankings

Request contract

  • Method and path: POST /apis/v1/worldhappiness-report/happiness/rankings
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/worldhappiness-report/happiness/rankings
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
countries
string[]

Optional ISO3 filter; unranked codes are reported in warnings.

cursor
string

next_cursor from the previous page; encodes the edition. Pattern: ^v1:[0-9]{4}:[0-9]{1,4}$.

edition
number

Report year (2013–2026 published). Required unless cursor is given.

Provider reference: minimum 2013; maximum 2031.

include_factors
boolean

false skips the per-country detail calls (faster; explained_by and factors are null).

page_size
number
default:20

page_size

Provider reference: minimum 1; maximum 50; default 20.

Response

One page of a World Happiness Report edition's ranking table (three-year average Cantril ladder score and rank) with the six explanatory-factor shares and raw factor levels from the dashboard country view. edition N reads dashboard data year N-1. Paginate with next_cursor; filter to ISO3 codes with countries.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.