Aleva Sweden API
The Sweden API from Aleva — 4 operation(s) for sweden.
The Sweden API from Aleva — 4 operation(s) for sweden.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/aleva-se:aleva-se-sweden-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
email: hello@aleva.se
description: Public datasets as API endpoints. Every response carries the attribution and licence of its sources in _meta and the X-Attribution header; show the attribution where you use the data.
title: Aleva Sweden API
version: endpoint:air-passengers-monthly:1:true,endpoint:airport-passengers:1:true,endpoint:consumer-prices:1:true,endpoint:court-rulings:1:true,endpoint:court-rulings-by-court:1:true,endpoint:debt-restructuring:1:true,endpoint:debt-restructuring-by-age:1:true,endpoint:domain-lookup:1:true,endpoint:domains-dropped:1:true,endpoint:domains-expiring:1:true,endpoint:domains-new:1:true,endpoint:domains-valuable:1:true,endpoint:electricity-balance:1:true,endpoint:electricity-forecast:1:true,endpoint:foods:1:true,endpoint:guest-nights:1:true,endpoint:guest-nights-by-country:1:true,endpoint:guest-nights-by-county:1:true,endpoint:house-prices:1:true,endpoint:job-ads:1:true,endpoint:job-ads-national:1:true,endpoint:medicine-shortages:1:true,endpoint:medicine-shortages-by-group:1:true,endpoint:medicine-shortages-monthly:1:true,endpoint:municipal-figures:1:true,endpoint:municipal-figures-latest:1:true,endpoint:party-agreement:1:true,endpoint:party-attendance:1:true,endpoint:population:1:true,endpoint:population-latest:1:true,endpoint:riksbank-rates:1:true,endpoint:stats-dnssec:1:true,endpoint:stats-nameservers:1:true,endpoint:swestr:1:true,endpoint:train-punctuality:1:true,endpoint:train-punctuality-daily:1:true,endpoint:weather-history:1:true,endpoint:weather-now:1:true,endpoint:web-agents:1:true,endpoint:web-ai-stance:1:true,endpoint:web-apis:1:true,endpoint:web-commerce-agents:1:true,endpoint:web-llms:1:true,endpoint:web-mcp-registry:2:true,endpoint:web-mcp-servers:1:true,showcase:agentic-commerce:1:true,showcase:aviation:1:true,showcase:debt:1:true,showcase:domains:1:true,showcase:energy:1:true,showcase:expiring-domains:1:true,showcase:foods:1:true,showcase:jobs:1:true,showcase:llms-txt:1:true,showcase:mcp-registry:2:true,showcase:medicines:1:true,showcase:municipalities:1:true,showcase:rates:1:true,showcase:riksdag:1:true,showcase:rulings:1:true,showcase:sweden:1:true,showcase:swedish-agents:1:true,showcase:swedish-apis:1:true,showcase:tourism:1:true,showcase:trains:1:true,showcase:weather:1:true
servers:
- url: https://api.aleva.se
tags:
- name: Sweden
paths:
/v1/sweden/cpi:
get:
operationId: consumer-prices
parameters:
- description: 00000807 index, 00000804 12-month change, 00000806 monthly change equals
in: query
name: measure_code
required: false
schema:
type: string
- description: 00000807 index, 00000804 12-month change, 00000806 monthly change one of (comma-separated)
in: query
name: measure_code.in
required: false
schema:
type: string
- description: Month (first day) equals
in: query
name: month
required: false
schema:
format: date
type: string
- description: Month (first day) at least
in: query
name: month.gte
required: false
schema:
format: date
type: string
- description: Month (first day) at most
in: query
name: month.lte
required: false
schema:
format: date
type: string
- in: query
name: limit
required: false
schema:
default: 1000
maximum: 1000
minimum: 1
type: integer
- description: next_cursor from the previous page
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
_meta:
$ref: '#/components/schemas/Meta'
data:
items:
properties:
measure:
type: string
measure_code:
description: 00000807 index, 00000804 12-month change, 00000806 monthly change
type: string
month:
description: First day of the month
format: date
type: string
value:
type: number
type: object
type: array
next_cursor:
description: Present when there are more rows
type: string
required:
- data
- _meta
type: object
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid parameters
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Missing or invalid API key
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Not found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Rate limit reached
security:
- {}
- bearer: []
- apiKey: []
summary: Consumer price index per month
x-bucket: consumer_prices
x-tier: light
tags:
- Sweden
/v1/sweden/house-prices:
get:
operationId: house-prices
parameters:
- description: 00 Sweden, 0010 Greater Stockholm, ... equals
in: query
name: region_code
required: false
schema:
type: string
- description: 00 Sweden, 0010 Greater Stockholm, ... one of (comma-separated)
in: query
name: region_code.in
required: false
schema:
type: string
- description: Year equals
in: query
name: year
required: false
schema:
type: integer
- description: Year at least
in: query
name: year.gte
required: false
schema:
type: integer
- description: Year at most
in: query
name: year.lte
required: false
schema:
type: integer
- in: query
name: limit
required: false
schema:
default: 1000
maximum: 1000
minimum: 1
type: integer
- description: next_cursor from the previous page
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
_meta:
$ref: '#/components/schemas/Meta'
data:
items:
properties:
index:
description: 1981 = 100
type: number
region:
type: string
region_code:
type: string
year:
format: int32
type: integer
type: object
type: array
next_cursor:
description: Present when there are more rows
type: string
required:
- data
- _meta
type: object
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid parameters
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Missing or invalid API key
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Not found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Rate limit reached
security:
- {}
- bearer: []
- apiKey: []
summary: House price index
x-bucket: house_price_index
x-tier: light
tags:
- Sweden
/v1/sweden/population:
get:
operationId: population
parameters:
- description: 00 Sweden, 2 digits county, 4 digits municipality equals
in: query
name: region_code
required: false
schema:
type: string
- description: 00 Sweden, 2 digits county, 4 digits municipality one of (comma-separated)
in: query
name: region_code.in
required: false
schema:
type: string
- description: country, county or municipality equals
in: query
name: level
required: false
schema:
type: string
- description: Year equals
in: query
name: year
required: false
schema:
type: integer
- description: Year at least
in: query
name: year.gte
required: false
schema:
type: integer
- description: Year at most
in: query
name: year.lte
required: false
schema:
type: integer
- in: query
name: limit
required: false
schema:
default: 1000
maximum: 1000
minimum: 1
type: integer
- description: next_cursor from the previous page
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
_meta:
$ref: '#/components/schemas/Meta'
data:
items:
properties:
level:
type: string
population:
format: int64
type: integer
region:
type: string
region_code:
description: 00 Sweden, 2 digits county, 4 digits municipality
type: string
year:
format: int32
type: integer
type: object
type: array
next_cursor:
description: Present when there are more rows
type: string
required:
- data
- _meta
type: object
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid parameters
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Missing or invalid API key
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Not found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Rate limit reached
security:
- {}
- bearer: []
- apiKey: []
summary: Population per region and year
x-bucket: population_by_region
x-tier: light
tags:
- Sweden
/v1/sweden/population/latest:
get:
operationId: population-latest
parameters:
- description: Region code equals
in: query
name: region_code
required: false
schema:
type: string
- description: Region code one of (comma-separated)
in: query
name: region_code.in
required: false
schema:
type: string
- description: country, county or municipality equals
in: query
name: level
required: false
schema:
type: string
- in: query
name: limit
required: false
schema:
default: 400
maximum: 1000
minimum: 1
type: integer
- description: next_cursor from the previous page
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
_meta:
$ref: '#/components/schemas/Meta'
data:
items:
properties:
change_pct:
description: Change since first_year, percent
type: number
first_year:
format: int32
type: integer
level:
type: string
population:
description: Population in the latest year
format: int64
type: integer
region:
type: string
region_code:
type: string
year:
description: Latest year
format: int32
type: integer
type: object
type: array
next_cursor:
description: Present when there are more rows
type: string
required:
- data
- _meta
type: object
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid parameters
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Missing or invalid API key
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Not found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Rate limit reached
security:
- {}
- bearer: []
- apiKey: []
summary: Population in the latest year and change
x-bucket: population_latest
x-tier: light
tags:
- Sweden
components:
schemas:
Error:
properties:
error:
properties:
code:
type: string
message:
type: string
type: object
type: object
Meta:
properties:
attribution:
type: string
build_run_id:
type: integer
built_at:
format: date-time
type: string
endpoint:
type: string
fetched_at:
format: date-time
type: string
licenses:
items:
type: string
type: array
sources:
items:
type: object
type: array
usage_mode:
type: string
version:
type: integer
type: object
securitySchemes:
apiKey:
in: header
name: X-API-Key
type: apiKey
bearer:
scheme: bearer
type: http