Skip to content

A multi-language set of API libraries for getting details AmberAlert information

Notifications You must be signed in to change notification settings

loxadim/amber-alert-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Amber Alert API Libraries

This is a multi-language library for getting AmberAlert details by state and case number. Right now, it only supports PHP, but that will change.

AmberAlert API?

Right now, there isn't an official way to "programmatically" pull AmberAlert data from either AmberAlert.gov or the National Center for Missing Children.

An unofficial service with a RESTful API is available at www.missingkidsbot.org that parses the RSS feed from missingkids.org similar to what is outlined below.

Parsing RSS

The methodology of this library is to use NCMC's internal webservice call intented for their online "poster", which contains all the missing person information.

For a call to get missing persons by state, it first reads the publically available RSS feed, parses out the case number, and uses that case number to call the aforementioned webservice call.

Example (by State)

# Get the last Amber Alert for NJ

require '../AmberAlert.php';
print_r(AmberAlert::getMostRecentAlertByState('NJ', true));

... which outputs ...

stdClass Object
(
    [hasAgedPhoto] =>
    [hasExtraPhoto] => 1
    [possibleLocation] =>
    [caseNumber] => 1245612
    [orgPrefix] => NCMC
    [seqNumber] => 1
    [langId] => en_US
    [userLangId] => en_US
    [firstName] => DONTEL
    [lastName] => MICHAELS
    [middleName] =>
    [approxAge] =>
    [sex] => male
    [race] => black
    [birthDate] => Mar 23, 1999 12:00:00 AM
    [height] => 75
    [heightInInch] => 1
    [weight] => 165
    [weightInPound] => 1
    [eyeColor] => black
    [hairColor] => black
    [hasPhoto] => 1
    [hasThumbnail] => 1
    [hasPoster] => 1
    [otherChildList] => Array
        (
        )

    [otherCsawList] => Array
        (
        )

    [caseType] => endangeredRunaway
    [missingDate] => Mar 9, 2015 12:00:00 AM
    [missingCity] => PATERSON
    [missingCounty] => Passaic
    [missingState] => NJ
    [missingProvince] =>
    [missingCountry] => US
    [circumstance] => Both photos shown are of Dontel.  He was last seen on March 9, 2015.  Dontel may wear his hair in a pony tail.
    [profileNarrative] =>
    [orgName] => National Center for Missing & Exploited Children
    [orgContactInfo] => 1-800-843-5678 (1-800-THE-LOST)
    ...

License

The MIT License

Copyright (c) 2008-2015 Kenny Katzgrau katzgrau@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A multi-language set of API libraries for getting details AmberAlert information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 58.7%
  • Ruby 41.3%