This API allows developers to retrieve news article titles and their corresponding URLs, enabling seamless integration of up-to-date news content into their applications, websites or services.
With the New York Times News API, developers can programmatically retrieve the latest news headlines on a wide range of topics, including politics, business, sports, entertainment, technology and more. This allows developers to create applications that provide their users with real-time news updates, keeping them informed and engaged with current events.
The API offers an easy-to-use interface, allowing developers to make requests and receive responses in a structured, JSON format.
Leveraging the API endpoint, developers can fetch news article titles along with their corresponding URLs, allowing them to display clickable links that direct users to the full articles on The New York Times website.
One of the main advantages of using the New York Times News API is the reliability and credibility of the news content it provides. The New York Times is renowned for its journalistic excellence and commitment to providing accurate, well-researched and unbiased news. By integrating this API, developers can leverage the trust associated with The New York Times brand, ensuring their users have access to high-quality, reputable news articles.
It will receive parameters and provide you with a JSON.
News aggregation platforms: Can be used to fetch titles and URLs of news articles, allowing developers to aggregate news stories from the New York Times and present them alongside content from other sources in a unified interface.
Content recommendations: developers can leverage the API to deliver personalized news recommendations based on user preferences and interests, improving user experience and engagement with relevant news content.
News and sentiment analysis: By accessing news article titles from the API, developers can perform sentiment analysis or analyze trends and patterns in news coverage to gain insights into public opinion or market sentiment.
Data research and analysis: Researchers and data analysts can use the API to collect news article titles and topic-specific URLs, allowing them to analyze trends, track developments, or conduct studies based on the large collection of articles available.
Hot topics and breaking news: Developers can retrieve the titles and URLs of the most recent articles to create features that display trending topics or breaking news, providing users with real-time updates on current events.
Besides the number of API calls, there are no other limitations.
To use this endpoint all you have to do is run it to get the news.
{
"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'
Encabezado | Descripción |
---|---|
Autorización
|
[Requerido] Debería ser Bearer access_key . Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito. |
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
The API returns news article titles and their corresponding URLs. Each response includes articles categorized under various topics, such as world news, U.S. news, and more, allowing developers to access a wide range of current events.
The key fields in the response data include "title" and "url." Each article entry contains these fields, providing the article's headline and a link to the full content on The New York Times website.
The response data is organized in a structured JSON format. Articles are grouped by categories, such as "main," "world," and "us," making it easy for developers to access specific news segments.
The endpoint provides access to news articles across various categories, including politics, business, sports, entertainment, and technology, ensuring a comprehensive overview of current events.
The API allows users to customize their requests by specifying parameters such as categories or topics. This enables developers to filter the news articles based on user interests or application needs.
Data accuracy is maintained through The New York Times' established journalistic standards and editorial processes. The API sources content directly from their news articles, ensuring reliability and credibility.
Typical use cases include news aggregation platforms, personalized content recommendations, sentiment analysis, and real-time updates on trending topics, enhancing user engagement with relevant news.
Users can utilize the returned data by displaying article titles as clickable links in their applications, allowing users to access full articles easily. This integration enhances user experience by providing direct access to reputable news sources.
Zyla API Hub es como una gran tienda de APIs, donde puedes encontrar miles de ellas en un solo lugar. También ofrecemos soporte dedicado y monitoreo en tiempo real de todas las APIs. Una vez que te registres, puedes elegir qué APIs quieres usar. Solo recuerda que cada API necesita su propia suscripción. Pero si te suscribes a varias, usarás la misma clave para todas, lo que hace todo más fácil para ti.
Los precios se muestran en USD (dólar estadounidense), EUR (euro), CAD (dólar canadiense), AUD (dólar australiano) y GBP (libra esterlina). Aceptamos todas las principales tarjetas de débito y crédito. Nuestro sistema de pago utiliza la última tecnología de seguridad y está respaldado por Stripe, una de las compañías de pago más confiables del mundo. Si tienes algún problema para pagar con tarjeta, contáctanos en [email protected]
Además, si ya tienes una suscripción activa en cualquiera de estas monedas (USD, EUR, CAD, AUD, GBP), esa moneda se mantendrá para suscripciones posteriores. Puedes cambiar la moneda en cualquier momento siempre que no tengas suscripciones activas.
La moneda local que aparece en la página de precios se basa en el país de tu dirección IP y se proporciona solo como referencia. Los precios reales están en USD (dólar estadounidense). Cuando realices un pago, el cargo aparecerá en tu estado de cuenta en USD, incluso si ves el monto equivalente en tu moneda local en nuestro sitio web. Esto significa que no puedes pagar directamente en tu moneda local.
Ocasionalmente, un banco puede rechazar el cargo debido a sus configuraciones de protección contra fraude. Te sugerimos comunicarte con tu banco primero para verificar si están bloqueando nuestros cargos. También puedes acceder al Portal de Facturación y cambiar la tarjeta asociada para realizar el pago. Si esto no funciona y necesitas más ayuda, por favor contacta a nuestro equipo en [email protected]
Los precios se determinan mediante una suscripción recurrente mensual o anual, dependiendo del plan elegido.
Las llamadas a la API se descuentan de tu plan en base a solicitudes exitosas. Cada plan incluye una cantidad específica de llamadas que puedes realizar por mes. Solo las llamadas exitosas, indicadas por una respuesta con estado 200, se contarán en tu total. Esto asegura que las solicitudes fallidas o incompletas no afecten tu cuota mensual.
Zyla API Hub funciona con un sistema de suscripción mensual recurrente. Tu ciclo de facturación comenzará el día en que compres uno de los planes de pago, y se renovará el mismo día del mes siguiente. Así que recuerda cancelar tu suscripción antes si quieres evitar futuros cargos.
Para actualizar tu plan de suscripción actual, simplemente ve a la página de precios de la API y selecciona el plan al que deseas actualizarte. La actualización será instantánea, permitiéndote disfrutar inmediatamente de las funciones del nuevo plan. Ten en cuenta que las llamadas restantes de tu plan anterior no se transferirán al nuevo plan, por lo que debes considerar esto al actualizar. Se te cobrará el monto total del nuevo plan.
Para verificar cuántas llamadas a la API te quedan en el mes actual, revisa el campo 'X-Zyla-API-Calls-Monthly-Remaining' en el encabezado de la respuesta. Por ejemplo, si tu plan permite 1,000 solicitudes por mes y has usado 100, este campo mostrará 900 llamadas restantes.
Para ver el número máximo de solicitudes a la API que permite tu plan, revisa el encabezado de la respuesta 'X-Zyla-RateLimit-Limit'. Por ejemplo, si tu plan incluye 1,000 solicitudes por mes, este encabezado mostrará 1,000.
El encabezado 'X-Zyla-RateLimit-Reset' muestra el número de segundos hasta que tu límite se restablezca. Esto te indica cuándo tu conteo de solicitudes se reiniciará. Por ejemplo, si muestra 3,600, significa que faltan 3,600 segundos para que el límite se restablezca.
Sí, puedes cancelar tu plan en cualquier momento desde tu cuenta, seleccionando la opción de cancelación en la página de Facturación. Ten en cuenta que las actualizaciones, degradaciones y cancelaciones tienen efecto inmediato. Además, al cancelar ya no tendrás acceso al servicio, incluso si te quedaban llamadas en tu cuota.
Puedes contactarnos a través de nuestro canal de chat para recibir asistencia inmediata. Siempre estamos en línea de 8 a. m. a 5 p. m. (EST). Si nos contactas fuera de ese horario, te responderemos lo antes posible. Además, puedes escribirnos por correo electrónico a [email protected]
Para darte la oportunidad de probar nuestras APIs sin compromiso, ofrecemos una prueba gratuita de 7 días que te permite realizar hasta 50 llamadas a la API sin costo. Esta prueba solo se puede usar una vez, por lo que recomendamos aplicarla a la API que más te interese. Aunque la mayoría de nuestras APIs ofrecen prueba gratuita, algunas pueden no hacerlo. La prueba finaliza después de 7 días o cuando realices 50 solicitudes, lo que ocurra primero. Si alcanzas el límite de 50 solicitudes durante la prueba, deberás "Iniciar tu Plan de Pago" para continuar haciendo solicitudes. Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios. Alternativamente, si no cancelas tu suscripción antes del día 7, tu prueba gratuita finalizará y tu plan se cobrará automáticamente, otorgándote acceso a todas las llamadas a la API especificadas en tu plan. Ten esto en cuenta para evitar cargos no deseados.
Después de 7 días, se te cobrará el monto total del plan al que estabas suscrito durante la prueba. Por lo tanto, es importante cancelar antes de que finalice el periodo de prueba. No se aceptan solicitudes de reembolso por olvidar cancelar a tiempo.
Cuando te suscribes a una prueba gratuita de una API, puedes realizar hasta 50 llamadas. Si deseas realizar más llamadas después de este límite, la API te pedirá que "Inicies tu Plan de Pago". Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios.
Las Órdenes de Pago se procesan entre el día 20 y el 30 de cada mes. Si envías tu solicitud antes del día 20, tu pago será procesado dentro de ese período.
Nivel de Servicio:
100%
Tiempo de Respuesta:
14.180ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
0ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.123ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
118ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
5.583ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.721ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
9.182ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
858ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
10.144ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
822ms