News Content Extractor API

The News Content Extractor API extracts core textual content and metadata from news articles, supporting multiple websites in any language for analysis and reuse.

About the API: 

The News Content Extractor API is a versatile tool designed to extract the main textual content and relevant metadata from online news articles. Using a proprietary algorithm, this API is capable of efficiently analyzing and extracting key information, even from lesser-known or niche websites. It supports a wide range of languages, making it an ideal solution for developers looking to automate the collection of news data for analysis, classification or reuse in various applications. This API works optimally with long-form articles and sites containing predominantly textual content. While not well suited to pages focused on video or non-textual content, its ability to handle a wide variety of sources makes it a powerful and flexible option for data mining projects, news aggregators or artificial intelligence applications. With JSON responses, it is easy to integrate into any modern system, providing fast and structured access to the most relevant information.

API Documentation

Endpoints


Sends the URL of the news article to the endpoint along with the optional format (JSON or plain text). The API will return the main content and metadata of the article.



                                                                            
GET https://zylalabs.com/api/5295/news+content+extractor+api/6836/extract+article+content
                                                                            
                                                                        

Extract Article Content - Endpoint Features

Object Description
url [Required]
format [Optional] Returned format of article content. html returns the article content as HTML, md returns the article content as markdown, and text returns the article content as plain text. Defaults to html.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"title":"Lionel Messi feels \u2018like a kid\u2019 after Argentina hat-trick against Bolivia - The Athletic","url":"https:\/\/www.nytimes.com\/athletic\/5846795\/2024\/10\/16\/lionel-messi-hat-trick-argentina-bolivia\/?searchResultPosition=1","author":"Ali Rampling","thumbnailUrl":"https:\/\/static01.nyt.com\/athletic\/uploads\/wp\/2024\/10\/16032704\/GettyImages-2177960715-e1729063644703.jpg?width=1200&height=630&fit=cover","tags":["Inter Miami CF"," Argentina"," Soccer"],"format":"html","content":"<p><a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/lionel-messi-HlEFpLdbHt68CnvJ\/'>Lionel Messi<\/a> says he still feels \u201clike a kid\u201d playing for Argentina after scoring a hat-trick in his country\u2019s 6-0 victory over Bolivia on Tuesday.<\/p><p>The 37-year-old played a role in five of Argentina\u2019s six goals during the World Cup qualifying win at Estadio Mas Monumental in Buenos Aires, providing two assists in addition to his hat-trick.<\/p><p>Advertisement<\/p><p>It took Messi\u2019s tally of senior Argentina goals to 112 \u2014 a figure bettered only by <a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/cristiano-ronaldo-jh1IjFA8SnHLGtwM\/'>Cristiano Ronaldo<\/a>\u2019s 133 for Portugal in men\u2019s international football.<\/p><p>\u201cIt\u2019s really nice to come here, to feel the affection of the people,\u201d Messi said.<\/p><p>\u201cThis drives me. (I\u2019m) enjoying being happy where I am. Despite my age, when I\u2019m here, I feel like a kid because I\u2019m comfortable with this team. As long as I feel good and can keep performing the way I want, I\u2019ll keep enjoying it.\u201d<\/p><img src='https:\/\/static01.nyt.com\/athletic\/uploads\/wp\/2024\/09\/26154131\/GettyImages-1807033621-1024x683.jpg?width=128&height=128&fit=cover&auto=webp'><p>GO DEEPER<\/p><p>How Argentina are preparing for life after Lionel Messi: Wider, more direct but less clinical<\/p><p>Messi gave Argentina the lead after 19 minutes on Tuesday evening, finishing low after <a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/lautaro-martinez-Ce9CtvBqInoKkh9G\/'>Lautaro Martinez<\/a> had capitalised on a defensive slip to win the ball high up in the Bolivia half.<\/p><p>The Argentina captain then turned provider for Martinez as the hosts doubled their advantage on the stroke of half time, squaring the ball to his team-mate and leaving him with an empty net to roll into.<\/p><img src='https:\/\/static01.nyt.com\/athletic\/uploads\/wp\/2024\/10\/16032859\/GettyImages-2177919962-scaled.jpg'><p>Argentina added a third in first-half stoppage time through <a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/julian-alvarez-Gc4ZQQEwFSbwIM9v\/'>Julian Alvarez<\/a> after the Atletico Madrid forward had been found by a quick Messi free-kick.<\/p><p><a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/thiago-almada-lYAzmMNJhNvBXFjZ\/'>Thiago Almada<\/a> extended Argentina\u2019s lead mid-way through the second half, before Messi added his side\u2019s fifth and sixth in the space of three minutes to complete the scoring.<\/p><p>The Inter Miami forward found the bottom corner from just inside the penalty area in the 84th minute, and completed his hat-trick in the 86th with another low strike after combining with <a href='https:\/\/www.nytimes.com\/athletic\/football\/player\/nico-paz-30JZNE0k3zCnSuEf\/'>Nico Paz<\/a>.<\/p><p>The match was just Messi\u2019s second for Argentina since <a href='https:\/\/www.nytimes.com\/athletic\/5637802\/2024\/07\/15\/lionel-messi-injury-copa-america-final\/'>being forced off with an ankle injury in July\u2019s Copa America final<\/a>. He returned to club action in September and has scored five goals in six <a href='https:\/\/www.nytimes.com\/athletic\/football\/mls\/'>Major League Soccer<\/a> (MLS) appearances since his comeback.<\/p><p>Tuesday\u2019s victory leaves Argentina top of their World Cup qualifying group with 22 points from 10 games.<\/p><p>Messi had said in 2022 the Qatar World Cup would be his last, but speaking ahead of the 2024 Copa America\u00a0<a href='https:\/\/www.nytimes.com\/athletic\/5548901\/2024\/06\/07\/lionel-messi-world-cup-2026\/'>he did not rule out playing at the 2026 tournament<\/a>. He will be 38 when the next World Cup, staged in the United States, Mexico and Canada, begins and will turn 39 during the tournament.<\/p><p>Argentina return to action in November against Paraguay.<\/p><img src='https:\/\/static01.nyt.com\/athletic\/uploads\/wp\/2024\/07\/15014045\/0715_COPAMessi01-1024x512.jpg?width=128&height=128&fit=cover&auto=webp'><p>GO DEEPER<\/p><p>Lionel Messi and the unmistakeable sense of an ending<\/p><p>(Top Photo: Luis Robayo\/AFP via Getty Images)<\/p>"}
                                                                                                                                                                                                                    
                                                                                                    

Extract Article Content - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/5295/news+content+extractor+api/6836/extract+article+content?url=https://www.nytimes.com/athletic/5846795/2024/10/16/lionel-messi-hat-trick-argentina-bolivia/?searchResultPosition=1&format=html' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the News Content Extractor API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Sends an article URL to the endpoint and receives the main content and metadata in JSON or plain text format.

News Content Extractor is an API that extracts the main text and metadata from news articles for analysis and reuse, compatible with sites in several languages.

Receives the URL of an article as input and provides the main text and structured metadata in JSON or plain text format as output.

Collect content for news aggregators. News analysis for data mining. Creation of summaries and classification of news articles in real time.

1000 requests per hour on all plans

There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.

The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.

The API returns detailed information about the age and history of a domain, including years, months and days since its creation, as well as expiration and update dates.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

 Service Level
100%
 Response Time
4,172ms

Category:


Related APIs