Skip to content

Instantly share code, notes, and snippets.

@alertor
Created August 2, 2016 09:49
Show Gist options
  • Save alertor/0fc82f6db3c68bb09ba59aed8829c222 to your computer and use it in GitHub Desktop.
Save alertor/0fc82f6db3c68bb09ba59aed8829c222 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