---
title: "Export collection data"
method: GET
path: "/_fabric/{fabric}/_api/export/{collection}"
tags: ["Import Export"]
---

# Export collection data

`GET /_fabric/{fabric}/_api/export/{collection}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/export/:collection/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch a list of documents in the specified collection. If offset, limit and order are not specified their default values are applied.

## Path parameters

- `fabric` string, string, required
- `collection` string, string, required

## Query parameters

- `offset` string
- `limit` string
- `order` string

## Response `200`

Successfully fetched list of documents.

- ExportHttpExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` object[]
    - `_key` string
    - `name` string

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed to validate because you do not have access to the GeoFabric.
- `403`: Failed to validate because you do not have access to the server.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
