Allowed values for API parameters with a fixed set of options
lang
and not_lang
)lang
and not_lang
parameters accept two-letter ISO 639-1 language codes.
You can use these parameters to include or exclude articles in specific
languages.
cn
and
tw
, respectively. This is the only difference between our codes and the ISO
639-1 standard.Code | Language |
---|---|
ar | Arabic |
cn | Chinese (China) |
de | German |
en | English |
es | Spanish |
fr | French |
it | Italian |
ja | Japanese |
pt | Portuguese |
tw | Chinese (Taiwan) |
uk | Ukrainian |
lang=en
lang=en,es
not_lang=fr
country
and not_country
)country
and not_country
parameters accept two-letter ISO 3166-1 alpha-2
country codes. You can use these parameters to include or exclude articles from
specific countries.
Code | Country |
---|---|
AU | Australia |
BR | Brazil |
CA | Canada |
DE | Germany |
FR | France |
GB | United Kingdom |
IN | India |
JP | Japan |
UA | Ukraine |
US | United States |
country=US
country=US,GB
not_country=CA
news_type
)news_type
parameter filters results based on the type of news source. It
accepts one or more of the following values:
news_type=Tech News and Updates
news_type=General News Outlets,Tech News and Updates