Random Agent from a Country (CSV)

Retrieve one agent at random from the given country.

GET /country/(string: country_code)/random.csv
Query Parameters:
  • country_code – an ISO 3166 country code
Request Headers:
Status Codes:

Try it:

In this example, select one agent at random from Canada. The ISO 3166 country code for Canada is “ca” so that is added to the URL.


Example request:

GET /country/ca/random.csv HTTP/1.1
Host: pplapi.com

Example response:

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

French,ca,60,28424,Male,other Christian,1955-12-08,9OK-5U1,True,Canada,6384039029