# GET nodes of Admin API broken?

**URL:** <https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215>\
**Category:** General\
**Created:** [2 November 2020 14:46 UTC](https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215 "2020-11-02T14:46:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [2 November 2020 14:46 UTC](https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215/1 "2020-11-02T14:46:00Z")

</div>

I have been trying to use more of the Admin API in reworking my backup flows solution. The GET flows, Get (specific) flow content methods work. But when I try the GET nodes (list) method, I get HTML back? Not a list of nodes in use... Am I misunderstanding the expected output from said method? Or is it broken? I recall that @Colin noted the Admin API needs some TLC.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 November 2020 14:47 UTC](https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215/2 "2020-11-02T14:47:56Z")

</div>

Make sure you have set the `Accept` header to `application/json` in order to get the list of nodes rather than their html content.

> **[GET /nodes : Node-RED](https://nodered.org/docs/api/admin/methods/get/nodes/)**

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [2 November 2020 14:48 UTC](https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215/3 "2020-11-02T14:48:53Z")

</div>

Ah! Thanks! Humm.... so flows/flow methods don't care, or the request node defaults to accept-app/json?

```auto
[
    {
        "id": "795e98a6.d55df8",
        "type": "http request",
        "z": "d9c9f5b0.34c538",
        "name": "Flows",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://localhost:1880/flows",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "x": 630,
        "y": 280,
        "wires": [
            [
                "999b9afe.6fb578"
            ]
        ]
    }
]

```

Yeah does not care.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 November 2020 14:49 UTC](https://discourse.nodered.org/t/get-nodes-of-admin-api-broken/35215/4 "2020-11-16T14:49:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
