Skip to main content
GET
Vietnam GDP by sector — time series

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"

from
string

First period (inclusive), in the period format of type (2021-Q1, 2021-06, 2016). Omit to start from the oldest.

Example:

"2021-Q1"

to
string

Last period (inclusive). Omit to end at the latest.

Example:

"2026-Q3"

sectors
string

Comma-separated sectorCodes, e.g. total,manufacturing,services. Omit for all 28 rows. An unknown code returns 400.

Example:

"total,manufacturing"

Response

The series, oldest first.

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

Every period of type in one response, oldest first, for charts.

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.