Archive for the ‘api’ Category

[tumblr] extract data from a specific post

There is a specific tumblr post whose content you want to extract. Say it contains an image that you want to grab (sample).

You can use the following API call (example):

post_url = ""

api_call = ""

The output is a JSON answer. For this you need an API key too.

The official API doc is here.

Categories: api Tags: ,

sending e-mails from your app.

If you want to send e-mails from your application, check out You can register for free and with your free account you can also send a good number of e-mails. And if you pay for it, you can send thousands of mails if you want. Their service can be used from Bash, Python, PHP, etc.

On my VPS I used a command-line solution (see here) that sends e-mails with sendmail. Unfortunately, Gmail treats these mails as spam, so it’s not appropriate for sending messages to other people. Mailgun is a better solution.

Categories: api, bash, python Tags: ,

weather information

January 23, 2016 Leave a comment

You need a free weather API.

Use See the API description here.


Sample output:

	"coord": {
		"lon": 19.04,
		"lat": 47.5
	"weather": [
			"id": 600,
			"main": "Snow",
			"description": "light snow",
			"icon": "13n"
			"id": 701,
			"main": "Mist",
			"description": "mist",
			"icon": "50n"
	"base": "cmc stations",
	"main": {
		"temp": -4,
		"pressure": 1034,
		"humidity": 85,
		"temp_min": -4,
		"temp_max": -4
	"wind": {
		"speed": 2.1,
		"deg": 100
	"clouds": {
		"all": 90
	"dt": 1453579200,
	"sys": {
		"type": 1,
		"id": 5724,
		"message": 0.0092,
		"country": "HU",
		"sunrise": 1453530015,
		"sunset": 1453563103
	"id": 3054643,
	"name": "Budapest",
	"cod": 200

As can be seen, the temperature in this city is -4 Celsius.

Categories: api Tags: ,

Rotten Tomatoes has an API

June 12, 2015 Leave a comment

If you want to get info about a movie (e.g. rating, cast, etc.), there is imdbpy, which collects data from IMDb. I just found that Rotten Tomatoes has an API too:

Update (20150622): about two weeks ago I asked for an API key. I’ve got no response since then…

Update (20150623): I got an answer from them! Here it is:

Thank you for your interest in the Rotten Tomatoes API. Unfortunately, we are unable to grant access at this time.

Due to changes in our syndication program, we're currently only offering free API access to domestic students. This may change in the future as we add additional tiers to the program.

-The Rotten Tomatoes Team
Categories: api Tags: , , ,