Skip to main content
GET
Vietnam GDP by sector (NSO)

Authorizations

X-API-Key
string
header
required

Your HayInsights API key (prefixed apk_). Create and manage keys in the HayInsights dashboard (Account → API keys).

Send it in the X-API-Key header on every request to /openapi/v1/*. Which data domains you may access and your request quota are both governed by the subscription plan attached to the key — see the Plans & features and Rate limits guides.

Query Parameters

type
enum<string>
default:quarter

Period type. Case-insensitive.

Quarterly and year-to-date data start in 2021, the first year NSO reported on its revised GDP scale; earlier quarterly reports used the old scale (about 27% lower) and are not comparable. annual covers 2010 onward on the revised scale.

Available options:
quarter,
ytd,
annual
Example:

"quarter"

period
string

Period to return, in the format of type. Omit for the latest period. A valid period with no data returns 200 with sectors: []. Case-insensitive.

Example:

"2026-Q3"

Response

The 28 rows of one period.

Standard success envelope shared by every endpoint. Each operation's response wrapper extends this (via allOf) and adds a typed data property.

success
boolean
required

Always true for a successful response.

Example:

true

statusCode
integer
required

Mirrors the HTTP status code.

Example:

200

data
object
required

Vietnam GDP by sector for one period. When the period has no data, sectors is empty, the period fields are null and latestPeriod is still set.

meta
object

Response metadata for Vietnam GDP by sector: where the numbers come from, their units, which fields HayInsights computes, and how fresh the response is.