# New module Service API

**URL:** <https://community.openenergymonitor.org/t/new-module-service-api/10676>\
**Category:** Development\
**Tags:** emoncms\
**Created:** [14 April 2019 19:26 UTC](https://community.openenergymonitor.org/t/new-module-service-api/10676 "2019-04-14T19:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cagabi](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/cagabi/32/5438_2.png) [@cagabi](https://community.openenergymonitor.org/u/cagabi)\
**Post date:** [14 April 2019 19:26 UTC](https://community.openenergymonitor.org/t/new-module-service-api/10676/1 "2019-04-14T19:26:29Z")

</div>

Hi,

FYI we have developed a new module [ServiceAPI](https://github.com/carboncoop/emonCMS_serviceapi) that allows to get access to user’s data in an emonCMS installation by providing a master apikey (aka service\_apikey)  
and the username or email address of the user.

Our user case is to allow our members to access their MyHomeEnergyPlanner data from our dashboard (in a complete different web app). This way we don’t need to know the user write or read apikeys.

The service\_apikey can be sent in the query string of the URL or as a POST field (recommended)

So to access data this way you could do a curl to something like:  
[https://youremoncms.org/serviceapi/feed/list.json?service\_apikey=the\_key\_in\_your\_settings&usernameaccess=a\_user\_name](https://youremoncms.org/serviceapi/feed/list.json?service_apikey=the_key_in_your_settings&usernameaccess=a_user_name)

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [15 April 2019 18:32 UTC](https://community.openenergymonitor.org/t/new-module-service-api/10676/2 "2019-04-15T18:32:43Z")

</div>

Nice idea! thanks again for sharing 🙂
