White House Visitors Log API

The Washington Post White House Visitors Log API stores White House visits since January 2009. The Post has more than 2.2 million visits with more being added quarterly.

GET search

Request URL

http://api.washingtonpost.com/white-house-visitors/search[?visitorFirstName][&visitorLastName][&visiteeFirstName][&visiteeLastName][&startDateTime][&endDateTime][&meetingRoom][&limit][&skip]&key=<Your developer key>

Parameters

visitorFirstName String Optional. The visitor's first name. This returns results where the param value is contained in the result. For example 'visitorFirstName=bar' would result in all visitors whose name contains Bar (Barry, Barack...).
visitorLastName String Optional. The visitor's last name. This returns results where the param value is contained in the result. For example 'visitorLastName=son' would result in all visitors whose name contains son (Johnson, Sonner, ...).
visiteeFirstName String Optional. The first name of the person being visited. This returns results where the param value is contained in the result. For example 'visiteeFirstName=bar' would result in all visitees whose name contains Bar (Barry, Barack, ...).
visiteeLastName String Optional. The first name of the person being visited. This returns results where the param value is contained in the result. For example 'visiteeLastName=son' would result in all visitees whose name contains son (Johnson, Sonner, ...).
startDateTime Number Optional. Please use epoch time (milliseconds since January 1, 1970 UTC time). When startDateTime is set along with endDateTime, all visits occurring in between the two dates are returned, inclusive. When startDateTime is set but endDateTime is not, only visits for the single date indicated are returned.
endDateTime Number Optional. Please use epoch time (milliseconds since January 1, 1970 UTC time). When endDateTime is set along with startDateTime, all visits occurring in between the two dates are returned, inclusive. When endDateTime is set but StartDateTime is not, only visits for the single date indicated are returned.
meetingRoom String Optional. When supplied, results are filtered by visits occurring in the room specified. Results are returned for entries where the param value is contained in the result (E.G. meetingRoom=oval would result in all visits occurring in the Oval Office).
limit Number Optional. When supplied, indicates the number of results to return for a given query. The default and max are both set to 50.
skip Number Optional. When supplied, skip specifies the first result to return. Entries are zero based. For example, a query of "search/?limit=50&skip=50 would return visit entries 50-99".

Sample Request: http://api.washingtonpost.com/white-house-visitors/search/?visiteeLastName=Obama&key=[YOUR-KEY]

Code samples

Response 200

Response body example

Content-Type: application/json

  1. [
    • {
      • "id": {
        • "_time": 1335531440,
        • "_machine": -458223595,
        • "_inc": 766719512,
        • "_new": false
        • },
      • "position": 1427170,
      • "socrataId": "72721C5A-A101-435E-8949-59B6E8D4D80C",
      • "lastName": "Boguslaw",
      • "firstName": "Robert",
      • "fullName": "Robert J Boguslaw",
      • "middleInitial": "J",
      • "appointmentNumber": "U95486",
      • "badgeNumber": "78284",
      • "accessType": "VA",
      • "arrivalDateTime": "Mar 30, 2011 5:25:00 PM",
      • "postOfArrival": "A0101",
      • "departureDateTime": "Mar 30, 2011 9:58:00 PM",
      • "departureDate": "Mar 30, 2011 12:00:00 AM",
      • "postOfDeparture": "A0101",
      • "appointmentMadeDateTime": "Mar 29, 2011 12:00:00 AM",
      • "appointmentStartDateTime": "Mar 30, 2011 5:30:00 PM",
      • "appointmentEndDateTime": "Mar 30, 2011 11:59:00 PM",
      • "totalPeople": 5,
      • "lastUpdatedBy": "MD",
      • "post": "WIN",
      • "lastEntryDate": "Mar 29, 2011 7:46:00 AM",
      • "terminalSuffix": "MD",
      • "visiteeLastName": "obama",
      • "visiteeFirstName": "mrs.",
      • "visiteeFullName": "mrs. obama",
      • "meetingLocation": "White House",
      • "meetingRoom": "state floo",
      • "meetingFullLocation": "White House state floo",
      • "callerLastName": "DOEBLER",
      • "callerFirstName": "MAX",
      • "description": "marine band performing during a dinner hosted by mrs. obama. potus is not in attendance.",
      • "washingtonPostAddedTimestamp": "Apr 27, 2012 8:57:15 AM"
      • }
    • ]