Skip to the text
SEDIS Partner API API reference

Get started

The Sedis Partner API gives your systems the figures your colleagues see in Sedis. It is JSON over HTTPS, and it covers two products:

Product What it holds Whose data
Bolagsanalys Key figures from the interim reports of listed Nordic property companies, quarter by quarter The same for everyone who has the product
Fastighetsbenchmark Your own properties – values, rents, costs, returns – and the market to compare them with Yours. No other customer can see your properties

This guide explains how the data fits together. Every call, parameter and field is in the API reference, where you can also try the calls.

Note

Do you already fetch data from /partnerapi with a user name and password? That is version 1. It keeps working, and has its own page.

Get a key

Write to info@sedis.se and say which system will use the API and which of the two products it needs. You get a key that looks like this:

sedis_pk_live_8f3kQ2mZ…

You see the whole key once. Put it in your secret store straight away; Sedis keeps only a fingerprint of it and cannot show it again.

A key belongs to a system. If you want to call the API as yourself, from a script of your own, sign in with your Sedis account instead.

Make a call

Send the key in the X-Api-Key header. This asks for the listed companies whose name contains catena:

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/bolagsanalys/companies?nameContains=catena"
{
  "data": [
    {
      "companyId": "wptwmmnyaxj",
      "name": "Catena",
      "nextReportDate": "2027-02-19",
      "isInactive": false,
      "latestReportUri": "https://app.sedis.se/reports/dl/2118",
      "countryCode": "SE",
      "nationalIdentificationNumber": "165562941715"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "totalCount": 1,
  "totalPages": 1
}

Every list looks like this: the rows are in data, and the rest tells you which page you have.

Fetch a figure

A figure in Bolagsanalys has a company, a parameter and a quarter. You have the company. Now find the parameter:

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/bolagsanalys/parameters?nameContains=equity%20ratio"

One of the rows is NA61, Equity ratio. Ask for it from the first quarter of 2025:

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/bolagsanalys/data?companyId=wptwmmnyaxj&parameterCode=NA61&fromDate=2025Q1"
{
  "data": [
    {
      "companyId": "wptwmmnyaxj",
      "parameterCode": "NA61",
      "quarterId": 20251,
      "figure": 48.5,
      "lastUpdatedUtc": "2025-05-06T07:41:12Z"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "totalCount": 1,
  "totalPages": 1
}

Leave out companyId and you get the same figure for every company. (The figures in this guide are made up.)

Where to go next

  • Concepts – what the words mean. Read it before you work with Fastighetsbenchmark.
  • Read data – paging, filters, keeping a copy up to date, and complete programs in Python and C#.
  • Write data – send your properties and their values from your own system.
  • Fråga Sedis for AI apps – let people ask questions in Claude or ChatGPT instead of writing code.

Concepts

A handful of words carry the whole API. Sedis is a Swedish product, so your colleagues may know them by their Swedish names.

Throughout the guide, a coloured line beside the text shows which product it is about: Bolagsanalys or Fastighetsbenchmark. Text without a line is about both.

The words

In this guide In the API In Sedis What it is
Company companies Bolag A listed property company in Bolagsanalys
Parameter parameters Parameter What is measured: rental income, equity ratio, market value
Property unit property-units Fastighet A property you own
Collection collections Samling A group of your property units that you have put together
Sedis object – Sedisobjekt Many owners' properties added together by Sedis, so that no single one can be recognised
Comparison area comparison-areas Jämförelseområde Your view of a Sedis object: the market you compare yourself with
Comparison object comp Jämförelseobjekt A property unit, a collection or a comparison area
Reference zone reference-zones Externa kartlager Published market data from others, such as Nils Holgersson and Cushman & Wakefield
Value data, comp-data Värde One figure: one parameter, for one thing, at one point in time

The two products do not share anything but the word parameter. RA13 exists only in Bolagsanalys and FN0 only in Fastighetsbenchmark.

Company, parameter, quarter

A figure is found by three things: companyId, parameterCode and quarterId.

The quarter is written as the year and the number of the quarter: 20253 is the third quarter of 2025. In a filter you can also write 2025Q3.

The parameter code says what is measured, and also in which unit and over which period. Rental income in SEK million has three codes:

Code period What the figure for 20253 covers
RA11 Kvartal (quarter) July to September 2025
RA12 Ackumulerat (year to date) January to September 2025
RA13 Rullande12Man (rolling 12 months) October 2024 to September 2025

The last digit is the period, as above. The digit before it is the unit: 1 is SEK million, 3 is SEK, 4 is SEK per m², 5 is m², 6 is per cent, 7 is a number of something, 8 is a factor and 9 is years. RA43 is therefore rental income per square metre over the last twelve months.

Yields and margins for a single quarter are about a quarter of what people expect, or swing with the season. When somebody asks for "the direct yield", they nearly always mean the rolling twelve months: a code that ends in 3.

Companies sometimes correct earlier quarters, and Sedis sometimes adds a parameter and fills it in backwards. An old figure can therefore change. lastUpdatedUtc says when it last did.

Your properties and the market

How the parts of Fastighetsbenchmark fit together Your property units can be grouped into your collections. Shared values from your property units and from other owners' properties are added together into Sedis objects. A comparison area is your view of a Sedis object. You compare your property units and collections with your comparison areas. Your property unitsproperty-units Sedis objectmany owners, anonymous Other owners' propertiesnever shown to you Your collectionscollections Your comparison areascomparison-areas sharedsharedyou group themyour view of itcompare
Solid boxes are what the API gives you. Dashed boxes stay inside Sedis.

Property unit. A property you own. It gets a sedisId when it is created, and that id never changes.

Collection. A group of your property units that you choose, such as Offices in Solna. Sedis calculates the same parameters for the collection as for a single property unit. You create, change and delete collections yourself.

Sedis object. Sedis adds together properties from many owners, for instance all offices in central Stockholm. A value is shown only when there are at least five properties and three owners behind it, none of them with more than 70 per cent of the market value. A Sedis object cannot be fetched.

Comparison area. Your view of a Sedis object, with the market's values. You can fetch the areas that Sedis has set up for your company.

Comparison object. The word for property units, collections and comparison areas together, comp for short. They all have a sedisId, and their values are fetched in the same way, from comp-data. That is why a comparison is easy: ask for the same parameter for your property units and for your comparison area.

Reference zone. An area in market data that others have published. Everybody sees the same zones. The API lists them, but their values are only in Sedis on the web.

SedisId

sedisId is the id of everything in Fastighetsbenchmark: v4ZIL9NafVo is one. Sedis makes it up at random when the thing is created, and it never changes or comes back for something else.

  • Upper and lower case matter. v4ZIL9NafVo and v4zil9nafvo are two different ids. Many databases and spreadsheets treat them as the same, so check that a join or a lookup in yours tells them apart.
  • It is a text of at most 14 characters. Do not read anything into it or expect a certain length.
  • It is safe to use as it is in an address, a file name or a JSON key: only the letters a to z, digits and underscore, and never a digit first.

Companies in Bolagsanalys have a companyId of the same kind.

Values and value dates

A value belongs to one sedisId, one parameterCode and one valueDate. The value date is the last day of the period, and today always 31 December. Rents, costs and net operating income cover the twelve months that end on that day. Market value and area are as they were on that day.

Values for quarters and half-years are on their way. When they come, a property unit can have several value dates in one year. Filter on valueDate rather than assuming one row per year.

Check the unit. Every parameter has one, in unit. Amounts are in thousands of SEK (kSEK): a market value of SEK 412 million is 412000.

The first letter of the code decides the type, and dataType says it in clear text:

Code starts with dataType Read the value from
B boolean boolean
D date date
E enum enum, with value and name
anything else decimal figure
[
  {
    "sedisId": "v4ZIL9NafVo", "parameterCode": "FN0", "valueDate": "2025-12-31",
    "dataType": "decimal", "figure": 412000
  },
  {
    "sedisId": "v4ZIL9NafVo", "parameterCode": "EA0", "valueDate": "2025-12-31",
    "dataType": "enum", "figure": 1, "enum": { "value": 1, "name": "Management" }
  }
]

Base values and calculated values

Some parameters are base data that you report: market value, rents, areas, costs (isBaseData: true). The others are calculated by Sedis from them, such as direct return VE0 and total return VG0. You can only write base data.

When a base value changes, the calculated values that depend on it are removed at once and come back when they have been worked out again. Until then calculation.status on the property unit or the collection is pending; after that it is current. A calculated value is therefore sometimes missing, but never out of date.

Shared values

When Sedis has reviewed and published the values of a value date, they are shared: they count in the Sedis objects that others compare themselves with. Nobody sees your property, but your figures are part of the average. That is why a shared value cannot be changed without Sedis having a look first. Write data has the details.

What you can see

You reach your own company's data and nobody else's. The company is decided by your key or your sign-in, never by anything in the call, and the rule sits in the database layer below every call.

If you ask for a sedisId that belongs to another customer, the answer is 404 Not Found, exactly as if it did not exist.

In Bolagsanalys you see the companies and the years that your company has in Sedis.

An example: our offices against Stockholm

How has the total return of our offices been, compared with the market in central Stockholm, over ten years? That is four calls.

1. Find the comparison area.

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/fastighetsbenchmark/comparison-areas?nameContains=CBD%20Stockholm"

2. Find your offices in it. belongsToComparisonAreaSedisId gives your own property units inside the area. Property types have Swedish names; Kontor is office.

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/fastighetsbenchmark/property-units?belongsToComparisonAreaSedisId=kR4tQ9wLmE2&propertyTypeName=Kontor"

3. Find the parameter. Among the rows is VG0, Total return, in per cent.

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/fastighetsbenchmark/parameters?nameContains=total%20return"

4. Fetch the values for your offices and the area in one call.

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/fastighetsbenchmark/comp-data?sedisIdIn=v4ZIL9NafVo,pR7m2KdQ0z,kR4tQ9wLmE2&parameterCode=VG0&fromDate=2016-12-31"

If you want one line for all your offices instead of one per property unit, create a collection and ask for its sedisId.

Read data

Every list in the API works the same way. Learn it once and it holds for companies, values, property units and the rest. Which filters a list takes is in the API reference.

Pages

page starts at 1. pageSize is 50 unless you say otherwise, and at most 500. If you ask for more you get 500, and the header Sedis-Page-Size-Clamped: true says so.

totalPages tells you when to stop. Counting takes time on large lists: add count=false and totalCount and totalPages are left out. Then carry on until data is empty.

Filter, sort and choose fields

Filter with the named parameters of each list, such as companyId, parameterCode or nameContains. Several filters all have to match. sedisIdIn takes several ids with commas between them.

Sort with sort, and a minus sign for descending order. sort=-figure puts the highest first, and sort=parameterCode,-quarterId sorts on two fields.

Choose fields with fields=companyId,name to get only those and a smaller answer. On property units, collections and comparison areas a few fields are only sent when you ask for them. Name the others you want as well, such as fields=sedisId,name,geometry:

Field What it is
geometry The location or outline, as GeoJSON
belongsToComparisonAreas Which of your comparison areas the property unit is in
containsPropertyUnits Which of your property units are in the comparison area

A field or a sort order that does not exist gives 400, and the answer names it.

Language

Names and descriptions are in English. Add lang=sv, or send Accept-Language: sv, for Swedish. A text that has not been translated yet comes in Swedish: today that goes for the names of the parameter groups, the property types and the periods in Bolagsanalys.

Field names, codes and ids are the same in both languages.

Find by place

Property units, collections and comparison areas can be found by where they are. Coordinates are longitude and latitude in degrees (WGS 84).

To find what is Send
In a rectangle bbox=17.8,59.2,18.2,59.4 (west, south, east, north)
Near a point nearLon=18.07&nearLat=59.33&radiusM=2000
In a shape wkt=POLYGON((…))

A large shape does not fit in an address. Send it with POST to /search after the same list instead. The body takes a GeoJSON geometry or a wkt, and the same filters and paging:

curl -X POST -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  "https://api.sedis.se/v2/fastighetsbenchmark/property-units/search" \
  -d '{
        "geometry": { "type": "Polygon",
          "coordinates": [[[17.8,59.2],[18.2,59.2],[18.2,59.4],[17.8,59.4],[17.8,59.2]]] },
        "pageSize": 100
      }'

Bolagsanalys has a similar search, for when you want figures for a chosen set of companies: POST data/search with up to 50 companyIds.

Keep a copy up to date

Many customers fetch everything once and then only what is new, every night.

Only what has changed

curl -H "X-Api-Key: $SEDIS_API_KEY" \
  "https://api.sedis.se/v2/bolagsanalys/data?changedSince=2025-12-02&pageSize=500"

changedSince gives new figures and corrections of old quarters alike. Most nights there is nothing. Send a day, or better, the highest lastUpdatedUtc you have saved: then your own clock does not matter. What was changed at exactly that moment comes once more, so overwrite on company, parameter and quarter.

Your own values

Values change when you write them, when Sedis publishes an upload, and when a comparison area is recalculated. Fetch the values again for what you follow. If you wait for something you have just written, wait until calculation.status is current on the property unit.

Has it changed at all?

The answer to a GET of property units, collections or comparison areas has an ETag. Send it back in If-None-Match next time, and if nothing has changed you get an empty 304 Not Modified.

curl -i -H "X-Api-Key: $SEDIS_API_KEY" -H 'If-None-Match: W/"…"' \
  "https://api.sedis.se/v2/fastighetsbenchmark/property-units"

Compressed answers

Ask for compressed answers. They are about a tenth of the size. Python, R, Power Query and browsers do it by themselves. In .NET you turn it on, as in the example below, and curl needs --compressed.

Example in Python

Fetches the figures that have changed since last time, and saves them in a local database. Run it every night.

import os
import sqlite3

import requests

API = "https://api.sedis.se/v2"

session = requests.Session()
session.headers["X-Api-Key"] = os.environ["SEDIS_API_KEY"]

db = sqlite3.connect("sedis.db")
db.execute("""create table if not exists figure (
    company text, parameter text, quarter int, figure real, text text, updated text,
    primary key (company, parameter, quarter))""")

# None the first time, which fetches everything
latest = db.execute("select max(updated) from figure").fetchone()[0]

page = 1
while True:
    answer = session.get(f"{API}/bolagsanalys/data", timeout=60, params={
        "changedSince": latest, "page": page, "pageSize": 500, "count": "false"})
    answer.raise_for_status()
    rows = answer.json()["data"]
    if not rows:
        break
    db.executemany("insert or replace into figure values (?, ?, ?, ?, ?, ?)", [
        (r["companyId"], r["parameterCode"], r["quarterId"], r.get("figure"), r.get("text"), r["lastUpdatedUtc"])
        for r in rows])
    page += 1

db.commit()
print(f"{db.total_changes} figures saved")

The first run fetches everything: several hundred thousand figures, in ten to twenty minutes. Ask info@sedis.se for a file to start from if you would rather load that. A field without a value is left out of the answer, and that is why the example reads figure and text with get.

Example in C#

Prints the total return of your property units next to that of a comparison area.

using System.Net;
using System.Net.Http.Json;

using var http = new HttpClient(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.All })
{
    BaseAddress = new Uri("https://api.sedis.se/v2/fastighetsbenchmark/")
};
http.DefaultRequestHeaders.Add("X-Api-Key", Environment.GetEnvironmentVariable("SEDIS_API_KEY"));

var area = (await Get<Comp>("comparison-areas?pageSize=1")).Single();
var units = await Get<Comp>($"property-units?belongsToComparisonAreaSedisId={area.SedisId}&pageSize=500");

var names = units.Append(area).ToDictionary(c => c.SedisId, c => c.Name);
var values = await Get<Value>(
    $"comp-data?sedisIdIn={string.Join(',', names.Keys)}&parameterCode=VG0&fromDate=2020-12-31&pageSize=500");

foreach (var value in values.OrderBy(v => v.ValueDate).ThenBy(v => names[v.SedisId]))
    Console.WriteLine($"{value.ValueDate:yyyy}  {names[value.SedisId],-40} {value.Figure,8:N2} %");

async Task<List<T>> Get<T>(string address) => (await http.GetFromJsonAsync<Page<T>>(address))!.Data;

record Page<T>(List<T> Data);
record Comp(string SedisId, string Name);
record Value(string SedisId, DateOnly ValueDate, decimal? Figure);

Make a client from the specification

The API is described in OpenAPI at /openapi/v2.json. Tools such as Kiota, NSwag and openapi-generator can make a client from it in most languages.

Write data

Your own system can keep your portfolio in Fastighetsbenchmark up to date: create the property units, send a year's values, and correct them afterwards. It takes the place of the Excel file that others upload on the web. Sedis still reviews the values before they count in the market.

Writing needs an organisation key. A person who has signed in can only read.

The whole flow

  1. Create each property unit once with POST property-units, and save the sedisId you get back.
  2. Upload the values for a year with POST comp-uploads, and read the remarks in the answer.
  3. Submit them when they are right, with "submit": true.
  4. Follow the upload with GET comp-uploads/{id} until it is published.
  5. Correct single values later with PATCH.

Everything is strict: if one thing in a call is wrong, you get 422 with a list of all the errors, and nothing is saved. Errors explains each code.

What a property unit is called

Field Who decides it Finds the property unit
sedisId Sedis, when it is created. Never changes. Upper and lower case matter. Yes
name You. Your own name for it, unique among your property units. Yes, if it matches exactly
officialDesignation The land register, e.g. Gladan 4 No. It describes the property but does not identify it

Save the sedisId in your system. If you cannot, use name, and look the property unit up with GET property-units?name=….

Create a property unit

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/property-units" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -d '{
        "name": "Kontoret Gladan 4",
        "officialDesignation": "Gladan 4",
        "municipalityId": 21,
        "address": {
          "streetNameAndNumber": "Sveavägen 12",
          "postalCode": "111 57",
          "postalTown": "Stockholm"
        }
      }'

The answer is 201 Created with the property unit and its sedisId. If you already have one with that name, the answer is 409 with its existingSedisId.

Only name is required. A Swedish officialDesignation also needs municipalityId, because the same designation exists in many municipalities. Look it up once with GET municipalities?code=0180, where the code is the official four-digit one.

The location is looked up by Sedis: in Lantmäteriet's register for a Swedish designation, otherwise from the address. If you know it better, send a point as GeoJSON:

geometry geometryCrs Coordinates
{ "type": "Point", "coordinates": [18.0645, 59.3326] } leave out longitude, latitude (WGS 84)
{ "type": "Point", "coordinates": [674322, 6581099] } EPSG:3006 easting, northing (SWEREF 99 TM)

A point that lies outside the municipality or the country is an error. Sedis never moves a point you have sent.

Warnings. The answer may have warnings about the designation: that it repeats the name of the municipality, or that Lantmäteriet does not know it. The property unit is created all the same.

Change or rename a property unit

PUT property-units/{sedisId} takes the same body as POST and replaces everything: a field you leave out is emptied. This is the only way to rename one.

If somebody else may be changing it at the same time, send the ETag from your last GET in If-Match. If it has been changed since, you get 412 and nothing is written.

Upload values

One upload has one value date and up to 1,000 property units:

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/comp-uploads" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b2f6e8e-3c1a-4c55-9a6e-2f1f3c9f7d10" \
  -d '{
        "valueDate": "2025-12-31",
        "rows": [
          { "sedisId": "v4ZIL9NafVo", "values": { "EA0": 1, "EB0": 2, "FN0": 412000, "FS0": 398000 } },
          { "name": "Kontoret Gladan 4", "values": { "EA0": 1, "EB0": 2, "FN0": 98000, "FS0": null } }
        ]
      }'

