API documentation
    API documentation
    • Back to home
    • Region
    • Get location by region
      GET
    • Get all region
      GET

      Get location by region

      GET
      https://api.everabyte.io/api/region/1
      This endpoint retrieves details for a specific region based on its ID.
      Endpoint: /region/{regionId}
      Method: GET
      Path Parameters:
      regionId (required, integer): The ID of the region to retrieve. Example: 1
      Example Request:
      GET /region/1
      This request retrieves details for the region with ID 1.
      Response Body Example:
      [
          {
              "id": 1,
              "regionId": 1,
              "regionCode": "eu-central-1",
              "countryCode": "nl",
              "name": {
                  "en": "Amsterdam",
                  "fr": "Amsterdam"
              },
              "isActive": true
          },
          {
              "id": 2,
              "regionId": 1,
              "regionCode": "eu-central-2",
              "countryCode": "de",
              "name": {
                  "en": "Frankfurt",
                  "fr": "Francfort"
              },
              "isActive": true
          },
          {
              "id": 3,
              "regionId": 1,
              "regionCode": "eu-west-1",
              "countryCode": "gb",
              "name": {
                  "en": "London",
                  "fr": "Londres"
              },
              "isActive": true
          },
          {
              "id": 4,
              "regionId": 1,
              "regionCode": "eu-west-2",
              "countryCode": "fr",
              "name": {
                  "en": "Paris",
                  "fr": "Paris"
              },
              "isActive": true
          }
      ]
      Response Codes:
      200 OK: Successfully retrieved region details.
      404 Not Found: Region with the specified ID not found.
      500 Internal Server Error: Server error.

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.everabyte.io/api/region/1'

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Example
      {}
      Modified at 2025-06-30 21:06:00
      Next
      Get all region
      Built with