{"id":759,"date":"2023-09-07T12:17:52","date_gmt":"2023-09-07T11:17:52","guid":{"rendered":"https:\/\/www.mycelium.es\/api-librerias\/"},"modified":"2023-11-13T09:42:08","modified_gmt":"2023-11-13T08:42:08","slug":"api-reference","status":"publish","type":"page","link":"https:\/\/www.mycelium.es\/en\/api-reference\/","title":{"rendered":"API &#8211; Reference"},"content":{"rendered":"<section class=\"wpb-content-wrapper\"><p>[vc_section full_width=&#8221;stretch_row_content&#8221; el_id=&#8221;guia-rapida&#8221;][vc_row][vc_column][vc_tta_tour controls_size=&#8221;md&#8221; active_section=&#8221;1&#8243; no_fill_content_area=&#8221;true&#8221; el_class=&#8221;tour-guia-rapida&#8221;][vc_tta_section title=&#8221;Overview&#8221; tab_id=&#8221;overview&#8221;][vc_column_text]<\/p>\n<h1>API \u2013 Reference<\/h1>\n<div>\n<p>Find detailed information about the SDS APIs including authentication, methods, parameters, response formats and errors. <strong>Full user guides and manuals are available for active partners.<\/strong><\/p>\n<\/div>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Devices API&#8221; tab_id=&#8221;devices-api&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level1\">DISPOSITIVOS API<\/h3>\n<div>\n<p>The Devices API is based on\u00a0<a href=\"http:\/\/www.sentilo.io\/\" target=\"_blank\" rel=\"noopener\">Sentilo<\/a>, an open source sensor and actuator platform led by Barcelona City Council and backed by a community of companies and individuals that ensure continuous innovation and support. A complete description of all its objects and methods can be found <a href=\"http:\/\/www.sentilo.io\/xwiki\/bin\/view\/APIDocs\/WebHome\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h4>Resources<\/h4>\n<p><strong>Existing resources:<\/strong><\/p>\n<ul>\n<li>Sensor (device): hardware or software entity with the ability to generate a reading.<\/li>\n<li>Component: Element of hardware or software, with geospatial location (fixed or mobile) that can contain one or more Sensors.<\/li>\n<li>Provider: Entity that represents a group of components and provides them with connectivity with the platform. Used to send data and receive commands.<\/li>\n<li>Client Application\/Module: entity that consumes the data processed by the platform.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>Available actions:<\/h4>\n<p><strong><em>Applications\/Modules:<\/em><\/strong><\/p>\n<ul>\n<li>Send orders to providers\/sensors (order service).<\/li>\n<li>Receive data from providers\/sensors (data service).<\/li>\n<li>Subscribe to system events (subscribe service).<\/li>\n<\/ul>\n<p><strong><em>Proveedores\/sensores:<\/em><\/strong><\/p>\n<ul>\n<li>Register to the platform (catalog service).<\/li>\n<li>Subscribe to system events (subscribe service).<\/li>\n<li>Publish data (data service).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>Identifier:<\/h4>\n<p>Each resource has a URL that uniquely identifies it within the system based on the format described next.<\/p>\n<\/div>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/&#x5B;service] <\/pre>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<h4>Data formats<\/h4>\n<p>The API currently supports JSON as default data format.[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/service\/&#x5B;id_provider] ?&#x5B;PARAMETER]=&#x5B;VALUE] <\/pre>\n<p>[\/vc_column_text][vc_column_text]Example data in JSON format:[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">{\u00abobservations\u00bb:&#x5B;\r\n{\u00abvalue\u00bb:\u00ab12.3\u00bb,\u00abtimestamp\u00bb:\u00ab17\/09\/2012T12:34:45\u00bb}\r\n]} <\/pre>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Applications API&#8221; tab_id=&#8221;applications-api&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level1\">APPLICATIONS API<\/h3>\n<div>\n<p>Find an overview of methods and objects related to deployment sites, sensors and measurements available to developers who want to design external applications in their platform of choice or integrate existing ones.<\/p>\n<p><strong>Full API reference is available on the platform web interface.<\/strong><\/p>\n<\/div>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Security&#8221; tab_id=&#8221;security&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level2\">Security<\/h3>\n<div>\n<p>The platform will validate any request received by the system based on the AAA architecture (Authentication, Authorization, and Accounting).<br \/>\n<strong>Authentication tokens are provided when a partner becomes active on the platform.<\/strong><\/p>\n<\/div>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Installations&#8221; tab_id=&#8221;installations&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level3\">Installations<\/h3>\n<div>\n<p><strong>INSTALLATIONS (Deployment Sites)<br \/>\n<\/strong>Through this service, you can retrieve the installations list and related details associated with your user. All requests for this service must have the following format:<\/p>\n<\/div>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/installations?&#x5B;PARAMETER]=&#x5B;VALUE] <\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>Parameters:<\/strong><\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Mandatory<\/strong><\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>Used to filter the list by the installation unique identifier<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In addition to the HTTP status code, this action returns the list of installations for which we have read permission. Each list element will have the following structure:<\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>Unique installation identifier<\/td>\n<\/tr>\n<tr>\n<td>name<\/td>\n<td>Installation name<\/td>\n<\/tr>\n<tr>\n<td>typology<\/td>\n<td>Installation typology<\/td>\n<\/tr>\n<tr>\n<td>address<\/td>\n<td>Address of the installation<\/td>\n<\/tr>\n<tr>\n<td>zip<\/td>\n<td>ZIP code of the installation<\/td>\n<\/tr>\n<tr>\n<td>city<\/td>\n<td>City of the installation<\/td>\n<\/tr>\n<tr>\n<td>State<\/td>\n<td>State of the installation<\/td>\n<\/tr>\n<tr>\n<td>country<\/td>\n<td>Country of the installation<\/td>\n<\/tr>\n<tr>\n<td>latitude<\/td>\n<td>GPS coordinates of the installation, latitude<\/td>\n<\/tr>\n<tr>\n<td>longitude<\/td>\n<td>GPS coordinates of the installation, longitude<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Example: <\/strong>To retrieve details of the installation with ID 142, we have to send the following request::<\/p>\n<\/div>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/installations?id=142<\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>In the response we will receive:<\/strong>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">{\u00abinstallations\u00bb:&#x5B;\r\n{\r\n\u00abid\u00bb:142,\r\n\u00abname\u00bb:\u00abDemo installation\u00bb,\r\n\u00abtypology\u00bb:\u00abDatacenter\u00bb,\r\n\u00abaddress\u00bb:\u00abPasseig de Gr\u00e0cia, 47\u00bb,\r\n\u00abzip\u00bb:\u00ab08007\u00bb,\r\n\u00abcity\u00bb:\u00abBarcelona\u00bb,\r\n\u00abstate\u00bb:\u00abBarcelona\u00bb,\r\n\u00abcountry\u00bb:\u00abEspa\u00f1a\u00bb,\r\n\u00ablatitude\u00bb:41.392408931363,\r\n\u00ablongitude\u00bb:2.1645916698617\r\n}\r\n]} <\/pre>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Sensors&#8221; tab_id=&#8221;sensors&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level3\">Sensors<\/h3>\n<div>\n<p><span style=\"font-size: inherit;\">Through this service, you can retrieve the sensors list and related details associated with your user. <strong>All requests for this service must have the following format:<\/strong><\/span><\/p>\n<\/div>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/sensors?&#x5B;PARAMETER]=&#x5B;VALUE] <\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>Parameter<\/strong><strong>s:<\/strong><\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Mandatory<\/strong><\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>Used to filter the list by the sensor unique identifier<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>installationid<\/td>\n<td>Used to filter the list by the installation unique identifier<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In addition to the HTTP status code, this action returns the list of installations for which we have read permission. Each list element will have the following structure:<\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>Unique sensor identifier<\/td>\n<\/tr>\n<tr>\n<td>installationId<\/td>\n<td>Unique installation identifier<\/td>\n<\/tr>\n<tr>\n<td>name<\/td>\n<td>Name of the sensor<\/td>\n<\/tr>\n<tr>\n<td>measurementUnit<\/td>\n<td>Measurement unit associated with the sensor<\/td>\n<\/tr>\n<tr>\n<td>granularity<\/td>\n<td>Time interval (seconds) between two measurements<\/td>\n<\/tr>\n<tr>\n<td>multiplier<\/td>\n<td>Value which any measurement will be multiplied by<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>Constant value added to any measurement after the operation above<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Example:<\/strong>\u00a0To retrieve list of sensors associated with the installation with ID 142, we have to send the following request:[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/sensors?installationid=142<\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>In the response we will receive:<\/strong>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">{\u00absensors\u00bb:&#x5B;\r\n{\r\n\u00abid\u00bb:1517,\r\n\u00abinstallationId\u00bb:142,\r\n\u00abname\u00bb:\u00abDatacenter temperature\u00bb,\r\n\u00abmeasurementUnit\u00bb:\u00ab\u00b0C\u00bb,\r\n\u00abgranularity\u00bb:900,\r\n\u00abmultiplier\u00bb:1,\r\n\u00aboffset\u00bb:0\r\n},{\r\n\u00abid\u00bb:1518,\r\n\u00abinstallationId\u00bb:142,\r\n\u00abname\u00bb:\u00abDatacenter humidity\u00bb,\r\n\u00abmeasurementUnit\u00bb:\u00ab%\u00bb,\r\n\u00abgranularity\u00bb:900,\r\n\u00abmultiplier\u00bb:1,\r\n\u00aboffset\u00bb:0\r\n}\r\n]} <\/pre>\n<p>[\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Measurements&#8221; tab_id=&#8221;measurements&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h3 class=\"level3\">Measurements<\/h3>\n<div>\n<p>Through this service, you can retrieve the measurements list received through the platform. <strong>All requests for this service must have the following format:<\/strong><\/p>\n<\/div>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/measurements?&#x5B;PARAMETER]=&#x5B;VALUE] <\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>Parameters<\/strong><\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Mandatory<\/strong><\/td>\n<\/tr>\n<tr>\n<td>sensorid<\/td>\n<td>Used to select the sensor<\/td>\n<td><strong>Yes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>begin<\/td>\n<td>Begin of the time interval, EPOCH format<\/td>\n<td><strong>Yes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>end<\/td>\n<td>End of the time interval, EPOCH format<\/td>\n<td><strong>Yes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>sampling<\/td>\n<td>Output data format (view table below)<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>timeoffset<\/td>\n<td>Time offset (seconds) applied to any timestamp and sampling interval<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Available output data formats<\/strong><\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0 (Default)<\/td>\n<td>Individual measurements (raw values)<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>Hourly sampling, average value<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>Hourly sampling, minimum value<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>Hourly sampling, maximum value<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>Hourly sampling, minimum and maximum value<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>Daily sampling, average value<\/td>\n<\/tr>\n<tr>\n<td>21<\/td>\n<td>Daily sampling, minimum value<\/td>\n<\/tr>\n<tr>\n<td>22<\/td>\n<td>Daily sampling, maximum value<\/td>\n<\/tr>\n<tr>\n<td>23<\/td>\n<td>Daily sampling, minimum and maximum value<\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td>Monthly sampling, average value<\/td>\n<\/tr>\n<tr>\n<td>31<\/td>\n<td>Monthly sampling, minimum value<\/td>\n<\/tr>\n<tr>\n<td>32<\/td>\n<td>Monthly sampling, maximum value<\/td>\n<\/tr>\n<tr>\n<td>33<\/td>\n<td>Monthly sampling, minimum and maximum value<\/td>\n<\/tr>\n<tr>\n<td>40<\/td>\n<td>Yearly sampling, average value<\/td>\n<\/tr>\n<tr>\n<td>41<\/td>\n<td>Yearly sampling, minimum value<\/td>\n<\/tr>\n<tr>\n<td>42<\/td>\n<td>Yearly sampling, maximum value<\/td>\n<\/tr>\n<tr>\n<td>43<\/td>\n<td>Yearly sampling, minimum and maximum value<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In addition to the HTTP status code, this action returns a list of measurement. This is the output structure if the selected output data format is 0 (individual measurements):<\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>timestamp<\/td>\n<td>Timestamp of the measurement<\/td>\n<\/tr>\n<tr>\n<td>value<\/td>\n<td>Value of the measurement<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In the case the specified output data format is 10, 11, 12, 20, 21, 22, 30, 31 or 32 the output structure will be the same, but with a slightly different meaning:<\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>timestamp<\/td>\n<td>Timestamp of the begin of the sampling interval<\/td>\n<\/tr>\n<tr>\n<td>value<\/td>\n<td>Average, lowest (minimum) or highest (maximum) value received in the sampling interval<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>In the case the specified output data format is 13, 23, 33 or 43, each list element will have this alternative structure:<\/p>\n<div class=\"container-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>Key<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>timestamp<\/td>\n<td>Timestamp of the begin of the sampling interval<\/td>\n<\/tr>\n<tr>\n<td>low<\/td>\n<td>Lowest (minimum) value received in the sampling interval<\/td>\n<\/tr>\n<tr>\n<td>high<\/td>\n<td>Highest (maximum) value received in the sampling interval<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>If the time offset hasn\u2019t been specified, all the timestamps and sampling intervals will refer to the GMT time zone.<\/p>\n<p><strong>Note:<\/strong>\u00a0Measurements with timestamp at the beginning of the time interval will be included. Measurement with timestamp at the end of the time interval will be excluded.<\/p>\n<p><strong>Example 1:<\/strong>\u00a0We need to retrieve the raw list of measurements received from the sensor with ID 1517, from 10th October 2015 08:00:00 CEST until 10th October 2015 10:00:00 CEST, and we want our output to be in the GMT timezone. So, we have to send the following request:[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/measurements?sensorid=1517&amp;amp;begin=1444456800&amp;amp;end=1444464000<\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>In the response we will receive:<\/strong>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;\r\n{\u00abmeasurements\u00bb:&#x5B;\r\n{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 06:00:01\u00bb,\r\n\u00abvalue\u00bb:27.5\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 06:15:02\u00bb,\r\n\u00abvalue\u00bb:27.9\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 06:30:01\u00bb,\r\n\u00abvalue\u00bb:28.1\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 06:45:02\u00bb,\r\n\u00abvalue\u00bb:27.7\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 07:00:02\u00bb,\r\n\u00abvalue\u00bb:27.4\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 07:15:00\u00bb,\r\n\u00abvalue\u00bb:26.9\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 07:30:01\u00bb,\r\n\u00abvalue\u00bb:26.8\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 07:45:01\u00bb,\r\n\u00abvalue\u00bb:27.3\r\n}\r\n]} <\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>Example 2:<\/strong>\u00a0We need to retrieve the hourly average list of measurements received from the sensor with ID 1517, from 10th October 2015 08:00:00 CEST until 10th October 2015 12:00:00 CEST, and we want our output to be in our local CEST timezone. So, we have to send the following request:[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/measurements?sensorid=1517&amp;amp;begin=1444456800&amp;amp;end=1444464000<\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>In the response we will receive:<\/strong>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">{\u00abmeasurements\u00bb:&#x5B;\r\n{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 08:00:00\u00bb,\r\n\u00abvalue\u00bb:27.6\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 09:00:00\u00bb,\r\n\u00abvalue\u00bb:27.7\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 10:00:00\u00bb,\r\n\u00abvalue\u00bb:28.0\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-10 11:00:00\u00bb,\r\n\u00abvalue\u00bb:27.9\r\n}\r\n]} <\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>Example 3:<\/strong>\u00a0we need to retrieve the daily minimum+maximum list of measurements received from the sensor with ID 1517, from 08th October 2015 00:00:00 CEST until 10th October 2015 00:00:00 CEST, and we want our output to be in our local CEST timezone. So, we have to send the following request:[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&#x5B;API URL]\/measurements?sensorid=1517&amp;amp;begin=1444255200&amp;amp;end=1444428000&amp;amp;sampling=23&amp;amp;timeoffset=7200<\/pre>\n<p>[\/vc_column_text][vc_column_text]<strong>In the response we will receive:<\/strong>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">{\u00abmeasurements\u00bb:&#x5B;\r\n{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-08 00:00:00\u00bb,\r\n\u00ablow\u00bb:25.4\r\n\u00abhigh\u00bb:29.6\r\n},{\r\n\u00abtimestamp\u00bb:\u00ab2015-10-09 00:00:00\u00bb,\r\n\u00ablow\u00bb:25.8\r\n\u00abhigh\u00bb:30.3\r\n}\r\n]}<\/pre>\n<p>[\/vc_column_text][\/vc_tta_section][\/vc_tta_tour][\/vc_column][\/vc_row][\/vc_section]<\/p>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>[vc_section full_width=&#8221;stretch_row_content&#8221; el_id=&#8221;guia-rapida&#8221;][vc_row][vc_column][vc_tta_tour controls_size=&#8221;md&#8221; active_section=&#8221;1&#8243; no_fill_content_area=&#8221;true&#8221; el_class=&#8221;tour-guia-rapida&#8221;][vc_tta_section title=&#8221;Overview&#8221; tab_id=&#8221;overview&#8221;][vc_column_text] API \u2013 Reference Find detailed information about the SDS APIs including authentication, methods, parameters, response formats and errors. Full user guides and manuals are available for active partners. [\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Devices API&#8221; tab_id=&#8221;devices-api&#8221;][vc_empty_space][vc_column_text] DISPOSITIVOS API The Devices API is based on\u00a0Sentilo, an &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"API &#8211; Reference\" class=\"read-more button\" href=\"https:\/\/www.mycelium.es\/en\/api-reference\/#more-759\" aria-label=\"Read more about API &#8211; Reference\">Seguir Leyendo<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":{"0":"post-759","1":"page","2":"type-page","3":"status-publish","5":"infinite-scroll-item"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API - Reference - Mycelium<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mycelium.es\/en\/api-reference\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API - Reference - Mycelium\" \/>\n<meta property=\"og:description\" content=\"[vc_section full_width=&#8221;stretch_row_content&#8221; el_id=&#8221;guia-rapida&#8221;][vc_row][vc_column][vc_tta_tour controls_size=&#8221;md&#8221; active_section=&#8221;1&#8243; no_fill_content_area=&#8221;true&#8221; el_class=&#8221;tour-guia-rapida&#8221;][vc_tta_section title=&#8221;Overview&#8221; tab_id=&#8221;overview&#8221;][vc_column_text] API \u2013 Reference Find detailed information about the SDS APIs including authentication, methods, parameters, response formats and errors. Full user guides and manuals are available for active partners. [\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Devices API&#8221; tab_id=&#8221;devices-api&#8221;][vc_empty_space][vc_column_text] DISPOSITIVOS API The Devices API is based on\u00a0Sentilo, an ... Seguir Leyendo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mycelium.es\/en\/api-reference\/\" \/>\n<meta property=\"og:site_name\" content=\"Mycelium\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-13T08:42:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mycelium.es\/en\/api-reference\/\",\"url\":\"https:\/\/www.mycelium.es\/en\/api-reference\/\",\"name\":\"API - Reference - Mycelium\",\"isPartOf\":{\"@id\":\"https:\/\/www.mycelium.es\/en\/#website\"},\"datePublished\":\"2023-09-07T11:17:52+00:00\",\"dateModified\":\"2023-11-13T08:42:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mycelium.es\/en\/api-reference\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mycelium.es\/en\/api-reference\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mycelium.es\/en\/api-reference\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.mycelium.es\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API &#8211; Reference\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mycelium.es\/en\/#website\",\"url\":\"https:\/\/www.mycelium.es\/en\/\",\"name\":\"Mycelium\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.mycelium.es\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mycelium.es\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.mycelium.es\/en\/#organization\",\"name\":\"Mycelium\",\"alternateName\":\"Mycelium\",\"url\":\"https:\/\/www.mycelium.es\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mycelium.es\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.mycelium.es\/wp-content\/uploads\/2023\/08\/logo-sds.png\",\"contentUrl\":\"https:\/\/www.mycelium.es\/wp-content\/uploads\/2023\/08\/logo-sds.png\",\"width\":396,\"height\":38,\"caption\":\"Mycelium\"},\"image\":{\"@id\":\"https:\/\/www.mycelium.es\/en\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API - Reference - Mycelium","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mycelium.es\/en\/api-reference\/","og_locale":"en_US","og_type":"article","og_title":"API - Reference - Mycelium","og_description":"[vc_section full_width=&#8221;stretch_row_content&#8221; el_id=&#8221;guia-rapida&#8221;][vc_row][vc_column][vc_tta_tour controls_size=&#8221;md&#8221; active_section=&#8221;1&#8243; no_fill_content_area=&#8221;true&#8221; el_class=&#8221;tour-guia-rapida&#8221;][vc_tta_section title=&#8221;Overview&#8221; tab_id=&#8221;overview&#8221;][vc_column_text] API \u2013 Reference Find detailed information about the SDS APIs including authentication, methods, parameters, response formats and errors. Full user guides and manuals are available for active partners. [\/vc_column_text][\/vc_tta_section][vc_tta_section title=&#8221;Devices API&#8221; tab_id=&#8221;devices-api&#8221;][vc_empty_space][vc_column_text] DISPOSITIVOS API The Devices API is based on\u00a0Sentilo, an ... Seguir Leyendo","og_url":"https:\/\/www.mycelium.es\/en\/api-reference\/","og_site_name":"Mycelium","article_modified_time":"2023-11-13T08:42:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mycelium.es\/en\/api-reference\/","url":"https:\/\/www.mycelium.es\/en\/api-reference\/","name":"API - Reference - Mycelium","isPartOf":{"@id":"https:\/\/www.mycelium.es\/en\/#website"},"datePublished":"2023-09-07T11:17:52+00:00","dateModified":"2023-11-13T08:42:08+00:00","breadcrumb":{"@id":"https:\/\/www.mycelium.es\/en\/api-reference\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mycelium.es\/en\/api-reference\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mycelium.es\/en\/api-reference\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.mycelium.es\/en\/"},{"@type":"ListItem","position":2,"name":"API &#8211; Reference"}]},{"@type":"WebSite","@id":"https:\/\/www.mycelium.es\/en\/#website","url":"https:\/\/www.mycelium.es\/en\/","name":"Mycelium","description":"","publisher":{"@id":"https:\/\/www.mycelium.es\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mycelium.es\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mycelium.es\/en\/#organization","name":"Mycelium","alternateName":"Mycelium","url":"https:\/\/www.mycelium.es\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mycelium.es\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.mycelium.es\/wp-content\/uploads\/2023\/08\/logo-sds.png","contentUrl":"https:\/\/www.mycelium.es\/wp-content\/uploads\/2023\/08\/logo-sds.png","width":396,"height":38,"caption":"Mycelium"},"image":{"@id":"https:\/\/www.mycelium.es\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/pages\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":6,"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/pages\/759\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/pages\/759\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/www.mycelium.es\/en\/wp-json\/wp\/v2\/media?parent=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}