---
title: Get the list of SPDX licenses
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Static Analysis
---

# Get the list of SPDX licenses{% #get-the-list-of-spdx-licenses %}
Copy pageCopied
{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                               |
| ----------------- | -------------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/static-analysis-sca/licenses/list |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/static-analysis-sca/licenses/list |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/static-analysis-sca/licenses/list      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/static-analysis-sca/licenses/list      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/static-analysis-sca/licenses/list  |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/static-analysis-sca/licenses/list     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/static-analysis-sca/licenses/list |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/static-analysis-sca/licenses/list |

### Overview



### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
The top-level response object returned by the licenses list endpoint, containing the array of supported SPDX licenses.

| Parent field | Field                          | Type     | Description                                                                           |
| ------------ | ------------------------------ | -------- | ------------------------------------------------------------------------------------- |
|              | data [*required*]         | object   | The data object in a licenses list response, containing the list of SPDX licenses.    |
| data         | attributes [*required*]   | object   | The attributes of the licenses list response, containing the array of SPDX licenses.  |
| attributes   | licenses [*required*]     | [object] | The list of SPDX licenses returned by the API.                                        |
| licenses     | display_name [*required*] | string   | The human-readable name of the license.                                               |
| licenses     | identifier [*required*]   | string   | The SPDX identifier of the license.                                                   |
| licenses     | short_name [*required*]   | string   | The short name of the license, typically matching the SPDX identifier.                |
| data         | id [*required*]           | string   | The unique identifier for this licenses list response.                                |
| data         | type [*required*]         | enum     | The type identifier for license list responses. Allowed enum values: `licenserequest` |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "licenses": [
        {
          "display_name": "MIT License",
          "identifier": "MIT",
          "short_name": "MIT"
        }
      ]
    },
    "id": "0190a3d4-1234-7000-8000-000000000000",
    "type": "licenserequest"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/static-analysis-sca/licenses/list" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" 
                
{% /tab %}
