---
title: "Get tree-sitter WASM file"
method: GET
path: "/api/v2/static-analysis/static-analysis-server/tree-sitter-wasm/{file}"
tags: ["Security Monitoring"]
---

# Get tree-sitter WASM file

`GET /api/v2/static-analysis/static-analysis-server/tree-sitter-wasm/{file}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/static-analysis/static-analysis-server/tree-sitter-wasm/{file}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `code_analysis_read`

Download the WebAssembly binary for a tree-sitter grammar by file name.

## Path parameters

- `file` string, required

## Response `200`

BLOB with the content of the WASM file

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
