# Agile Outgoing Octopus Help Needed

**URL:** <https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974>\
**Category:** General\
**Created:** [13 September 2021 18:41 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974 "2021-09-13T18:41:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [13 September 2021 18:41 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/1 "2021-09-13T18:41:16Z")

</div>

Looking for some help on reading the Agile Outgoing Octopus Tariff rates, has anyone done this?

thanks

Dave

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 September 2021 18:47 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/2 "2021-09-13T18:47:39Z")

</div>

You might get more answers from the Agile forum, a lot of users there are on Outgoing.

> **[Octopus Smart Energy forum](https://forum.octopus.energy)**
>
> A place to share ideas and discuss use of the Octopus Smart tariffs and the products and services connected to it via the API

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 September 2021 20:51 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/3 "2021-09-13T20:51:14Z")

</div>

Find the docs on the API. It will probably give curl commands for accessing the server. Once you know that then implementing it in node-red should not be difficult.

---

<div class="post-metadata">

**Author:** ![Scotty](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scotty/32/48333_2.png) [@Scotty](https://discourse.nodered.org/u/Scotty)\
**Post date:** [20 September 2021 09:20 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/4 "2021-09-20T09:20:39Z")

</div>

I have a flow which goes and grabs the next 24 hours of agile rates and displays them on a graph. (you can get all sorts of stuff by modifying the agile API endpoint. If this helps.

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42b5a18f334f2cac820bab022fb775a4fea8300e.png)

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c4df03449cf14937ac7a006d3377043fffbef81.png)

```auto
[{"id":"6280d183081c4f9d","type":"http request","z":"d438e6cd.bd7a78","name":"Octopus Agile Rates","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.octopus.energy/v1/products/AGILE-18-02-21/electricity-tariffs/E-1R-AGILE-18-02-21-C/standard-unit-rates/?page_size=48","tls":"","persist":false,"proxy":"","authType":"basic","credentials":{},"x":360,"y":660,"wires":[["bb2c97e31b27fbd3"]]},{"id":"bb2c97e31b27fbd3","type":"function","z":"d438e6cd.bd7a78","name":"Exract Half hour Rates","func":"var graph = [{\n \"series\": [\"Price\"],\n \"data\": [[] ],\n \"labels\": []\n}];\n\nvar i;\nfor (i = 0; i < msg.payload.results.length; i++) {\n \n graph[0][\"data\"][0].push({ \"x\": Date.parse(msg.payload.results[i].valid_from), \"y\": msg.payload.results[i].value_inc_vat });\n\n}\n\nreturn [{payload: new Array(graph[0])}];\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":720,"y":660,"wires":[["3b1fae78e34abba3"]]},{"id":"3b1fae78e34abba3","type":"ui_chart","z":"d438e6cd.bd7a78","name":"Octopus Agile Rates","group":"651282d1.fda7fc","order":5,"width":0,"height":0,"label":"Octopus Agile Rates","chartType":"line","legend":"false","xformat":"dd HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"40","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1140,"y":660,"wires":[[]]},{"id":"567e28729b055a5f","type":"inject","z":"d438e6cd.bd7a78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"5","topic":"","payloadType":"date","x":120,"y":660,"wires":[["6280d183081c4f9d"]]},{"id":"6f79fdf78324e10b","type":"inject","z":"d438e6cd.bd7a78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payloadType":"date","x":120,"y":760,"wires":[["6280d183081c4f9d"]]},{"id":"651282d1.fda7fc","type":"ui_group","name":"Power","tab":"dcc1884b.34cd38","order":3,"disp":true,"width":"6","collapse":false},{"id":"dcc1884b.34cd38","type":"ui_tab","name":"Scottworld","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [12 October 2021 08:45 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/5 "2021-10-12T08:45:02Z")

</div>

Hi, i have this working for inciming electric costs but not for export prices.

---

<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:** [11 December 2021 08:45 UTC](https://discourse.nodered.org/t/agile-outgoing-octopus-help-needed/50974/6 "2021-12-11T08:45:05Z")

</div>

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