Need help with extract-news-api?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

204 Stars 32 Forks MIT License 18 Commits 5 Opened issues


Flask code to deploy an API that pulls structured data from online news articles

Services available


Need anything else?

Contributors list

# 66,889
18 commits


Flask code to deploy an API that pulls structured data from online news articles.

This is a source code of an API that you can find here (free plan available):

Quick Start

  1. Clone the repository to your local folder

git clone
  1. Create a Python virtual environment (3.6+)

python -m venv env
  1. Activate the environment

source env/bin/activate
  1. Run
    pip install -r extract-news-ap/requirements.txt
  2. Run
    python extract-news-ap/
    in your terminal

If everything is OK then you should be able to check your API on

Example of request:

Example of Response Body

    "status": "ok",
    "article": {
        "source_url": "",
        "published": "Sat, 21 Mar 2020 23:31:12 GMT",
        "published_method_found": "Extracted from tag:\n",
        "published_guess_accuracy": "datetime",
        "title": "The Hottest Parties in Town Are Now Online",
        "text": "On Friday night there was one place in the country where you could take part in a social gathering and not be afraid of spreading or contracting the coronavirus.\n\nOver 4,000 people were in attendance, including headliners like Jennifer Lopez, Drake, Naomi Campbell, Diddy, Mary J. Blige, DJ Khaled, T.I., Queen Latifah and Tracee Ellis Ross.\n\nThere was no charge at the door, no security, no drink minimum and you could attend in your pajamas from the comfort of your own home.\n\nThe party, named Homeschoolin’, was easy to find: It was on D.J. D-Nice’s Instagram live.\n\nSince Wednesday, Derrick Jones, 49, more popularly known as D-Nice, has held streams of hourslong jam sessions from his home in Los Angeles. He plays all of the hits, new and old, but you never hear the same song twice.",
        "authors": [
            "Sandra E. Garcia"
        "images": [
        "top_image": "",
        "meta_image": "",
        "movies": [],
        "meta_keywords": [
        "tags": [],
        "meta_description": "As many are quarantining or socially distancing themselves to curb the spread of the coronavirus, the party has moved to social media.",
        "meta_lang": "en",
        "title_lang": "en",
        "text_lang": "en",
        "meta_favicon": "/vi-assets/static-assets/favicon-4bf96cb6a1093748bf5b3c429accb9b4.ico"

Good to use in combination with


Newscatcher Python library allows you to collect normalized news from (almost) any website.

Newscatcher API

Newscatcher API is a news API that allows you to find the most relevant news artiles by searching for any keywod.

Built with

Flask Copyright 2010 Pallets

newspaper Copyright (c) 2013 Lucas Ou-Yang

date_guesser Copyright (c) 2018 MIT Center for Civic Media

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.