stevieb9
Posts: 15
Joined: Fri Jan 13, 2017 2:40 pm

raspberrypi.org API?

Sat Mar 23, 2019 8:48 pm

Hi all,

I'm the author of the WiringPi::API Perl wrapper to Gordon's WiringPi, the RPI::WiringPi Perl distribution that uses *WiringPi::API* and aggregates several other Perl distributions for sensors, ICs etc that I've also written.

Recently, I've teamed up with someone who maintains PiFlash, a Perl distribution that aids in the flashing of SD cards for the Raspberry Pi.

I suggested to Ian, the author of *PiFlash*, that it would be useful if the software could automatically fetch images from the Raspberry Pi download site. We bantered a bit, and although it'd be trivial to scrape (or just use hard links), things change from time-to-time.

My question is thus: Does the Raspberry Pi website have a back end API that could be used to glean this information? If not, is there a master list of all downloads that could be exposed on the web linking the varying versions to actual download files (JSON for example).

If not, and this is something that interests people, I'd be glad to donate some time to help with such an implementation.

-stevieb

Andyroo

Re: raspberrypi.org API?

Sat Mar 23, 2019 8:55 pm

Could you pull the files from the archive?

http://downloads.raspberrypi.org/raspbian/images/

No idea one term if they will move the lite etc in here.

User avatar
B.Goode
Posts: 8874
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: raspberrypi.org API?

Sat Mar 23, 2019 8:57 pm

Are you aware of the 'back end' server that serves the images pointed to by the official Downloads 'front end'?

Archives of everything ever released...

https://downloads.raspberrypi.org



@AndyRoo - the Raspbian Lite images are there too. Navigate to https://downloads.raspberrypi.org/raspbian_lite/images/
Last edited by B.Goode on Sat Mar 23, 2019 9:00 pm, edited 1 time in total.

stevieb9
Posts: 15
Joined: Fri Jan 13, 2017 2:40 pm

Re: raspberrypi.org API?

Sat Mar 23, 2019 9:00 pm

This looks very much what I'm looking for, particularly the JSON files.

I'd never run into the archive site in the past directly.

I'll do some scouring to get an understanding of everything, and go from there.

Thanks much!

DirkS
Posts: 9966
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspberrypi.org API?

Sat Mar 23, 2019 9:02 pm

There's also an RSS feed for download updates
http://downloads.raspberrypi.org/rss.xml

User avatar
B.Goode
Posts: 8874
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: raspberrypi.org API?

Sat Mar 23, 2019 9:05 pm

stevieb9 wrote:
Sat Mar 23, 2019 9:00 pm
This looks very much what I'm looking for, particularly the JSON files.

I'd never run into the archive site in the past directly.

I'll do some scouring to get an understanding of everything, and go from there.

Thanks much!

If you are going to build a service around this perhaps check, via email, with someone in authority at RPF that it is a 'stable' interface before committing to using it?

For example, there has recently been a change in the way that Raspbian is packaged, going from 2 versions to 3... With consequent changes to naming.


All responses in this thread have come from other users, not speaking on behalf of the RPF organisation.

stevieb9
Posts: 15
Joined: Fri Jan 13, 2017 2:40 pm

Re: raspberrypi.org API?

Sat Mar 23, 2019 9:08 pm

B.Goode wrote:
Sat Mar 23, 2019 9:05 pm
If you are going to build a service around this perhaps check, via email, with someone in authority at RPF that it is a 'stable' interface before committing to using it?
I was just about to ask about the stability of the data. I've got an email in already, so I'll post back when I receive any information.

Otherwise, if anyone "official" here knows, please feel free to add your two cents.

-stevieb

Andyroo

Re: raspberrypi.org API?

Sat Mar 23, 2019 9:15 pm

@B.Goode - thanks for that. I’d never actually explored the parent directories :oops: as I only used this once last year and bookmarked it for some reason :lol:

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6033
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: raspberrypi.org API?

Mon Mar 25, 2019 7:14 am

There are no plans to change anything right now, but there's no committent to keeping everything the same either.

As others have said, downloads.raspberrypi.org is probably your best bet.
Only Raspbian images are properly maintained - almost everything else is mostly there just in case anybody still needs it.

These may be of interest:
https://downloads.raspberrypi.org/wp-slice-other
https://downloads.raspberrypi.org/wp-slice-raspbian

Return to “General discussion”