# List top product codes

List the FDA device product codes with the most 510(k) clearances.

Source: https://www.assyro.com/docs/api/fda-510k/top-product-codes

`POST https://api.assyro.com/v1/query` with `"operation": "device-510k.top-product-codes"`

> **Note:** Preview: `api.assyro.com` is not serving production data yet. Requests and responses on this page follow the published contract and may change before launch.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | yes | How many product codes, 1 to 100. |

### data.codes[]

| Field | Type | Required | Description |
|---|---|---|---|
| `code` | string | yes | The product code. |
| `count` | integer | yes | Its number of clearances. |

## Example request

curl:

```bash
curl https://api.assyro.com/v1/query \
  -H "Content-Type: application/json" \
  -d '{
    "version": 1,
    "operation": "device-510k.top-product-codes",
    "input": {
      "limit": 10
    }
  }'
```

Python:

```python
import requests

response = requests.post(
    "https://api.assyro.com/v1/query",
    json={
      "version": 1,
      "operation": "device-510k.top-product-codes",
      "input": {
        "limit": 10
      }
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/query", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "version": 1,
    "operation": "device-510k.top-product-codes",
    "input": {
      "limit": 10
    }
  }),
});
const result = await response.json();
```
