---
title: "Get Git List"
method: GET
path: "/gits"
tags: ["Git"]
---

# Get Git List

`GET /gits`

Get a list of gits

## Query parameters

- `filter` string — Filter query
- `page` integer — Page number
- `size` integer — Page size
- `sort` string — Sort options

## Response `200`

OK

- ControllersListResponseGithubModelsGitDTO
  - `data` ModelsGitDTO[]
    - `Git` ModelsGit — The data to update
      - `_id` string, objectid — ID
      - `auth_type` string — Auth type
      - `auto_pull` boolean — Auto pull
      - `clone_logs` string[] — Clone logs
      - `created_at` string, date-time — Created timestamp
      - `created_by` string, objectid — Created by
      - `current_branch` string — Current branch
      - `error` string — Error
      - `name` string — Name
      - `password` string — Password
      - `refs` VcsGitRef[] — Refs
        - `full_name` string
        - `hash` string
        - `name` string
        - `remote_track` string
        - `timestamp` string, date-time
        - `type` string
      - `refs_updated_at` string, date-time — Refs updated at
      - `status` string — Status
      - `updated_at` string, date-time — Updated timestamp
      - `updated_by` string, objectid — Updated by
      - `url` string — URL
      - `username` string — Username
    - `spiders` ModelsSpider[] — Spiders
      - `_id` string, objectid — ID
      - `cmd` string — Execute command
      - `col_id` string, objectid — Data collection id
      - `col_name` string — Data collection name
      - `created_at` string, date-time — Created timestamp
      - `created_by` string, objectid — Created by
      - `database_id` string, objectid — Database Id
      - `db_name` string — Database name
      - `description` string — Description
      - `git_id` string, objectid — Related Git ID
      - `git_root_path` string — Git root path
      - `mode` 'random' | 'all' | 'selected-nodes' — Default task mode
      - `name` string — Spider name
      - `node_group_ids` string[] — Default node group ids, used in selected-node-groups mode
      - `node_ids` string[] — Default node ids, used in selected-nodes mode
      - `param` string — Default task param
      - `priority` integer — Priority
      - `project_id` string, objectid — Project ID
      - `template` string — Spider template
      - `template_params` ModelsSpiderTemplateParams — Spider template params
        - `allowed_domains` string — Allowed domains
        - `project_name` string — Project name
        - `spider_name` string — Spider name
        - `start_urls` string — Start urls
      - `updated_at` string, date-time — Updated timestamp
      - `updated_by` string, objectid — Updated by
  - `error` string
  - `message` string
  - `status` string
  - `total` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2026-07-17** `c7a4715c1f13` — 3 breaking, 1 warning, 12 info
  - for the `query` request parameter `page`, the type/format was changed from `integer`/`` to `integer`/`int32`
  - for the `query` request parameter `size`, the type/format was changed from `integer`/`` to `integer`/`int32`
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - deleted the `query` request parameter `all`
  - …12 more
- **2025-03-03** `14e4eafea538` — 1 breaking, 3 warning, 1 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `code` from the response with the `200` status
  - removed the optional property `data` from the response with the `200` status
  - removed the optional property `message` from the response with the `200` status
  - …1 more
- **2025-03-02** `526e5bdf6dee` — 1 breaking, 5 warning, 10 info
  - the `data` response's property type/format changed from `array`/`` to `object`/`` for status `200`
  - deleted the `query` request parameter `filter`
  - deleted the `query` request parameter `sort`
  - removed the optional property `error` from the response with the `200` status
  - …12 more

[Change history](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/gits/get.md)

---

[API](https://skmtc.dev/crawlab-team/apis/crawlab-api.md) · [All operations](https://skmtc.dev/crawlab-team/apis/crawlab-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crawlab-team/crawlab-api/revisions/c7a4715c1f13/schema)