Which parameters? Those with isBaseData: true in GET parameters. Each has its unit there, and amounts are in thousands of SEK. The upload above says that the first property is worth SEK 412 million.

How is a value written? A number for decimal, true or false for boolean, the number in enumValues for enum, and "2019-04-01" for date. null removes a value, and a parameter you leave out is left as it is.

What must be there? To be submitted, every property unit needs a classification (EA0) and a property type (EB0) on the value date. The types are in GET property-types.

Which value date? 31 December, for the year that ends then.

An upload never creates or renames a property unit. An unknown name is an error.

Read the remarks, then submit

Without submit the upload is only saved, and you can send it again as many times as you like. The answer has warnings: things Sedis would ask about, such as a value that is a hundred times smaller than last year for every property. Look through them, correct what is wrong, and send the upload again with "submit": true.

Then it is with Sedis. GET comp-uploads/{id} says where it is:

status What it means
uploaded Saved but not submitted. Also when Sedis has sent it back for correction.
submitted With Sedis for review
publishing Being published
published The values are in Fastighetsbenchmark. The calculated values follow, property unit by property unit.

After it has been submitted, a new upload for the same date gives 409.

Correct values

PATCH changes some of the values for one property unit and one date. The body is a JSON Merge Patch with parameter codes, and null removes a value:

