Developers
Randompic Feed

GET Randompic

Returns a random aviation photo and it’s metadata from the AviaMagazine site. The aviation interest can be specified in the request to personalize the response.

Resource Url: http://www.aviamagazine.com/randompic.json.ashx

Parameters:

Response format : JSON

HTTP methods : GET

Response object : photo

Rate limit : No

Api version : 1.0

Object Description
type
optional
If supplied, the return will be a military, civil or both photo. Valid types are “mil”, “civ”, “both” or empty which leads to the default: both. Example: mil
callback
optional
If supplied, the response will use the JSONP format with a callback of the given name.

Request example:

GET http://www.aviamagazine.com/randompic.json.ashx?type=civ

Response example:

                    {
                        "about": "AviaMagazine Random Photo",
                        "support": "http://www.aviamagazine.com/about/developer.aspx",
                        "version": "1.0",
                        "aviation_type": -1,
                        "created": "2012-10-02T20:52:39.8214022+02:00",
                        "photo": {
                            "id": "3306168795",
                            "type": "JAS-39A",
                            "type_short": "JAS-39",
                            "serial": "-",
                            "unit_airline": "F 17",
                            "origin": "SwedAF",
                            "taken_at": "Ronneby, Sweden",
                            "date": "30 aug 2004",
                            "photo_by": "Frits Jongerman",
                            "remarks": "",
                            "views": "382",
                            "page_link": "http://www.aviamagazine.com/gallery/photoview.aspx?id=3306168795",
                            "photo_url": "http://www.aviamagazine.com/photohandler.ashx?id=3306168795"
                        }
                    }    
                
Comments
You need to be logged in as Aviamagazine member or connected with Facebook to post a comment.