![Build Status](https://camo.githubusercontent.com/740b895840ef099a0fb5a23aaa06e09559502ea9b99b255324e89631962b7f12/68747470733a2f2f7472617669732d63692e6f72672f72696768746c61672f7472756c69612d73646b2d707974686f6e2e7376673f6272616e63683d6d6173746572)
A Python SDK to interface with the Trulia HTTP/2 API
from trulia import build
def main():
service = build('TruliaStats', '<YOUR_TRULIA_API_KEY>')
res = service.get_city_stats(city='New York', state='NY')
print res.location
for traffic_stat in res.traffic_stats:
print traffic_stat.percent_state_traffic
if __name__ == '__main__':
main()
Method |
Description |
Documentation |
get_city_stats(**kwargs) |
Retrieves all statistics for a city within the given date range. |
View |
get_county_stats(**kwargs) |
Retrieves all statistics for a county within the given date range. |
View |
get_neighborhood_stats(**kwargs) |
Retrieves all statistics for a county within the given date range. |
View |
get_state_stats(**kwargs) |
Retrieves all statistics for a state within the given date range. |
View |
get_zip_code_stats(**kwargs) |
Retrieves all statistics for a ZIP code within the given date range. |
View |
Method |
Description |
Documentation |
get_cities_in_state(**kwargs) |
Retrieves all cities in a state, as well as the longitude and latitude of the center point of each city. |
View |
get_counties_in_state(**kwargs) |
Retrieves all counties in a state along with the longitude and latitude of the center point of each county. |
View |
get_neighborhoods_in_city(**kwargs) |
Retrieves all Neighborhoods in a city. |
View |
get_states(**kwargs) |
Retrieves all 50 states, along with the longitude and latitude of the center point of each state. |
View |
get_zip_codes_in_state(**kwargs) |
Retrieves all ZIP codes in a state, as well as the longitude and latitude of the center point of each ZIP code. |
View |