---
title: "🔒 Export IOCs from a given collection's relationship"
method: GET
path: "/collections/{id}/{relationship}/download/{format}"
---

# 🔒 Export IOCs from a given collection's relationship

`GET /collections/{id}/{relationship}/download/{format}`

## Request

- Base URL: `https://www.virustotal.com/api/v3`
- URL: `https://www.virustotal.com/api/v3/collections/{id}/{relationship}/download/{format}`
- Auth: none required
- TypeScript: <https://skmtc.dev/virustotal/apis/virustotal-api-v3/docs/collections/:id/:relationship/download/:format/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required
- `relationship` string, required
- `format` string, required

## Headers

- `x-apikey` string, required

## Response `200`

200

- object
  - `files` string[]

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/virustotal/apis/virustotal-api-v3.md) - [All operations](https://skmtc.dev/virustotal/apis/virustotal-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/virustotal/apis/virustotal-api-v3/revisions/d2de390925aa?raw)
