Extract News

Extract a news article from a website to a well structure JSON object. The API will return the title, text, URL, images, videos, publish date, authors, language, source country, and sentiment of the news article.

Image have captions and if possible also dimensions. Videos have a summary, duration, the url of the media, and thumbnail.

If the analyze parameter is set to true, the API will also analyze the detected named entities of the news article.

GET
https://api.worldnewsapi.com/extract-news
Example Request and Response
GET
https://api.worldnewsapi.com/{{ examples.getExtractNews }}
{
    "title": "Known terrorist spent year in US after being wrongly released by feds — and GOP lawmakers demand answers",
    "text": "A Somali terrorist was allowed into the country and was able to operate freely for almost a year before authorities realized their error and rearrested him. Republican lawmakers are demanding information from Homeland Security Secretary Alejandro Mayorkas about what happened to the man — and whether US citizens funded any part of his journey to or stay in the US. The 27-year-old Somalian — who so far has not been identified by name — was on the watchlist as “a confirmed member of al Shabaab” involved in the use, manufacture or transportation of explosives or firearms, but a border bungle meant he was released after initially being arrested for crossing into the country illegally in California in March 2023. A letter from Republican lawmakers seeks to find the al-Shabaab member’s path from illegally crossing the border to Minnesota, were he was eventually rearrested in January, and whether he received any government benefits. It also seeks to find if he took a commercial flight with US citizens to reach their state and if his travel was funded with taxpayer dollars, according to the Tuesday letter, first obtained by The Post. The letter states: “Due to Minnesota’s far distance from the border, it is not an easy task for migrants to travel to the state … “Did the al-Shabbab terrorist travel to Minnesota with the assistance, either direct or indirect of an [Non-Governmental Organization]? If so, which NGO was responsible for transporting the individual to Minnesota?” The terrorist organization member had initially crossed into California and been arrested by the Border Patrol. However, the Terrorist Screening Center determined he was a “mismatch” to the terror watchlist, leading to his release. Nearly a year later, Immigration and Customs Enforcement (ICE) nabbed him after federal authorities made a “redetermination” and realized he was associated with the Somalian militant group. Al-Shabaab was formed as the militant wing of the Somali Council of Islamic Courts, which controlled the southern part of the country in late 2006. Its rule was defeated in 2007, according to the Office of the Director of National Intelligence, but it has since operated as an underground network and is involved in wars in and around Somalia. It was designated a terrorist organization in 2008 by the US government and is notorious for carrying out bombings and suicide attacks. In 2013, al-Shabaab was responsible for a massacre at the Westgate mall in Kenya, killing 67 individuals. US forces have conducted six strikes in Somalia against al-Shabaab already this year, killing two dozen militants in the latest actions, according to CNN. In a February press conference, ICE Acting Director Patrick Lechleitner said his agency arrested the individual “within 48 hours” of learning his true identity. “The Biden administration’s open-borders agenda allowed a known terrorist to roam freely throughout our state, and now they must answer for their inexcusable negligence,” House Majority Whip Tom Emmer (R-Minn.) said in a statement to The Post regarding the probe. The Border Patrol has recorded an ever-growing number of migrants listed on the terror watchlist attempting to enter the US illegally in recent years. Between October 2023 and February, agents have already recorded 70 encounters at both the southern and northern borders, according to federal data. There were 172 such encounters recorded in fiscal year 2023, which ran from October 2022 to September 2023, 98 in fiscal year 2022, 16 in fiscal year 2021 and 14 between fiscal years 2017 and 2020. In March, Border Patrol agents apprehended Lebanese national Basel Bassel Ebbadi, 22, who told personnel that he came to the US “to try to make a bomb,” according to internal federal documents first obtained by The Post. Ebbadi admitted to a border agent that he is a member of Hezbollah and was later confirmed as a “positive match” on the terror watchlist.",
    "url": "https://nypost.com/2024/04/02/us-news/lawmakers-demand-to-know-if-taxpayers-funded-al-shabaab-terrorist/",
    "image": "https://nypost.com/wp-content/uploads/sites/2/2024/04/al-shabaab-terrorist-migrant-border-crossing-california-minnesota-mayorkas-comp-02.jpg?quality=75&strip=all&w=1200",
    "images": [
        {
            "title": "Masked al-Shabaab members hold up weapons",
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/2010-somalias-hardline-islamist-rebel-39796525.jpg?w=1024",
            "width": 879,
            "height": 590
        },
        {
            "title": "Members of al-Shabaab",
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/2010-al-shabaab-said-friday-39807171.jpg?w=1024",
            "width": 787,
            "height": 590
        },
        {
            "title": "Border Patrol agents apprehend migrants",
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/migrants-placed-vans-u-s-78334041.jpg?w=1024",
            "width": 943,
            "height": 590
        },
        {
            "title": "Migrants await to be transported by Border Patrol agents",
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/asylum-seeking-migrants-stand-line-71972565.jpg?w=1024",
            "width": 885,
            "height": 590
        },
        {
            "title": "Border Patrol vehicle",
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/u-s-border-patrol-vehicle-56717052.jpg?w=1024",
            "width": 885,
            "height": 590
        },
        {
            "url": "https://nypost.com/wp-content/uploads/sites/2/2024/04/al-shabaab-terrorist-migrant-border-crossing-california-minnesota-mayorkas-comp-02.jpg?quality=75&strip=all&w=1200",
            "width": 1200,
            "height": 800
        }
    ],
    "video": "https://cdn.jwplayer.com/videos/Den1Nq47-RyIcpnTz.mp4",
    "videos": [
        {
            "title": "Today's Video Headlines",
            "url": "https://cdn.jwplayer.com/videos/Den1Nq47-RyIcpnTz.mp4",
            "summary": "Today's Video Headlines: 4/2/24",
            "duration": 61,
            "thumbnail": "https://cdn.jwplayer.com/v2/media/Den1Nq47/poster.jpg?width=720"
        }
    ],
    "publish_date": "2024-04-02 17:13:12",
    "author": "Jennie Taer",
    "authors": [
        "Jennie Taer"
    ],
    "language": "en"
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}