Greip icon

Greip

Get fraud prevention, threat intelligence, and risk scoring data from Greip.

Data Lookup → Country Lookup

AI-generated

Summary

Lookup country information based on the ISO 3166-1 alpha-2 country code.

Inputs

  • countryCode (required) — The ISO 3166-1 alpha-2 country code, e.g., 'US'.
  • additionalFields — Optional fields for additional information retrieval, such as language, flag, currency, or timezone. Specify these in a collection.
  • mode — Set to true for test mode; false for production mode.

Output shape

a record containing country details based on the lookup

Returns country information, with optional fields based on parameters specified. In test mode, results may not reflect live data.

Examples

Example 1: Fetching information for the United States, including flag and currency

countryCode: 'US', additionalFields: { params: ['flag', 'currency'], mode: false }

Discussion