PROFILIO API

Documentation

Input: your data

Output: a feature vector of variable lenght in .json or.csv format with predicted psychometric traits and confidence scores between 0 and 1



Using the API with inputs accessible from web http (GET method):


an example of image input:

http://profilio.co/ api.php?k=[yourAPIkey]&in= [httpURLtoPic.jpg]&f=csv

http://profilio.co/ api.php?k=xxxxxx&in= https://yourdomain/ picToProcess.jpg&f=csv

an example of demograhic input:

http://profilio.co/ api.php?k=[yourAPIkey]&in= [email*, yearOfBirth*, gender*, name, surname, address, city, zip code]

http://profilio.co/ api.php?k=xxxxxx&in= johndoe@gmail.com, 1985, M, john, doe, 55th street, las vegas

an example of text input:

http://profilio.co/ api.php?k=[yourAPIkey]&in= [httpURLtoText.txt]

http://profilio.co/ api.php?k=xxxxxx&in= https://yourdomain/ text.txt

It is very easy to automate the process, with wget, an example follows:

wget -O output.json -q "http://profilio.co/ api.php?k=xxxxxx&in= https://yourdomain/ text.txt"

Using the API with inputs from your database (POST method):
an example of image input with php sdk:

php sdk.php [yourAPIkey] [path-to-img.jpg] [format]

php sdk.php xxxxxx "path/in/yourserver/ pic.jpg" csv

an example of demograhic input with php sdk:

php sdk.php [yourAPIkey] [email*, yearOfBirth*, gender*, name, surname, address, city, zip code] [format]

php sdk.php xxxxxx "johndoe@gmail.com, 1985, M, john, doe, 55th street, las vegas" csv

an example of text input with php:

php sdk.php [yourAPIkey] [path-to-text.txt] [format]

php sdk.php xxxxxx "path/in/yourserver/ text.txt" csv

Things to know when using profilio APIs: