✨ We just launched fimo.ai - an AI Website Builder to create websites in minutes - Try it now

Strapi plugin logo for Region

Region

Cascading Country → Region selector as a Strapi 5 custom field. Pick a country, then pick a region — stored as structured JSON, auto-parsed in API responses.

thumbnail for Region

Region Select

Strapi Plugin Region

Cascading Country → Region selector as a Strapi 5 custom field. Pick a country, then pick a region — stored as structured JSON, auto-parsed in API responses.

MIT License Strapi 5

Country and Region selector with autocomplete

Features

  • Two-stage cascading selector: Country → Region with autocomplete
  • Country filtering: show all, only selected, or all except selected countries
  • ISO 3166-1 alpha-2 country codes with full country and region datasets
  • Stored as a single string field — no extra tables or relations
  • Automatic JSON parsing in API responses (Koa middleware)
  • Region overrides: replace default regions for any country with custom entries
  • Formatted "Country, Region" column in Content Manager list view

Installation

npm install @hitkey-io/strapi-plugin-region

Or with yarn:

yarn add @hitkey-io/strapi-plugin-region

Configuration

Field options in Content-Type Builder

Adding the field

  1. Open the Content-Type Builder
  2. Add a new Custom field → Region Select
  3. Configure country filtering:
OptionDescription
All countriesShow every country in the selector (default)
Only selectedShow only the listed country codes
All except selectedShow all countries except the listed ones

Country codes are entered one per line in ISO alpha-2 format (e.g. US, TR, AE).

Region overrides

You can replace the default region list for any country with your own custom entries. In the Content-Type Builder, find the Region overrides section and enter one entry per line in the format:

CC:code:Name

For example:

TR:ALN:Alanya
TR:ANT:Antalya
TR:KMR:Kemer

This replaces all default regions for that country (TR in this case) with only the listed ones. Countries without overrides keep their default region lists.

Region overrides in Content-Type Builder

Plugin config

No additional plugin configuration is needed. The plugin works out of the box once installed.

Stored value format

The field stores a JSON string in the database:

{ "country": "AE", "region": "AZ" }

API response

The plugin automatically parses stored JSON strings into objects in all /api/* responses via Koa middleware:

{
  "data": {
    "id": 1,
    "name": "Burj Al Arab Jumeirah",
    "location": {
      "country": "AE",
      "region": "AZ"
    }
  }
}

No extra configuration or population is required — it works automatically for all content types using the Region Select field.

Compatibility

RequirementVersion
Strapi5.x
Node.js20+

License

MIT

Install now

npm install @hitkey-io/strapi-plugin-region

STATS

3 GitHub starsNot downloaded this week

Last updated

8 days ago

Strapi Version

>=5.0.0 <6.0.0-0||>=5.0.0-rc <6.0.0-0

Author

github profile image for Nikolay Larsen
Nikolay Larsen

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.