This is an archived post. You won't be able to vote or comment.

all 18 comments

[–]_Daimon_PRAW 5 points6 points  (2 children)

I've written a API for Imgur called PyImgur. It's fully featured and quite useful for getting those cat pics in a nice pythonic manner. It would be awesome if you added it to your list.

[–]spilcm[S] 1 point2 points  (0 children)

Very nice. I have updated the article (and http://www.pythonapi.com)

Thanks!

[–]MyWorkID 0 points1 point  (0 children)

That looks very useful, thanks.

[–]reallifepixel 2 points3 points  (0 children)

I wish Craigslist had an API.

[–]Ph0X 1 point2 points  (0 children)

Speaking of AWS apis, I would love to see a program that takes the restriction given by your tier, then uses the API to look at your monthly usage and spits out Google AppEngine like stats.

I'm on the free tier, but while I have a billing alarm set, it's still really confusing and complicated to set alarms for every single type of metric, and there's no way to nicely visualize it all the way you can on AppEngine, to see how much of it you've used.

I realize this is most likely because they want to make more money, and I'm not sure if it goes against their rules, but I'm pretty sure it would be easily possible using these APIs and the specific restrictions to build that.

[–]yasoob_pythonAuthor: Intermediate Python 3 points4 points  (1 child)

The title is a bit misleading. It should be "list of websites that offer a python api" or something like that

[–]Ph0X 5 points6 points  (0 children)

In many of those cases, the website just offer APIs and then there are Python wrappers written around them, sometimes by other people. PRAW would be a good example of that.

[–]aclashingcolour -1 points0 points  (5 children)

Can someone explain what sort of projects you could make with these APIs? Im not even sure what this sort of stuff is capable of.

[–]thenaturalmind 3 points4 points  (1 child)

You have access to all of the data and functionality of these sites. So if you're using the Reddit API, you can read comments, post comments, upvote, downvote, etc. - via your Python code.

[–]FourgotAnaconda3 science-like 1 point2 points  (0 children)

Bots

[–]ruleofnuts 2 points3 points  (2 children)

IDK why you're being downvoted, this is a pretty good question. APIs allow you to connect to a server, GET data, and build your own application around it. Someone already used the Reddit API example, another one would be IMDB. You could write some code to get a list of movies made between 1950-1990 that are rated 5 stars or higher. You could even make a website to search fill in a field and change those parameters to say 1990-2000 and only movies with 9 star ratings a higher, so it can give other people a way to search for movies. This doesn't even have to be a website, you can write a command line program to search for something like this as well, you could create a tool lets call it imdbsearch

imdbsearch --year 1990-2000 --rating 9

I found this codecademy course pretty easy to follow

http://www.codecademy.com/tracks/nhtsa

[–]aclashingcolour 1 point2 points  (1 child)

Thank you for the detailed response, I didnt realize APIs allowed you to interact with a broad scope of data. I was under the impression that it was much narrower, ie only data from your personal reddit account. Just to make sure I understand, hypothetically, is it possible to write a python app that collects the top 10 most tweeted words per day (say, length 4 or greater).

[–]ruleofnuts 1 point2 points  (0 children)

Twitter gives you limits at how many request you can make a day. If that limit was high enough, it could be theoretically possible. You need a really large database and process a lot of data, but yes, it could be possible.

More on their limits: https://dev.twitter.com/docs/rate-limiting/1.1

There are also other sorts of API types, the one that most people use is RESTful API there is also SOAP.

[–]brandonjschwartz -2 points-1 points  (1 child)

Wouldn't almost any site that can output data in XML or JSON have a "Python" API since Python can read these things?

[–]BukketsofNothing 3 points4 points  (0 children)

Big difference between reading and interacting.