curl -X PATCH "https://api.sedis.se/v2/fastighetsbenchmark/property-units/v4ZIL9NafVo/values/2025-12-31" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/merge-patch+json" \
  -d '{ "FN0": 418000, "FS0": null }'

What happens depends on whether the value is shared, that is, part of what others compare themselves with:

The values are Answer What happens
Not shared 200 The change is made at once. Calculated values follow within seconds.
Shared 202 The change waits for Sedis. Until it is approved the old value stands.

GET property-units/{sedisId}/pending-changes lists what is waiting. If Sedis sends a change back, the reason is in reviewComment. To take back a change, send the old value again.

Remove

Call Removes
DELETE property-units/{sedisId}/values/{valueDate} All values for one date
DELETE property-units/{sedisId} The property unit with everything in it

Shared values cannot be removed through the API, since that would change other customers' figures: the answer is 409. A property that has been sold should not be removed either. Report the sale as a transaction.

Collections

A collection is a group of your property units that Sedis calculates as a whole.

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/collections" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f9c1e2a-7b3d-4a1f-9c0e-2b6d4a8f1c33" \
  -d '{ "name": "Offices in Solna", "propertyUnitSedisIds": ["v4ZIL9NafVo", "pR7m2KdQ0z"] }'

PUT collections/{sedisId} replaces the name and all the members. DELETE removes the collection but not the properties in it.

