API description

La documentation API est disponible en Anglais.

Data upload <100kb

URL

https://www.intchart.com/api/{id}/files/{name}/data

Example Request

https://www.intchart.com/api/ABCDEFGH/files/File1/data?sep=;&names=0&xcol=2&dec=,&lang=nl&format=unix

Headers

Authorization Mandatory API key
Content-Type Optional Media types : text/html or application/json
Accept Optional Media types : text/html or application/json

Parameters

{id} API user ID
{name} The name of your file
difference Optional Calculates the difference of two consecutive values ( e.g. for consumption ) Possible values : y or n Default : n
sep Mandatory for text data - Not used for json data Determines the data separator between the data values. Possible values , ; | or tab
names Optional for text data - Not used for json data (always 1) Indicates if your data contain field names Possible values : 0 or 1 Default : 1
xcol Optional Determines the column to be used for the x-axis (horizontal axis) Possible values : integer from 1 to 10 Default : 1
dec Optional Determines the decimal character for the floating-point numbers Possible values :  . or , Default : .
lang Optional Determines the language used for the dates Syntax : two letter symbol for language Default : en
format Optional Determines the format used for a dates Possible values for fixed format : 'number', 'unix', 'iso8601' Otherwise syntax : ymdhis (year, month, day, hour, minutes, seconds)

Text data example

Request

https://www.intchart.com/api/ABCDEFGH/files/File2/data?sep=,&format=ymd

Header

Authorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9

Data

date,line1,line2 2016-06-01,58.13,3.41 2016-06-02,63.98,14.55 2016-06-03,87,26.78 2016-06-04,119.7,37.85 2016-06-05,139,48.92 2016-06-06,180.28,59.92 2016-06-07,226.7,90.13 2016-06-08,304.98,222.23

Response

{ "message":"File2 has sucessfully been uploaded.", "version":"1.0", "href":"https://www.intchart.com/api/ABCDEFGH/files/File2/data?sep=,&format=ymd", "doc":"https://www.intchart.com/overview/api", "data characteristics": { "data separator":",", "decimal character":".", "language":"", "column x-values":"0", "name x-values":"date", "format x-values":"Year Month Day", "name y-values":"line1 line2 ", "number of lines added":"9" }, "notice":"To use other characteristics, please specify parameters in the URL." }

Json data example

Request

https://www.intchart.com/api/ABCDEFGH/files/File3/data?format=ymd

Headers

Authorization: Bearer TNz7QwucuGythvQa71vYMQY0gKfyBP82DQ5LAaS9 Content-Type: application/json Accept: application/json

Data

[{"date":"2016-06-01","line1":58.13,"line2":3.41},{"date":"2016-06-02","line1":63.98,"line2":14.55},{"date":"2016-06-03","line1":87,"line2":26.78},{"date":"2016-06-04","line1":119.7,"line2":37.85},{"date":"2016-06-05","line1":139,"line2":48.92},{"date":"2016-06-06","line1":180.28,"line2":59.92},{"date":"2016-06-07","line1":226.7,"line2":90.13},{"date":"2016-06-08","line1":304.98,"line2":222.23}]

Response

{ "message": "File3 has sucessfully been uploaded.", "version": "1.0", "href": "https://www.intchart.com/api/ABCDEFGH/files/File3/data?format=ymd", "doc": "https://www.intchart.com/overview/api", "data characteristics": { "decimal character": ".", "language": "", "column x-values": "0", "name x-values": "date", "format x-values": "Year Month Day", "name y-values": "line1 line2 ", "number of lines added": "9" }, "notice": "To use other characteristics, please specify parameters in the URL." }