Skip to content

Instantly share code, notes, and snippets.

@mayeaux
Created July 16, 2019 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayeaux/ffb7a20f0a871bcc540016924ac67eb2 to your computer and use it in GitHub Desktop.
Save mayeaux/ffb7a20f0a871bcc540016924ac67eb2 to your computer and use it in GitHub Desktop.
BuzzFeed API - hackNY hackathon
                                               .--.
                                               `.  \
                                                 \  \
                                                  .  \
                                                  :   .
                                                  |    .
                                                  |    :
                                                  |    |
  ..._  ___                                       |    |
 `."".`''''""--..___                              |    |
 ,-\  \             ""-...__         _____________/    |
 / ` " '                    `""""""""                  .
 \                                                      L
 (>                                                      \
/                                                         \
\_    ___..---.                                            L
  `--'         '.                                           \
                 .                                           \_
                _/`.                                           `.._
             .'     -.                                             `.
            /     __.-Y     /''''''-...___,...--------.._            |
           /   _."    |    /                ' .      \   '---..._    |
          /   /      /    /                _,. '    ,/           |   |
          \_,'     _.'   /              /''     _,-'            _|   |
                  '     /               `-----''               /     |
                  `...-'     dp                                `...-'

via chris.com

#BuzzFeed API

The following 3 endpoints are public. That means: no need for authentication !!

Also if you'd like to access our API from the frontend, all the enpoints support JSONP. Simply append ?jsonp=xyz to the endpoint URL.

##Feeds Get JSON representation of any feed page on buzzfeed.com, i.e. /news, /lol, /bensmith, /life

Examples:

NOTE: Disregard ad_backfill. flow is what contains the actual feed content.

##Articles Get a JSON representation of a BuzzFeed article. For that you'll need to know the buzz_id of the article, which you can easily find in the object returned by the Feeds API.

Examples:

NOTE: The body of each article is composed of an array of ordered sub_buzzes. Each sub_buzz has a specific type (see form field). Here are some examples of sub_buzz types text, image, image_group, quiz, tweet, etc.

##Comments Get a JSON representation of the comments section of a specific article. Like the Articles endpoint, you'll need a buzz_id.

Examples:

NOTE: Not all BuzzFeed articles have comments! For example, news articles do not.


Enjoy!

The BuzzFeed Tech Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment