---
title: "查询服务列表"
method: GET
path: "/v3/console/ns/service/list"
tags: ["Nacos控制台注册中心服务相关API"]
---

# 查询服务列表

`GET /v3/console/ns/service/list`

通过该接口，可以查询指定命名空间下的服务列表。基于参数`withInstances`的不同，接口的返回内容可能不同，参数为`true`时，返回的列表中包含服务实例，对象为`ServiceDetailInfo`；参数为`false`时，返回的列表中不包含服务实例，对象为`ServiceView`；

## Response `200`

OK

- ResultObject
  - `code` integer
  - `message` string
  - `data` unknown

---

[API](https://skmtc.net/nacos/apis/nacos-api.md) · [All operations](https://skmtc.net/nacos/apis/nacos-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nacos/nacos-api/revisions/215ef0377c96/schema)
