**版本：202201**

# 搜索 URL 重定向

**POST** `/openapi/2022-01/redirects/detail`

通过路径模式或关键词搜索 URL 重定向规则。

## 请求

**application/json**

**请求体 | 示例**

**请求体**

- `from_url` string

  Original URL, for example: `/collections/hot-selling`

```json
{
  "from_url": "string"
}
```

## 响应

**200 | 404**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `id` integer

  **默认值：** `0`

  **示例：** `373043233132924740`
- `store_id` integer

  **默认值：** `0`

  **示例：** `633130`
- `status` string

  **示例：** `open`
- `from_url` string

  **示例：** `/collections/hot-selling`
- `redirect_url` string

  **示例：** `/collections/test1567`

```json
{
  "id": 373043233132924740,
  "store_id": 633130,
  "status": "open",
  "from_url": "/collections/hot-selling",
  "redirect_url": "/collections/test1567"
}
```

```json
{
  "id": 373043233132924740,
  "store_id": 633130,
  "status": "open",
  "from_url": "/collections/hot-selling",
  "redirect_url": "/collections/test1567"
}
```

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```
