# GET /v2/parse/formats

> List the file types parse reads.

GET `/v2/parse/formats`

**Authentication:** your key as a [bearer token](https://darkcrawl.dev/docs/api-reference/authentication/).

## Request

**curl**

```bash
curl https://api.darkcrawl.dev/v2/parse/formats \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"
```

**Python**

```python
import os
import requests

resp = requests.get(
    "https://api.darkcrawl.dev/v2/parse/formats",
    headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
    timeout=330,
)
print(resp.json())
```

**Node**

```javascript
const resp = await fetch("https://api.darkcrawl.dev/v2/parse/formats", {
  headers: {
    Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
  },
  signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());
```

## Response

Status `200`.

```json
{
  "success": true,
  "formats": [
    {
      "extension": ".pdf",
      "mimeType": "application/pdf"
    },
    {
      "extension": ".docx",
      "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
    },
    {
      "extension": ".png",
      "mimeType": "image/png",
      "needs": "image parser"
    }
  ],
  "data": {
    "formats": [
      {
        "format": "pdf",
        "kind": "document",
        "extensions": [
          ".pdf"
        ],
        "mimeTypes": [
          "application/pdf"
        ],
        "available": true
      }
    ]
  }
}
```

## Notes

- The reply here is cut short: `formats` has an entry for each extension, and `data.formats` one for each type of file.
- An image has `needs: "image parser"`: it is read only when the request sends the `image` parser. [Parse](https://darkcrawl.dev/docs/endpoints/parse/) has the rest.
