---
title: "CWE ID type"
method: GET
path: "/cwe/{id(s)}"
tags: ["CWE"]
---

# CWE ID type

`GET /cwe/{id(s)}`

This API endpoint returns metadata on specified CWE IDs.

## Path parameters

- `id(s)` string, required

## Response `200`

success

- object[]
  - `ID` string, integer, required — CWE ID
  - `Type` 'category' | 'view' | 'pillar_weakness' | 'base_weakness' | 'variant_weakness' | 'chain_weakness' | 'class_weakness' | 'compound_weakness' | 'deprecated_weakness' | 'deprecated_category' | 'deprecated_view', required — Type of CWE object

## Other responses

- `404` — CWE ID not found
- `500` — An Internal Server Error occurred

---

[API](https://skmtc.net/cwe-capec/apis/cwe-capec-api-1-0.md) · [All operations](https://skmtc.net/cwe-capec/apis/cwe-capec-api-1-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cwe-capec/cwe-capec-api-1-0/versions/f34b6370e957/schema)
