Click this sample link to see how the API looks and how the files would be listed. By default it shows files uploaded in last 2 days
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY
In order to check all data uploaded in last 3 days, append the above links with &days=3.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&days=3
In order to check all data uploaded in last 1 hours, append the above links with &hours=1.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&hours=1
In order to check all data uploaded in last 10 minutes, append the above links with &minutes=10.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&minutes=10
In order to check all data uploaded so far, append the base link with &ts=0.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0
To get API response in json, pretty json and ldjson(line delimited json), append the api link with &api_res_type=json, &api_res_type=pretty_json and &api_res_type=ldjson respectively, default is xml.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&api_res_type=json
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&api_res_type=pretty_json
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&api_res_type=ldjson
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&api_res_type=csv
To get data of a particular site(s)(let say xyz,abc), append the api link with &site=xyz,abc.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&site=xyz,abc
To get data of a particular Folder(s)(let say pqr,abc), append the api link with &folder=pqr,abc.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&folder=pqr,abc
To get data of a particular category(let say demo), append the api link with &cat=demo.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&cat=demo
To get record count for each segment, append the api link with &count=true.
http://api.promptcloud.com/v2/data/info?id=demo&client_auth_key=hR6-MaPUHo_1Gze8FQJDx8gp_v7DvgWT-r-7p9yO8zY&ts=0&count=true
All the parameters which you can pass to our api to fine the results are below
id: <PROJECT_ID> (which we will supply)
client_auth_key: <CLIENT_AUTHENTICATION_KEY> (which we will supply)
from_ts: timestamp From which timestamp you want to get data.
to_ts: timestamp To which timestamp you want to get data.
ts: timestamp gives files newer than or same as this.
Similar as from_ts. We recommend you to use from_ts because in future we will be removing this field
minutes: number of minutes for which file listing is to be displayed integer
hours: number of hours for which file listing is to be displayed integer
days: number of days for which file listing is to be displayed integer
from_date: date in yyyymmdd format list all files from this date onwards
to_date: date in yyyymmdd format list all the files till this date
Priority: ts > (minutes = hours = days) > (from_date = to_date).
If we do not pass any of those, then last 2 days data will be displayed.
api_res_type: type of the API response xml, json, pretty_json, ldjson and csv (default type is xml)
site: exact site name(s) gives files for the site(s)
cat: category gives files for the category
folder: exact folder name(s) gives files for the folder(s)
count: true gives record count of each segment