---
title: "Search Branches"
method: GET
path: "/branches"
tags: ["Source Files"]
---

# Search Branches

`GET /branches`

## Request

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

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

Searches branches 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 branches

- EnterpriseBranchSearchCollectionResource: 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` union[], required
    - union
      - FileBasedBranchResource: 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` FileBasedProjectBranch, required
          - `id` integer
          - `projectId` integer
          - `name` string
          - `title` string
          - `createdAt` string, date-time
          - `updatedAt` string, date-time, nullable
          - `exportPattern` string
          - `priority` string
      - StringBasedBranchResource: 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` StringBasedProjectBranch, required
          - `id` integer
          - `projectId` integer
          - `name` string
          - `title` string
          - `createdAt` string, date-time
          - `updatedAt` string, date-time, nullable
          - `isProtected` boolean
  - `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)