Retry safely

Every POST that creates something needs an Idempotency-Key: a new UUID for each thing you want done. If the network fails and you do not know whether it worked, send the same call with the same key again. You then get the first answer back, with the header Idempotency-Replayed: true, and nothing is created twice. A key is remembered for 24 hours.

PUT, PATCH and DELETE can be repeated without one.

Keys, sign-in and limits

There are two ways in. Who is calling decides which one.

Who is calling How Can
A system: an integration, a report server, a nightly job An organisation key in X-Api-Key Read and write
A person: you, in a script of your own or in an AI app Your own Sedis account, with two-factor authentication Read

Organisation keys

Sedis issues the key. Write to info@sedis.se.

  • It is a password for your company's data. Keep it in a secret store on a server. Never put it in a web page, an app, version control or a log, and do not give it to people: they sign in with their own accounts.
  • Have several. One for each system and environment, so that one can be changed without stopping the others. Each has its own limits.
  • Change it without a stop. Ask for a new one, switch your systems over, then ask us to revoke the old one.
  • If it has leaked, tell us at once. A revoked key stops working within about a minute, and after that the answer is 401.

A key reaches the products that were chosen for it, and always your own company's data.

Sign in as a person

If you write a script or a notebook for yourself, sign in with your own account. You need:

  • two-factor authentication on your Sedis account (Mitt konto › Tvåfaktorsautentisering)
  • access to Fråga Sedis and the API, which Sedis opens for you. Ask info@sedis.se.

