---
title: "Search Directories"
method: GET
path: "/directories"
tags: ["Source Files"]
---

# Search Directories

`GET /directories`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/directories`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/directories/get.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.source.file` (Read only).

Searches directories by name/title. Provide up to 50 `projectIds`, or omit them to search all projects you can access in the organization.

## Query parameters

- `filter` string, required
- `projectIds` string
- `limit` integer
- `offset` integer

## Response `200`

Matched directories

- DirectoryCollectionResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` DirectoryResource[], required
    - `data` Directory, required: Class DirectoryResponseModel
      - `id` integer
      - `projectId` integer
      - `branchId` integer, nullable
      - `directoryId` integer, nullable: Parent directory id
      - `name` string
      - `title` string: Title for translators
      - `exportPattern` string
      - `path` string
      - `priority` string
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable
  - `pagination` Pagination: Pagination Response Model
    - `offset` integer
    - `limit` integer

## Other responses

- `400`: Invalid Request Parameters
- `404`: One of the requested projects was not found
- `422`: The search was too broad to complete within the time limit

---

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