> 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.

# List EdgeWorker IDs

GET https://{hostname}/edgeworkers/v1/ids

View a list of EdgeWorker IDs created for your account. You can choose to specify the group and resource tier in the request to filter the response.

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

## Request

### Query parameters

- `groupId` (integer, optional) — Unique identifier for the Akamai group containing the EdgeWorker.
- `resourceTierId` (integer, optional) — Unique identifier of the resource tier.
- `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

Describes a list of EdgeWorker IDs.

- `edgeWorkerIds` (list of IdsGetResponsesContentApplicationJsonSchemaEdgeWorkerIdsItems, required) — List of EdgeWorker IDs.

## Types

### IdsGetResponsesContentApplicationJsonSchemaEdgeWorkerIdsItems

- `accountId` (string, required) — Identifier for the account under which the EdgeWorker was created.
- `createdBy` (string, required) — Username of the person who created the EdgeWorker.
- `createdTime` (datetime, required) — ISO 8601 timestamp indicating when the EdgeWorker was created.
- `edgeWorkerId` (integer, required) — Unique identifier of the EdgeWorker.
- `groupId` (integer, required) — Group identified by the user who created the EdgeWorker.
- `lastModifiedBy` (string, required) — Username of the person who most recently updated the EdgeWorker.
- `lastModifiedTime` (datetime, required) — ISO 8601 timestamp indicating when the EdgeWorker was most recently modified.
- `name` (string, required) — Name given by the user who created the EdgeWorker.
- `resourceTierId` (integer, required) — Resource tier selected when the EdgeWorker was created.
- `description` (string, optional) — Description of the EdgeWorker.

## Examples

**Response**

```json
{
  "edgeWorkerIds": [
    {
      "accountId": "A-CCT9012",
      "createdBy": "jsmith",
      "createdTime": "2020-10-15T14:49:40Z",
      "edgeWorkerId": 1,
      "groupId": 72297,
      "lastModifiedBy": "jsmith",
      "lastModifiedTime": "2020-10-15T15:21:15Z",
      "name": "Ew_1",
      "resourceTierId": 100,
      "description": "Geo-blocking EdgeWorker"
    },
    {
      "accountId": "A-CCT7890",
      "createdBy": "jsmith",
      "createdTime": "2020-10-15T16:54:40Z",
      "edgeWorkerId": 2,
      "groupId": 72297,
      "lastModifiedBy": "jsmith",
      "lastModifiedTime": "2020-10-15T16:54:40Z",
      "name": "EdgeWorker #2",
      "resourceTierId": 200
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://{hostname}/edgeworkers/v1/ids"

querystring = {"groupId":"72297","resourceTierId":"100","accountSwitchKey":"{{accountSwitchKey}}"}

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

print(response.json())
```

```javascript
const url = 'https://{hostname}/edgeworkers/v1/ids?groupId=72297&resourceTierId=100&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?groupId=72297&resourceTierId=100&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?groupId=72297&resourceTierId=100&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?groupId=72297&resourceTierId=100&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?groupId=72297&resourceTierId=100&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D');

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

```csharp
using RestSharp;

var client = new RestClient("https://{hostname}/edgeworkers/v1/ids?groupId=72297&resourceTierId=100&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?groupId=72297&resourceTierId=100&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()
```