You reach the products you have on the web, and no more.

The script uses the device flow of OAuth 2.0 (RFC 8628). It prints a link, you open the link and confirm with your two-factor code, and the script continues:

import json
import pathlib
import time

import requests

LOGIN = "https://app.sedis.se/connect"
SAVED = pathlib.Path.home() / ".sedis-token.json"  # as secret as a password


def token(**form):
    return requests.post(f"{LOGIN}/token", data={"client_id": "sedis-cli", **form}, timeout=30).json()


def sign_in():
    device = requests.post(f"{LOGIN}/device", timeout=30, data={
        "client_id": "sedis-cli",
        "scope": "sedis.bolagsanalys sedis.fastighetsbenchmark offline_access"}).json()
    print(f"Open {device['verification_uri_complete']}\nand check that it shows {device['user_code']}")
    while True:
        time.sleep(5)
        answer = token(grant_type="urn:ietf:params:oauth:grant-type:device_code", device_code=device["device_code"])
        if "access_token" in answer:
            return answer
        if answer["error"] not in ("authorization_pending", "slow_down"):
            raise SystemExit(f"Not signed in: {answer['error']}")


saved = json.loads(SAVED.read_text()) if SAVED.exists() else {}
answer = token(grant_type="refresh_token", refresh_token=saved["refresh_token"]) if saved else {}
if "access_token" not in answer:
    answer = sign_in()
SAVED.write_text(json.dumps(answer))

session = requests.Session()
session.headers["Authorization"] = f"Bearer {answer['access_token']}"
companies = session.get("https://api.sedis.se/v2/bolagsanalys/companies", params={"pageSize": 5}, timeout=30)
companies.raise_for_status()
print([company["name"] for company in companies.json()["data"]])

Good to know:

  • A sign-in lasts a week from the two-factor code, whatever the script does. Then it asks again. That is deliberate: a connection cannot be handed on to somebody who does not have your code.
  • The access token lasts an hour. The script gets a new one with the refresh token. Each refresh token works once, so always save the latest.
  • Never confirm a link that somebody else has sent you. It would give them your access.
  • See and end your sign-ins under Mitt konto › Anslutna AI-appar on Sedis. If you change your password or your two-factor authentication, all of them end.
Scope Gives
sedis.bolagsanalys Bolagsanalys
sedis.fastighetsbenchmark Fastighetsbenchmark
offline_access A refresh token

Every address a client needs is in /.well-known/oauth-authorization-server. A token for the API does not work in Fråga Sedis, or the other way round.

Rate limits

There is a limit per second and one per minute. They are counted for each key, or each person, and separately for Bolagsanalys and Fastighetsbenchmark.

Level Per second Per minute
Standard 20 600
HighVolume 60 2000
Enterprise 200 6000

You have Standard if nothing else has been agreed. Calls that write have a limit of their own: 60 per minute on every level. Send many property units in one upload rather than one call each.

Past a limit the answer is 429 Too Many Requests, and Retry-After says how many seconds to wait. Wait that long and try again. To stay below the limits, ask for 500 rows at a time and do not run many calls in parallel.

Errors

An error is a JSON document in the format of RFC 9457, with the content type application/problem+json:

{
  "type": "https://api.sedis.se/problems/validation",
  "title": "The upload has errors.",
  "status": 422,
  "detail": "2 errors. Nothing was saved.",
  "traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
  "errors": [
    {
      "pointer": "#/rows/0/sedisId",
      "code": "unknownSedisId",
      "detail": "No property unit with sedisId 'OKAND123' exists for this customer."
    },
    {
      "pointer": "#/rows/1/values/EB0",
      "code": "missingRequiredValue",
      "detail": "EB0 is required to submit."
    }
  ]
}

Let your program look at status, type and code. They are part of the contract. title and detail are for people and may be reworded. traceId finds the call in our logs: send it along when you write to us.

