Sample from Agents (CSV)

Select a quantity of agents at random, and return the results as a CSV file.

GET /batch/(int: quantity)/sample.csv
Query Parameters:
 
  • quantity – an integer > 0 and ≤ 500
Request Headers:
 
Status Codes:

Try it:

In this example, sample a quantity of 5 agents.

http://pplapi.com/batch/5/sample.csv

Example request:

GET /batch/5/sample.csv HTTP/1.1
Host: pplapi.com

Example response:

HTTP/1.1 200 OK
Content-Type: text/csv; charset=utf-8
Content-Length: 515

language,country_tld,age,income,sex,religion,date_of_birth,id_str,internet,country_name,id
Slovak,sk,0,28728,Female,none,2015-06-21,ykh-x6b,True,Slovakia,7537293444
Latvian,eu,45,43870,Female,Roman Catholic,1970-06-10,Djy-gNB,False,European Union,2831230338
Hindi,in,62,3750,Male,Hindu,1953-04-19,bmR-HQS,False,India,2293002373
Spanish,us,68,44363,Female,Protestant,1947-11-16,iAX-etv,True,United States,3178565115
Russian,ru,71,14274,Female,Muslim 10-15%,1944-11-02,iUn-lrH,True,Russia,4558564503