data from NYTIMES API functional