Status codes

Status What it means What to do
400 The call could not be understood: an unknown field or sort order, a quarter that is not a quarter, broken JSON, or no Idempotency-Key Correct the call. invalidFields or errors says what is wrong.
401 No key or token, or one that does not work any longer Check the header. A person signs in again.
403 Not allowed: the key or sign-in does not include the product, or a person tries to write Ask for access, or use an organisation key
404 Does not exist, or is not yours. The API does not say which. Check the id. Upper and lower case matter in a sedisId.
409 Something is in the way: the name is taken, the date is already submitted, the values are shared, or the same call is still running Read detail, which says how to go on
412 Somebody has changed the property unit since you read it Read it again and redo your change
413 The upload is over 5 MB Split it
415 Wrong content type. PATCH needs application/merge-patch+json. Correct the header
422 Understood, but it breaks a rule. Nothing was saved. Correct everything in errors and send it again
429 Too many calls Wait for as many seconds as Retry-After says
500 Something broke on our side Try again in a while. If it goes on, send us the traceId.

Try again by yourself only on 429, on 500 and when the network fails. Wait longer each time.

Problem types

type Status What it means
https://api.sedis.se/problems/validation 422 One or more rules are broken. All of them are in errors.
https://api.sedis.se/problems/conflict 409 Something that exists is in the way. existingSedisId or existingUploadId says what.
https://api.sedis.se/problems/precondition-failed 412 If-Match names an older version
https://api.sedis.se/problems/idempotency-key-reused 422 The Idempotency-Key has been used for another call. Use a new one.
https://api.sedis.se/problems/shared-data 409 The values are shared and cannot be removed. They can be corrected with PATCH.

Other errors have the type of their status code.

Error codes

These are the codes in the errors list of a 422. pointer shows the place in what you sent: #/rows/3/values/EB0 is EB0 in the fourth row.

code What is wrong
nameRequired The property unit has no name
invalidValue The value cannot be used: too long, of the wrong type, or an id that does not exist. detail says which.
missingRequiredValue Something is missing: municipalityId with a Swedish designation, or EA0 or EB0 when you submit
geometryOutOfRange The point is outside the coordinate system. The coordinates are usually in the wrong order.
geometryOutsideMunicipality The point is not in the municipality
geometryOutsideCountry The point is not in the country
unknownSedisId You have no property unit with that sedisId
nameNotFound You have no property unit with that name. Create it first.
ambiguousName Several of your property units have that name. Use sedisId.
sedisIdNameMismatch sedisId and name point at different property units
duplicateProperty The same property unit is on two rows
unknownParameterCode There is no such parameter. Upper and lower case matter.
notBaseParameter The parameter is calculated by Sedis and cannot be written
computedFromPeriods The yearly value is the sum of the half-years or quarters you have reported. Correct those instead.
pendingChanges You have changes to these values waiting for Sedis. Submit the upload when they have been reviewed.
changedAfterUpload You changed the values through the API after making the upload. Upload again, so that older values are not put back.

New codes may be added. Treat one you do not know as an error to be read by a person.

Fråga Sedis for AI apps

Fråga Sedis lets people ask for Sedis data in their own words in an AI app such as Claude or ChatGPT. Behind it is an MCP server that Sedis runs. It gives the app a set of tools for the same data as the API. Nothing is installed, and there is no key.

https://mcp.sedis.se/mcp

If you only want to start using it, follow the steps on www.sedis.se/fraga-sedis (in Swedish). This page is for those who set it up for others or decide whether it may be used.

Before you start

Each person needs two-factor authentication on their Sedis account, and Sedis has to open Fråga Sedis for the account. Write to info@sedis.se with the names.

Connect your AI app

Choose your app.

  1. Choose Plugins in the menu on the left, then Add and Add custom connector.

    The menu under Add on the page Plugins in Claude. The second choice is Add custom connector.

  2. Paste the address and press Continue.

    The window Add custom connector, with https://mcp.sedis.se/mcp in the field Server URL.

  3. Claude fills in the rest by itself. Press Add.

    The next step, with the name Fråga Sedis and the sign-in method OAuth already filled in.

  4. Sedis opens. Sign in.

For a whole organisation (Claude Team and Enterprise): an owner adds the address once under Organization settings › Connectors. After that everybody presses Connect and signs in with their own Sedis account.

The connection belongs to your Claude account. Once it is added here, you have it in Claude Desktop, in Claude Code and on your phone as well.

Connect Sedis on claude.ai in a browser, with the same account: the steps are under the tab claude.ai. It is then in Claude Desktop as well.

If you use Claude Code with the same account as claude.ai, and have connected Sedis there, it is already there. Otherwise:

  1. Add the server in a terminal:

    claude mcp add --transport http --scope user sedis https://mcp.sedis.se/mcp
    
  2. Start claude, write /mcp, choose sedis and then Authenticate.

  3. Your browser opens Sedis. Sign in, and go back to the terminal.

You need a plan that lets you add your own MCP servers. Plus is the one we have tested. In a company workspace (Business, Enterprise) an administrator adds the server for everybody. The menus are in the language of your ChatGPT: the Swedish names are in brackets.

  1. Open chatgpt.com/plugins in a browser, and choose Add (Lägg till) and Add custom MCP server (Lägg till en anpassad MCP-server).

    The menu under Add on the page Plugins in ChatGPT. The third choice, Add custom MCP server, is marked.

  2. Fill in the name and the address. Leave OAuth as it is, tick the box at the bottom and press Create as a plugin (Skapa som en plugin).

    The form in ChatGPT, filled in with the name Fråga Sedis and the address https://mcp.sedis.se/mcp. The box about risks is ticked.

    The icon and the description are optional. You can use our icon and this text: Nyckeltal för börsnoterade fastighetsbolag och våra egna fastigheter mot marknaden.

  3. Press Connect (Anslut). Sedis opens. Sign in.

  4. Start a new chat, write @, choose Fråga Sedis and ask your question.

