API

Developers 

Connect your own app with the printer data and update it in real time with the database API.   

code

API

You can use a webservice to pull the data from your app. We can set a specific query for you so you can pull the data that you need.

MySQL

You can access directly to the MySQL database. We'll give you access and support to make any queries. You can also write a flag status in some tables. 

API to do pulling against database.

GET / Last meter readings from all printers.

Variables

Field
Description Example
IP /Domain
Subdomain o IP address
http://app.ameterreading.com:
Port
By default we suggest to use port 90 instead of 80, it’s safer
90
Token ID
A given Id to identify user. Test with the demo token:
Sample: 654654654654654654
Query number
Query ID which has associated a MyQL query in our DDBB.
Sample: 3015
File format
File formats you can get the output results.:  json, xml, csv.
Sample: json

Output fields

Field
Description Example
Date
Last meter reading datetime. Format can be changed on request. 
18/05/2020 0:00:00
Serial
Printer serial number
L7017260230
BW
Black print meter reading / page count.
9999
Color
Color print meter reading / page count
9999
BW_A3
Black A3 / large meter reading / page count
9999
Col_A3
Color A3 / large meter reading / page count
9999
Scans
Scanner page count
9999

Example code

Format: IP or domain + port + Specific URL+ token ID + SQL query number + file type

Example explained“http://app.ameterreading.com:” + “90” + “/ws.php?”+”65464654654654” + “iQry=3015” + “&typ=json”

Test URL

http://app.ameterreading.com:90/ws.php?iQry=3015&typ=json

Example output code

[{ “Date_00”: “18/05/2020 0:00:00”, “Serial_00”: “L7017260269”, “BW_00”: “524934”, “Color_00l”: “” },

{ “Date_00”: “07/06/2020 0:00:00”, “Serial_00”: “3353412930”, “BW_00”: “132811”, “Color_00l”: “” },

{ “Date_00”: “08/06/2020 0:00:00”, “Serial_00”: “A7AH021000181”, “BW_00”: “410886”, “Color_00l”: “” },

{ “Date_00”: “08/06/2020 0:00:00”, “Serial_00”: “A7R0027011251”, “BW_00”: “88841”, “Color_00l”: “22235” },

{ “Date_00”: “08/06/2020 0:00:00”, “Serial_00”: “A3GN021005128”, “BW_00”: “90972”, “Color_00l”: “32762” },

{ “Date_00”: “08/06/2020 0:00:00”, “Serial_00”: “A1UE021003218”, “BW_00”: “425615”, “Color_00l”: “” },]