> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://akamai.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server.

# Get the resource tier

GET https://{hostname}/edgeworkers/v1/ids/{edgeWorkerId}/resource-tier

View the details of the resource tier assigned to the EdgeWorker ID.

Reference: https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/edge-worker-i-ds/get-id-resource-tier

## Request

### Path parameters

- `edgeWorkerId` (string, required)

### Query parameters

- `accountSwitchKey` (string, optional) — For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).

## Response

### 200

The resource tier defines the limits and billing rate applied to an EdgeWorker.

- `edgeWorkerLimits` (list of IdsEdgeWorkerIdResourceTierGetResponsesContentApplicationJsonSchemaEdgeWorkerLimitsItems, required) — List of EdgeWorker limits.
- `resourceTierId` (integer, required) — Unique identifier of the resource tier.
- `resourceTierName` (string, required) — Name of the resource tier.

## Types

### IdsEdgeWorkerIdResourceTierGetResponsesContentApplicationJsonSchemaEdgeWorkerLimitsItems

Provides details for an EdgeWorker limit.

- `limitName` (string, required) — Name of the limit.
- `limitValue` (integer, required) — Value of the limit.
- `limitUnit` (enum, optional) — Unit of the limit, either `BYTE`, `MILLISECOND`, or `COUNT`.
  - Allowed values: `BYTE`, `MILLISECOND`, `COUNT`

## Examples

**Response**

```json
{
  "edgeWorkerLimits": [
    {
      "limitName": "Maximum CPU time during initialization",
      "limitValue": 30,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum wall time during initialization",
      "limitValue": 100,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum number of HTTP sub-requests allowed in parallel per EdgeWorker ID",
      "limitValue": 0,
      "limitUnit": "COUNT"
    },
    {
      "limitName": "Maximum memory usage per event handler",
      "limitValue": 1310720,
      "limitUnit": "BYTE"
    },
    {
      "limitName": "Maximum CPU time per event handler",
      "limitValue": 50,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum wall time per event handler",
      "limitValue": 4000,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum number of HTTP sub-requests allowed from a parent request",
      "limitValue": 1,
      "limitUnit": "COUNT"
    },
    {
      "limitName": "Maximum number of HTTP sub-requests allowed in parallel with the parent request",
      "limitValue": 1,
      "limitUnit": "COUNT"
    },
    {
      "limitName": "Maximum wall time per HTTP sub-request",
      "limitValue": 1000,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum response size per HTTP sub-request",
      "limitValue": 1048576,
      "limitUnit": "BYTE"
    },
    {
      "limitName": "Maximum memory usage for responseProvider",
      "limitValue": 2097152,
      "limitUnit": "BYTE"
    },
    {
      "limitName": "Maximum CPU time for responseProvider",
      "limitValue": 100,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum wall time for responseProvider",
      "limitValue": 4000,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum number of HTTP sub-requests allowed for responseProvider",
      "limitValue": 50,
      "limitUnit": "COUNT"
    },
    {
      "limitName": "Maximum number of HTTP sub-requests allowed in parallel for responseProvider",
      "limitValue": 5,
      "limitUnit": "COUNT"
    },
    {
      "limitName": "Maximum walltime for HTTP sub-requests during the execution of the responseProvider event handler",
      "limitValue": 1000,
      "limitUnit": "MILLISECOND"
    },
    {
      "limitName": "Maximum response size for HTTP sub-requests during the responseProvider event handler",
      "limitValue": 1048576,
      "limitUnit": "BYTE"
    }
  ],
  "resourceTierId": 200,
  "resourceTierName": "Dynamic Compute"
}
```

**SDK Code**

```python
import requests

url = "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier"

querystring = {"accountSwitchKey":"{{accountSwitchKey}}"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript
const url = 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/resource-tier?accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```