Skip to content
Example code to retrieve METAR weather from
Branch: master
Clone or download
Henry Petry
Henry Petry Updated code comments
Latest commit 4ee651d Apr 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
jquery Updated code comments Apr 4, 2019
php Updated code comments Apr 4, 2019
.gitignore Added error checking to jQuery example Apr 4, 2019
LICENSE Initial commit Apr 4, 2019 Examples

These are very simple source code examples to help you get started in retreiving and displaying decoded METAR weather reports from

Source Examples

Currently there are two source code examples in this repository.

  • One HTML example written using jQuery
  • One HTML example written using PHP
  • Both examples produce the same sample output shown below


  • You must use your own API key to run these examples
  • You can get a free API key at
  • The examples do not cover all the METAR fields that are returned from the API
  • You can add additional METAR fields to any example

Sample Output:


You can’t perform that action at this time.