---
title: "Create a new spider"
method: POST
path: "/spiders"
tags: ["Spiders"]
---

# Create a new spider

`POST /spiders`

## Request body

- object
  - `name` string, required
  - `description` string
  - `project_id` string, required — MongoDB ObjectId represented as a hexadecimal string
  - `cmd` string
  - `priority` integer
  - `col_id` string — MongoDB ObjectId represented as a hexadecimal string
  - `git_id` string — MongoDB ObjectId represented as a hexadecimal string

## Response `200`

Spider created successfully

- Success
  - `code` integer
  - `message` string
  - `data` object

## Changes

- **2025-03-02** `526e5bdf6dee` — 3 breaking, 25 warning, 10 info
  - added the new required request property `name`
  - added the new required request property `project_id`
  - request body became required
  - removed the request property `data`
  - …34 more

[Change history](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/spiders/post.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/526e5bdf6dee/schema)
