---
title: "Route Pgi"
method: GET
path: "/complexity/pgi.{extension}"
tags: ["EconomicComplexityModule"]
---

# Route Pgi

`GET /complexity/pgi.{extension}`

## Request

- Base URL: `https://api.datausa.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.datausa.io/complexity/pgi.{extension}`
- Auth: none declared

PGI 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.
- `gini_cube` string, required: The cube to retrieve the GINI data
- `gini_location` string, required: Geographical categories for the GINI calculation
- `gini_measure` string, required: Values to use for the PGI calculations
- `ascending` boolean, nullable: Outputs the results in ascending or descending order. If not defined, results will be returned sorted by level member.
- `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.
- `rank` boolean: Adds a 'Ranking' column to the data. This value represents the index in the whole result list, sorted by value.
- `cube` string, required: The cube to retrieve the main data
- `activity` string, required: Productivity categories for the RCA calculation
- `location` string, required: Geographical categories for the RCA calculation
- `measure` string, required: Values to use for the RCA calculations
- `locale` string, nullable: Defines the locale variation for the labels in the data
- `parents` boolean: Specifies if the response items should include the parent levels for activity and location.
- `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.
- `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

## 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/datausa-api.md) - [All operations](https://skmtc.dev/datausa/apis/datausa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/datausa/apis/datausa-api/revisions/433b34956d9c?raw)
