Popular - mostEmailed
Example
const { Popular } = require('nytimes-api');
const popular = new Popular('your-super-secret-api-key');
popular.mostEmailed(data => console.log(data[0]);What does it do?
Example Response
{
"url": "https://www.nytimes.com/2019/02/12/opinion/college-board-sat-ap.html",
"count_type": "EMAILED",
"column": null,
"section": "Opinion",
"byline": "By THOMAS L. FRIEDMAN",
"title": "The Two Codes Your Kids Need to Know",
"abstract": "The College Board came up with a surprising conclusion about keys to success for college and life.",
"published_date": "2019-02-12",
"source": "The New York Times",
"des_facet": [
"SAT (COLLEGE ADMISSION TEST)",
"COMPUTERS AND THE INTERNET",
"CITIZENSHIP AND NATURALIZATION"
],
"org_facet": [
"COLLEGE BOARD",
"ADMISSIONS STANDARDS",
"UNITED STATES POLITICS AND GOVERNMENT",
"CONSTITUTION (US)",
"FIRST AMENDMENT (US CONSTITUTION)"
],
"per_facet": ["SANFORD, STEFANIE", "COLEMAN, DAVID"],
"geo_facet": "",
"media": [
{
"type": "image",
"subtype": "photo",
"caption": "Ninth graders in a computer class in Brooklyn. The College Board has said that to be successful, students need to master computer science.",
"copyright": "Sarah Blesener for The New York Times",
"approved_for_syndication": 1,
"media-metadata": [Array]
}
]
}Last updated