Perform api requests slightly later so that template functions are available.