Do you use another app? It has to be approved by Sedis before it can connect. Write to info@sedis.se and say which one.

Sign in to Sedis

Sign in with your usual Sedis account and the code from your authenticator app. Sedis then asks you to confirm which app it is and what it may read. Press Bekräfta (confirm), and you are back in the app.

The page in Sedis where you confirm. It names the app, has a tick box for each product, and has the buttons Bekräfta and Avbryt.

After a week

The sign-in lasts for one week. Then you confirm with a new code, so that nobody else can go on using your connection.

Press Reconnect when Claude says that the connection has expired, and sign in again.

Press Reconnect when Claude says that the connection has expired, and sign in again.

Write /mcp, choose sedis and Authenticate, and sign in again.

When you ask a question, ChatGPT says that the connection has expired. Press Reconnect (Återanslut) and sign in again.

What IT usually asks

What can the app do? Only read. No tool can change anything in Sedis.

Whose data does it reach? That of the person who signed in: the products they have on the web, chosen again when they sign in, and their own company's properties. Nothing more.

Where does the data go? What the app fetches becomes part of the conversation, with the company that makes the app. Your agreement with that company decides how it is kept. On personal plans, both Claude and ChatGPT have a setting for whether conversations may be used to train their models: turn it off, or use a company plan. Sedis sees which data was fetched, by whom and when, but never the questions or the answers.

How long does it last? One week from the two-factor code. Then the person signs in again.

How is it stopped? The person logs the app out under Mitt konto › Anslutna AI-appar. If Sedis closes the account, all its connections end at once. Changing the password or the two-factor authentication also ends them.

What has to be open in the network? The AI app's servers connect to mcp.sedis.se, and the person's browser to app.sedis.se. Nothing connects in to your network.

The tools

The app chooses tools by itself. Questions can be asked in Swedish or English.

Tool Fetches
bolagsanalys_list_companies Listed companies, by name
bolagsanalys_find_parameter Which key figures there are
bolagsanalys_get_data Figures for one company or for all
bolagsanalys_search_data Figures for up to 50 chosen companies
fastighetsbenchmark_search_property_units Your property units
fastighetsbenchmark_list_collections Your collections
fastighetsbenchmark_list_comparison_areas Your comparison areas
fastighetsbenchmark_find_parameter Which parameters there are
fastighetsbenchmark_get_comp_timeseries Values for property units, collections and comparison areas
fastighetsbenchmark_list_reference_zones Areas in published market data, by name
fastighetsbenchmark_list_municipalities Municipalities
fastighetsbenchmark_list_property_types Property types

A person who did not choose a product when signing in does not see its tools. The calls count towards the person's rate limit.

For those who build AI apps

The server uses streamable HTTP and OAuth 2.1 with PKCE. Start from the address: a call without a token is answered with 401 and a pointer to the server's metadata, which names the authorization server. Clients are identified by their published metadata document (CIMD) and have to be approved by Sedis, so write to us first.

A system without a person behind it should not use MCP. It calls the API with an organisation key.

Partner API v1

Version 1 is an OData API for Bolagsanalys. It has been in use since 2020 and stays as it is: nothing in it changes, and no end date has been set. If you are starting something new, use version 2, which also has Fastighetsbenchmark.

Address https://api.sedis.se/partnerapi
Sign-in Basic authentication, with a user name and password from info@sedis.se
Reference The v1 reference, where you can also try the calls
OpenAPI /openapi/v1.json
curl -u "$SEDIS_USER:$SEDIS_PASSWORD" "https://api.sedis.se/partnerapi/Companies?\$top=5"

The data

Sedis collects the figures in the interim reports of listed Nordic property companies. They come in three resources.

Companies has the companies.

Field What it is
CId Sedis's id for the company
Name Its name
IsInactive true for a company that no longer reports, often because it has been bought. Its old figures are still there.
NextReportDate When the next report is expected, or null
LatestReportUri The latest report as a PDF
CountryCode Its main country, in two letters
NationalIdentificationNumber The Swedish registration number, with 16 in front

Parameters has what is measured. Names and groups are in Swedish.

Field What it is Example
PId The code of the parameter RAF11
Name Its name Uppskjuten skatt
Grp The group. The first letter of the code is the same for the whole group. Resultaträkning
Info The unit MSEK
Period Kvartal, Ackumulerat (year to date) or Rullande12Man (rolling 12 months) Kvartal

The last two digits of the code are the unit and the period. Concepts explains them, and why it matters which period you choose.

Data has the figures. This is deferred tax, in SEK million, for one company in the third quarter of 2025:

{
  "CId": "rlpxmfsj",
  "PId": "RAF11",
  "Q": 20253,
  "Figure": 415.0,
  "Txt": null,
  "Modif": "2025-10-27"
}

CId, PId and Q together point out one figure. The value is in Figure, or in Txt for the few parameters that are texts. Modif is the day Sedis last changed it.

Fetch what is new, every night

Figures arrive when the companies report, usually within two days. Sometimes a company corrects an old quarter, or Sedis adds a parameter and fills it in backwards. Ask for what has changed, and you get all of that:

