DATA 607 - NY Times API Analysis
API Data Retrieval and Analysis Using R
Introduction
This assignment will explore how the New York Times API can be used to retrieve information from an online source and analyze the resulting data using R.
Approach
First, I will identify an appropriate API endpoint and examine how to request data using an API key and relevant parameters.
Next, I will retrieve the information in JSON format and import it into R.
After importing the data, I will examine its structure, identify relevant variables, and organize the information into a data frame.
I will use R packages such as jsonlite, dplyr, and tidyr to extract, clean, and transform the data into a format suitable for analysis.
Finally, I will explore the dataset, summarize relevant information, and consider how tables and visualizations can communicate the findings.
Purpose and Expected Learning Outcomes
The main purpose of this assignment is to understand how APIs connect external data sources to R and how raw JSON data can be transformed into meaningful information.
Through this assignment, I expect to strengthen my skills in API data retrieval, data cleaning, data transformation, and exploratory analysis.
I also hope to better understand how these techniques can support educational research, data-driven decision-making, and real-world applications of data science.
Reflection
After completing the analysis, I will reflect on the challenges of retrieving and processing JSON data, the R functions I used, and the lessons learned from working with an API.
Conclusion
This section will summarize the findings, limitations, and potential applications of the API analysis.
Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.