Implemented census API query in Census constructor