此API允许开发者检索新闻文章标题及其相应的URL,便于将最新的新闻内容无缝集成到他们的应用程序、网站或服务中。
通过《纽约时报》新闻API,开发者可以通过编程的方式检索涵盖政治、商业、体育、娱乐、科技等诸多主题的最新新闻头条。这使得开发者能够创建提供实时新闻更新的应用,确保用户了解并参与当前事件。
该API提供了易于使用的接口,允许开发者发送请求并以结构化的JSON格式接收响应。
借助API端点,开发者可以获取新闻文章标题及其相应的URL,从而展示可点击的链接,引导用户访问《纽约时报》网站上的完整文章。
使用《纽约时报》新闻API的主要优势之一是其提供的新闻内容的可靠性和信誉。《纽约时报》以其卓越的新闻报道和对提供准确、经过充分研究且公正无偏见的新闻的承诺而闻名。通过集成此API,开发者可以利用与《纽约时报》品牌相关的信任,确保用户能够访问高质量、可信的新闻文章。
它将接收参数并提供您一个JSON。
新闻聚合平台:可用于获取新闻文章的标题和URL,允许开发者从《纽约时报》聚合新闻故事,并在统一界面中与其他来源的内容一起呈现。
内容推荐:开发者可以利用此API根据用户的偏好和兴趣提供个性化的新闻推荐,改善用户体验并增强与相关新闻内容的互动。
新闻和情感分析:通过访问API中的新闻文章标题,开发者可以进行情感分析或分析新闻报道中的趋势和模式,以获得公众舆论或市场情绪的见解。
数据研究和分析:研究人员和数据分析师可以使用此API收集新闻文章标题和特定主题的URL,使他们能够分析趋势、跟踪发展或基于大量可用文章进行研究。
热点话题和突发新闻:开发者可以检索最新文章的标题和URL,以创建展示热门话题或突发新闻的功能,向用户提供实时的当前事件更新。
除了API调用次数,没有其他限制。
{
"main": [
{
"title": "Why Many Police Traffic Stops Turn Deadly",
"url": "https://www.nytimes.com/2021/10/31/us/police-traffic-stops-killings.html"
},
{
"title": "Rewinding Video of Shootings Often Reveals Police Errors",
"url": "https://www.nytimes.com/interactive/2021/10/30/video/police-traffic-stops-danger-video.html"
}
],
"world": [
{
"title": "Rivals on World Stage, Russia and U.S. Quietly Seek Areas of Accord",
"url": "https://www.nytimes.com/2021/10/31/world/europe/biden-putin-russia-united-states.html"
},
{
"title": "Japan’s Election Was Closer Than Usual, Even Though Party in Power Has Hit Snooze",
"url": "https://www.nytimes.com/2021/10/30/world/asia/japan-election-fumio-kishida.html"
}
],
"us": [
{
"title": "Four Stand-Up Specials That Showcase Hard-Working Comics",
"url": "https://www.nytimes.com/2021/10/29/arts/television/four-stand-up-specials-to-watch.html"
},
{
"title": "One Dead After Dozens Try to Swim Around San Diego Border Fence",
"url": "https://www.nytimes.com/2021/10/31/us/migrants-swim-border.html"
}
],
"politics": [
{
"title": "Why Paid Family Leave’s Demise This Time Could Fuel It Later",
"url": "https://www.nytimes.com/2021/10/31/us/politics/paid-family-leave.html"
},
{
"title": "In the Final Days Before Virginia Votes, Both Sides Claim Momentum",
"url": "https://www.nytimes.com/2021/10/31/us/politics/virginia-governors-race-youngkin-mcauliffe.html"
}
],
"ny": [
{
"title": "Drug Boss Alpo Martinez Killed in Harlem",
"url": "https://www.nytimes.com/2021/10/31/nyregion/alpo-martinez-dead-harlem.html"
},
{
"title": "The Places in New York City Where Republicans Still Stand a Chance",
"url": "https://www.nytimes.com/2021/10/31/nyregion/city-council-nyc-election.html"
}
],
"business": [
{
"title": "China’s Popular Electric Vehicles Have Put Europe’s Automakers on Notice",
"url": "https://www.nytimes.com/2021/10/31/business/electric-cars-china-europe.html"
},
{
"title": "Angling for a Merry ‘Fishmas’ Despite Global Shipping Delays",
"url": "https://www.nytimes.com/2021/10/31/business/economy/global-shipping-delays-shortages.html"
}
],
"opinion": [
{
"title": "How I Became a Science Experiment",
"url": "https://www.nytimes.com/2021/10/30/opinion/lyme-disease-science.html"
},
{
"title": "Not Everyone in New York Wanted the Coronavirus to Lose",
"url": "https://www.nytimes.com/2021/10/31/opinion/vaccine-disinformation-new-york-city.html"
}
],
"technology": [
{
"title": "The Metaverse Is Mark Zuckerberg’s Escape Hatch",
"url": "https://www.nytimes.com/2021/10/29/technology/meta-facebook-zuckerberg.html"
},
{
"title": "Facebook Renames Itself Meta",
"url": "https://www.nytimes.com/2021/10/28/technology/facebook-meta-name-change.html"
}
],
"science": [
{
"title": "When the Soviets Set Off the Biggest Nuclear Bomb, J.F.K. Didn’t Flinch",
"url": "https://www.nytimes.com/2021/10/30/science/tsar-bomba-60.html"
},
{
"title": "Why Strawberries Turn a Ghostly Shade of White",
"url": "https://www.nytimes.com/2021/10/29/science/strawberries-evolution-genetics-white.html"
}
],
"health": [
{
"title": "Covid Shots Are a Go for Children, but Parents Are Reluctant to Consent",
"url": "https://www.nytimes.com/2021/10/30/health/covid-vaccine-kids-parents.html"
},
{
"title": "Why Aren’t More People Comparison Shopping for Health Plans?",
"url": "https://www.nytimes.com/2021/10/30/health/open-enrollment-health-insurance-medicare.html"
}
],
"sports": [
{
"title": "World Series Live Updates: Houston Comes Through With the Bases Loaded",
"url": "https://www.nytimes.comhttps://www.nytimes.com/live/2021/10/31/sports/braves-astros-score"
},
{
"title": "What We Learned From Week 8 in the N.F.L.",
"url": "https://www.nytimes.com/2021/10/31/sports/football/nfl-week-8-scores.html"
}
],
"arts": [
{
"title": "Oxford’s 2021 Word of the Year Is a Shot in the Arm",
"url": "https://www.nytimes.com/2021/10/31/arts/vax-oxford-word-year.html"
},
{
"title": "A Filmmaking Life Gets a Sequel",
"url": "https://www.nytimes.com/2021/10/29/movies/joanna-hogg-the-souvenir.html"
}
],
"books": [
{
"title": "Emily Ratajkowski Is a Work in Progress",
"url": "https://www.nytimes.com/2021/10/29/books/emily-ratajkowski-my-body.html"
},
{
"title": "For His Father and His Son, Ai Weiwei Is Determined to Leave a Trace",
"url": "https://www.nytimes.com/2021/10/30/books/review/1000-years-of-joys-and-sorrows-ai-weiwei.html"
}
],
"style": [
{
"title": "They Wrote Their Love Story While Scripting Others",
"url": "https://www.nytimes.com/2021/10/29/style/bill-prady-jessica-queller-wedding.html"
},
{
"title": "Why the Vampire Myth Won’t Die",
"url": "https://www.nytimes.com/2021/10/30/style/vampires-coronavirus.html"
}
],
"food": [
{
"title": "Long-Simmering Lamb for Waning Fall Days",
"url": "https://www.nytimes.com/2021/10/29/dining/lamb-shank-recipe-carrot-salad-molasses-ginger-cake.html"
},
{
"title": "Once a Bowling Alley Snack, Mozzarella Sticks Are Having a Resurgence",
"url": "https://www.nytimes.com/2021/10/29/dining/mozzarella-sticks.html"
}
],
"travel": [
{
"title": "Taking the Loop Less Traveled on the Oregon Coast",
"url": "https://www.nytimes.com/2021/10/28/travel/oregon-coast-three-capes-loop.html"
},
{
"title": "Can California Tourism Survive Climate Change?",
"url": "https://www.nytimes.com/2021/10/26/travel/california-tourism-climate-change.html"
}
],
"magazine": [
{
"title": "Kyle Rittenhouse and the New Era of Political Violence",
"url": "https://www.nytimes.com/2021/10/26/magazine/kyle-rittenhouse-kenosha-wisconsin.html"
},
{
"title": "How Corruption Ruined Lebanon",
"url": "https://www.nytimes.com/2021/10/28/magazine/corruption-lebanon.html"
}
],
"t-magazine": [
{
"title": "The T List: Five Things We Recommend This Week",
"url": "https://www.nytimes.com/2021/10/28/t-magazine/salon-cosa-campbell-rey.html"
},
{
"title": "An Artist’s Life in Objects, From a Warhol Print to a Postmodern Lamp",
"url": "https://www.nytimes.com/2021/10/27/t-magazine/peter-halley-design-art-collection.html"
}
],
"real-estate": [
{
"title": "In a Supertall Tower, How Much Affordable Housing Is Enough?",
"url": "https://www.nytimes.com/2021/10/29/realestate/5-world-trade-center-affordable.html"
},
{
"title": "At Central Park Tower, More Big Closings Are Recorded",
"url": "https://www.nytimes.com/2021/10/29/realestate/top-nyc-real-estate-sales.html"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/2079/new+york+times+news+api/1861/get+news' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
API返回新闻文章标题及其对应的URL每个响应包括按各种主题分类的文章如世界新闻美国新闻等允许开发者访问广泛的时事
响应数据中的关键字段包括“标题”和“网址”每个文章条目包含这些字段,提供文章的标题和链接到《纽约时报》网站上的完整内容
响应数据以结构化的JSON格式组织 文章按类别分组,如“主要”“世界”和“美国” 使开发人员能够轻松访问特定的新闻片段
该端点提供对各种类别新闻文章的访问,包括政治、商业、体育、娱乐和科技,确保全面了解当前事件
该API允许用户通过指定类别或主题等参数来自定义请求这使开发人员能够根据用户兴趣或应用需求过滤新闻文章
数据准确性通过纽约时报既定的新闻标准和编辑流程得以维护 API直接从他们的新闻文章中获取内容 确保了可靠性和可信度
典型的用例包括新闻聚合平台 个性化内容推荐 情感分析 和有关趋势话题的实时更新 增强用户对相关新闻的参与感
用户可以通过将文章标题显示为可点击链接在他们的应用程序中利用返回的数据,允许用户轻松访问完整的文章。这种集成通过提供直接访问可靠新闻来源的方式增强了用户体验
服务级别:
100%
响应时间:
61ms
服务级别:
100%
响应时间:
7,928ms
服务级别:
100%
响应时间:
14,201ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
143ms
服务级别:
100%
响应时间:
479ms
服务级别:
100%
响应时间:
2,542ms
服务级别:
100%
响应时间:
1,284ms
服务级别:
100%
响应时间:
1,308ms