curl -G -u "$SEDIS_USER:$SEDIS_PASSWORD" "https://api.sedis.se/partnerapi/Data" \
  --data-urlencode '$filter=Modif ge 2025-12-02'
  • Use ge and the day of your last run. Modif has no time of day. With gt you lose what was changed later that same day. A few figures come twice, so overwrite on CId, PId and Q.
  • One call is enough for all companies and parameters. There is no need for one per company.
  • Run it at night, and ask for compressed answers. They are about a tenth of the size.

The first time, let us send you everything as a file instead of fetching it through the API. Write to info@sedis.se.

Choose what you get

Filters are written in OData. Spaces have to be encoded in the address. --data-urlencode does it in curl, and most libraries do it for you.

You want Add to the address
Three parameters for one company and quarter /Data?$filter=CId eq 'rlpxmfsj' and Q eq 20253 and PId in ('RAF11','FM11','NAL61')
The whole balance sheet for a quarter /Data?$filter=startswith(PId,'B') and Q eq 20253
Swedish companies only /Data?$filter=Company/CountryCode eq 'SE' and Q eq 20253
Only companies that still report /Companies?$filter=IsInactive eq false
The latest quarters first, with the company in each row /Data?$filter=PId eq 'RAF11'&$orderby=Q desc,Company/Name&$expand=Company&$top=200
Rows 1,501 to 2,000 /Data?$filter=startswith(PId,'B')&$skip=1500&$top=500

You get everything that matches in one answer, unless you divide it with $top and $skip. If an answer has @odata.nextLink, there is more to fetch at that address.

Examples

All three fetch what has changed since a certain day.

Python

import os

import requests

session = requests.Session()
session.auth = (os.environ["SEDIS_USER"], os.environ["SEDIS_PASSWORD"])

url, params = "https://api.sedis.se/partnerapi/Data", {"$filter": "Modif ge 2025-12-02"}
rows = []
while url:
    answer = session.get(url, params=params, timeout=300)
    answer.raise_for_status()
    body = answer.json()
    rows += body["value"]
    url, params = body.get("@odata.nextLink"), None

print(f"{len(rows)} figures")

C#

using System.Net;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text;
using System.Text.Json.Serialization;

var login = $"{Environment.GetEnvironmentVariable("SEDIS_USER")}:{Environment.GetEnvironmentVariable("SEDIS_PASSWORD")}";
using var http = new HttpClient(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.All });
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes(login)));

var rows = new List<Datum>();
string? url = "https://api.sedis.se/partnerapi/Data?$filter=" + Uri.EscapeDataString("Modif ge 2025-12-02");
while (url is not null)
{
    var answer = await http.GetFromJsonAsync<Answer>(url);
    rows.AddRange(answer!.Value);
    url = answer.NextLink;
}

Console.WriteLine($"{rows.Count} figures");

record Answer(List<Datum> Value, [property: JsonPropertyName("@odata.nextLink")] string? NextLink);
record Datum(string CId, string PId, int Q, decimal? Figure, string? Txt, DateOnly Modif);

R

library(httr)
library(jsonlite)

login <- authenticate(Sys.getenv("SEDIS_USER"), Sys.getenv("SEDIS_PASSWORD"))
answer <- GET("https://api.sedis.se/partnerapi/Data",
              query = list(`$filter` = "Modif ge 2025-12-02"), login)
stop_for_status(answer)

rows <- fromJSON(content(answer, "text", encoding = "UTF-8"))$value
cat(nrow(rows), "figures\n")

Move to version 2

There is no hurry, and the two can be used side by side. The data is the same, with clearer names.

Version 1 Version 2
Address /partnerapi/Data /v2/bolagsanalys/data
Sign-in User name and password Key in X-Api-Key
Filter $filter=CId eq 'x' and Q eq 20253 companyId=x&quarterId=20253
What is new $filter=Modif ge 2025-12-02 changedSince=2025-12-02
Rows value data, at most 500 at a time
Language Swedish English, or Swedish with lang=sv
Errors OData's format Problem Details
Version 1 Version 2
CId companyId
PId parameterCode (code in the list of parameters)
Q quarterId
Figure, Txt figure, text
Modif (a day) lastUpdatedUtc (a point in time)
Grp groupName
Info Not a field of its own. The second last digit of the code is the unit.
Period period

Versions and changes

What you can rely on

Under /v2, things are only added. What you have built goes on working.

This can happen at any time, and your program should take it in its stride:

  • new calls, and new filters and headers that you can leave out
  • new fields in an answer
  • new values last in an enumeration, and new error codes
  • higher rate limits

This does not happen under /v2:

  • a call, a field or a filter is renamed, removed or changes type
  • something that could be left out becomes required
  • a call does something else by default, or the largest page becomes smaller
  • an error gets another status code or another type
  • the sign-in changes

If we need to do any of that, it becomes /v3, and the two run side by side for a good while.

The version of the contract is in info.version in the specification. It changes only when the API does.

Changes

Version When What
2.12.0 December 2026 changedSince on the figures in Bolagsanalys: only what has changed since you last asked
2.11.0 December 2026 fields returns only the fields you ask for. The address of a property unit is only in address. The members of a collection are propertyUnitSedisIds. Also before any customer had started.
2.10.0 December 2026 English names for the last Swedish ones: samlingar is collections, jamforelseobjekt is comparison-areas, and the fields and filters follow. An exception to the rule above, made before any customer had started using them.
2.9.2 December 2026 Bolagsanalys shows the companies and years that your company has in Sedis
2.9.0 December 2026 A person signs in with their own account, for scripts and AI apps

Version 2 is new, and its earlier history is of no use to anybody. Version 1 has not changed since December 2023, when IsInactive was added to the companies.