---
title: "Route Relatedness Subnational"
method: GET
path: "/complexity/relatedness_subnational.{extension}"
tags: ["EconomicComplexityModule"]
---

# Route Relatedness Subnational

`GET /complexity/relatedness_subnational.{extension}`

Subnational Relatedness calculation endpoint.

## Path parameters

- `extension` 'csv' | 'csvbom' | 'xlsx' | 'jsonarrays' | 'jsonrecords' | 'parquet' | 'tsv' | 'tsvbom', required — Define the extensions available to the user and how to response to them.

## Query parameters

- `alias` string[] — Changes the label of a Level in the response tidy data dictionaries.
- `filter` string[] — Limits the results returned by the output. Only members of a dimension matching one of the parameters will be kept in the response.
- `cutoff` number — The threshold value at which a country's RCA is considered relevant for an economic activity, for the purpose of calculating the Complexity Indicators.
- `ascending` boolean, nullable — Outputs the results in ascending or descending order. If not defined, results will be returned sorted by level member.
- `rank` boolean — Adds a 'Ranking' column to the data. This value represents the index in the whole result list, sorted by value.
- `subnat_cube` string, required — The cube to retrieve the main data
- `subnat_activity` string, required — Productivity categories for the RCA calculation
- `subnat_location` string, required — Geographical categories for the RCA calculation
- `subnat_measure` string, required — Measurement to use for the RCA calculations
- `subnat_cuts` string[] — Limits the results returned by the output. Only members of a dimension matching one of the parameters will be kept in the response.
- `locale` string, nullable — Locale for the labels in the data
- `parents` boolean — Specifies if the response items should include the parent levels for activity and location.
- `subnat_threshold` string[] — Restricts the data to be used in the calculation, to rows where the sum of all values through the other dimension fulfills the condition.
- `global_cube` string, required — The cube to retrieve the global data
- `global_activity` string, required — Productivity categories for the RCA calculation
- `global_location` string, required — Geographical categories for the RCA calculation
- `global_measure` string, required — Measurement to use for the RCA calculations
- `global_cuts` string[] — Limits the results returned by the output. Only members of a dimension matching one of the parameters will be kept in the response.
- `global_threshold` string[] — Restricts the data to be used in the calculation, to rows where the sum of all values through the other dimension fulfills the condition.
- `token` string, nullable
- `top` string

## Headers

- `authorization` string, nullable
- `x-tesseract-jwt` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/datausa/apis/fastapi.md) · [All operations](https://skmtc.dev/datausa/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datausa/fastapi/revisions/6d014a4f1cd1/schema)
