Crunchbase API PHP Class

CrunchBase is the free database of technology companies, people, and investors that anyone can edit. Crunchbase has a lot of good data on business organizations and for that reason I quickly put together a small class for obtaining that information from there API.
Its real simple and basic. It just hits there API url using the file_get_contents function, json_decodes it into a regular PHP array and return’s it to you. The current example does a look-up for “Neustar” and I have given the response example below the code snippet.

All that’s missing is adding your CrunchBase API key to the $API_key variable.

Class:

<?php
$API_key = "";
class CrunchBase
{
    public function OrgLookup($org) 
    {
        $url = "http://api.crunchbase.com/v/1/company/".$org.".js?api_key=".$API_key;
        $contents = file_get_contents($url);
        $data = json_decode($contents);
        return $data;
    }
}
$crunchbase = new CrunchBase;
$lookup = $crunchbase->OrgLookup("Neustar");
print_r($lookup);
?>

Response Example:

stdClass Object ( [name] => Neustar [permalink] => neustar [crunchbase_url] => http://www.crunchbase.com/company/neustar [homepage_url] => http://www.neustar.biz/ [blog_url] => http://www.neustar.biz/blog/ [blog_feed_url] => feed://www.neustar.biz/blog/feed/ [twitter_username] => neustar [category_code] => public_relations [number_of_employees] => 1500 [founded_year] => 1996 [founded_month] => [founded_day] => [deadpooled_year] => [deadpooled_month] => [deadpooled_day] => [deadpooled_url] => [tag_list] => information, analysis, information-services, addressing, routing [alias_list] => UltraDNS [email_address] => [phone_number] => 571-434-5400 [description] => Information Technology and Services [created_at] => Sat Dec 06 00:55:20 UTC 2008 [updated_at] => Wed Jul 03 16:18:11 UTC 2013 [overview] =>

Neustar, Inc. (NYSE: NSR) is a trusted, neutral provider of information and analysis to the Internet, telecommunications, entertainment, advertising and marketing industries throughout the world. Neustar applies its advanced, secure technologies in routing, addressing and authentication to its customers’ data to help them identify new revenue opportunities, network efficiencies, and cyber security and fraud protection measures.

Neustar was originally founded in 1996 to meet the technical and operational challenges that arose when the U.S. Government mandated local number portability. Today, Neustar solves the world’s most complex global challenges through data insights and intelligence for the Internet, telecommunications, entertainment, advertising and marketing industries. Neustar has three defined business segments: Carrier Services, Enterprise Services and Information Services.

Within the United States and Canada, Neustar operates the authoritative directories that manage virtually all telephone area codes and numbers, and enables the routing of calls among thousands of competing Communications Service Providers (CSPs). All telecommunications service providers (TSPs) that offer telecommunications services to the public at large must access the Neustar clearinghouse to properly route virtually all of their customers’s calls. Also, Neustar provides clearinghouse services to emerging CSPs, including Internet service providers (ISPs), mobile network operators, cable television operators, and voice over Internet protocol (VoIP) service providers.

In addition, Neustar offers internal and external managed DNS services that play a key role in directing and managing traffic on the Internet, manages the authoritative directories for the .us and .biz Internet domains, and acts as the worldwide “registry gateway” for China’s .cn and Taiwan’s .tw Internet domains outside of these two countries. Neustar also operates the authoritative directory for U.S. Common Short Codes, part of the short messaging service (SMS) relied upon by the U.S. wireless industry, and provides solutions used by mobile network operators worldwide to enable mobile instant messaging for their end users.
[image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 150 [1] => 38 ) [1] => assets/images/resized/0006/5948/65948v1-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 250 [1] => 64 ) [1] => assets/images/resized/0006/5948/65948v1-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 285 [1] => 73 ) [1] => assets/images/resized/0006/5948/65948v1-max-450x450.jpg ) ) [attribution] => ) [products] => Array ( ) [relationships] => Array ( [0] => stdClass Object ( [is_past] => [title] => Senior Vice President and Chief Technology Officer [person] => stdClass Object ( [first_name] => Mark [last_name] => F Bregman [permalink] => mark-f-bregman [image] => ) ) [1] => stdClass Object ( [is_past] => [title] => President and Chief Executive Officer [person] => stdClass Object ( [first_name] => Lisa [last_name] => A Hook [permalink] => lisa-a-hook [image] => ) ) [2] => stdClass Object ( [is_past] => [title] => Senior Vice President and Chief Financial Officer [person] => stdClass Object ( [first_name] => Paul [last_name] => S Lalljie [permalink] => paul-s-lalljie [image] => ) ) [3] => stdClass Object ( [is_past] => [title] => Senior Vice President, Carrier Services [person] => stdClass Object ( [first_name] => Steve [last_name] => J. Edwards [permalink] => steve-j-edwards [image] => ) ) [4] => stdClass Object ( [is_past] => [title] => Director - Business Development Strategic Accounts [person] => stdClass Object ( [first_name] => Jean-Louis [last_name] => Casabonne [permalink] => jean-louis-casabonne [image] => ) ) [5] => stdClass Object ( [is_past] => 1 [title] => Chief Synergy Officer [person] => stdClass Object ( [first_name] => George [last_name] => Moore [permalink] => george-moore-2 [image] => ) ) [6] => stdClass Object ( [is_past] => 1 [title] => VP, Registry Services [person] => stdClass Object ( [first_name] => Richard [last_name] => Tindal [permalink] => richard-tindal [image] => ) ) [7] => stdClass Object ( [is_past] => 1 [title] => General Counsel and Senior Vice President [person] => stdClass Object ( [first_name] => Scott [last_name] => Blake Harris [permalink] => scott-blake-harris [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 99 [1] => 150 ) [1] => assets/images/resized/0021/4928/214928v2-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 166 [1] => 250 ) [1] => assets/images/resized/0021/4928/214928v2-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 299 [1] => 450 ) [1] => assets/images/resized/0021/4928/214928v2-max-450x450.jpg ) ) [attribution] => ) ) ) [8] => stdClass Object ( [is_past] => 1 [title] => Board [person] => stdClass Object ( [first_name] => Eric [last_name] => Ver Ploeg [permalink] => eric-ver-ploeg [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 99 [1] => 150 ) [1] => assets/images/resized/0008/0906/80906v2-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 166 [1] => 250 ) [1] => assets/images/resized/0008/0906/80906v2-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 182 [1] => 274 ) [1] => assets/images/resized/0008/0906/80906v2-max-450x450.jpg ) ) [attribution] => ) ) ) [9] => stdClass Object ( [is_past] => 1 [title] => [person] => stdClass Object ( [first_name] => Eric [last_name] => Eden [permalink] => eric-eden [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0014/4984/144984v2-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0014/4984/144984v2-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0014/4984/144984v2-max-450x450.jpg ) ) [attribution] => ) ) ) [10] => stdClass Object ( [is_past] => 1 [title] => Strategic Evangelist - Neustar Enterprise Services [person] => stdClass Object ( [first_name] => Jean-Louis [last_name] => Casabonne [permalink] => jean-louis-casabonne [image] => ) ) [11] => stdClass Object ( [is_past] => 1 [title] => Managing Director [person] => stdClass Object ( [first_name] => Daniele [last_name] => Gabbai [permalink] => daniele-gabbai-3 [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 68 [1] => 150 ) [1] => assets/images/resized/0028/3737/283737v2-max-150x150.png ) [1] => Array ( [0] => Array ( [0] => 113 [1] => 250 ) [1] => assets/images/resized/0028/3737/283737v2-max-250x250.png ) [2] => Array ( [0] => Array ( [0] => 204 [1] => 450 ) [1] => assets/images/resized/0028/3737/283737v2-max-450x450.png ) ) [attribution] => ) ) ) [12] => stdClass Object ( [is_past] => 1 [title] => Sr Director, Product Management [person] => stdClass Object ( [first_name] => Vincent [last_name] => Lee [permalink] => vincent-lee [image] => ) ) [13] => stdClass Object ( [is_past] => 1 [title] => Senior Director, Product Management [person] => stdClass Object ( [first_name] => Rick [last_name] => Rumbarger [permalink] => rick-rumbarger [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0026/0701/260701v1-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0026/0701/260701v1-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 100 [1] => 100 ) [1] => assets/images/resized/0026/0701/260701v1-max-450x450.jpg ) ) [attribution] => ) ) ) [14] => stdClass Object ( [is_past] => 1 [title] => Managing Director [person] => stdClass Object ( [first_name] => Daniele [last_name] => Gabbai [permalink] => daniele-gabbai [image] => ) ) ) [competitions] => Array ( ) [providerships] => Array ( ) [total_money_raised] => $0 [funding_rounds] => Array ( ) [investments] => Array ( ) [acquisition] => [acquisitions] => Array ( [0] => stdClass Object ( [price_amount] => 21700000 [price_currency_code] => USD [term_code] => cash [source_url] => http://www.sec.gov/Archives/edgar/data/1265888/000095012310097454/w79856e10vq.htmhttp://venturebeat.com/2010/11/05/neustar-acquires-quova/ [source_description] => Neustar SEC filing [acquired_year] => 2010 [acquired_month] => 11 [acquired_day] => 5 [company] => stdClass Object ( [name] => Quova [permalink] => quova [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 150 [1] => 48 ) [1] => assets/images/resized/0002/3361/23361v1-max-150x150.png ) [1] => Array ( [0] => Array ( [0] => 165 [1] => 53 ) [1] => assets/images/resized/0002/3361/23361v1-max-250x250.png ) [2] => Array ( [0] => Array ( [0] => 165 [1] => 53 ) [1] => assets/images/resized/0002/3361/23361v1-max-450x450.png ) ) [attribution] => ) ) ) [1] => stdClass Object ( [price_amount] => 650000000 [price_currency_code] => USD [term_code] => cash [source_url] => http://techcrunch.com/2011/10/11/neustar-to-acquire-on-demand-customer-insight-provider-targusinfo-for-650-million/ [source_description] => NeuStar To Acquire On-Demand Customer Insight Provider TARGUSinfo For $650 Million [acquired_year] => 2011 [acquired_month] => 10 [acquired_day] => 11 [company] => stdClass Object ( [name] => TARGUSinfo [permalink] => targusinfo [image] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 150 [1] => 28 ) [1] => assets/images/resized/0006/6272/66272v1-max-150x150.jpg ) [1] => Array ( [0] => Array ( [0] => 250 [1] => 48 ) [1] => assets/images/resized/0006/6272/66272v1-max-250x250.jpg ) [2] => Array ( [0] => Array ( [0] => 307 [1] => 59 ) [1] => assets/images/resized/0006/6272/66272v1-max-450x450.jpg ) ) [attribution] => ) ) ) ) [offices] => Array ( [0] => stdClass Object ( [description] => HQ [address1] => 21575 Ridgetop Circle [address2] => [zip_code] => 20166 [city] => Sterling [state_code] => VA [country_code] => USA [latitude] => [longitude] => ) ) [milestones] => Array ( [0] => stdClass Object ( [description] => Neustar Enters Into a Definitive Agreement to Acquire Evolving Systems' Numbering Solutions Assets [stoned_year] => 2011 [stoned_month] => 4 [stoned_day] => 21 [source_url] => http://technews.tmcnet.com/news/2011/04/21/5460227.htm [source_text] => [source_description] => Neustar Enters Into a Definitive Agreement to Acquire Evolving Systems' Numbering Solutions Assets [stoneable_type] => Company [stoned_value] => [stoned_value_type] => [stoned_acquirer] => [stoneable] => stdClass Object ( [name] => Neustar [permalink] => neustar ) ) ) [ipo] => [video_embeds] => Array ( [0] => stdClass Object ( [embed_code] => [description] =>

Neustar Overview
) ) [screenshots] => Array ( [0] => stdClass Object ( [available_sizes] => Array ( [0] => Array ( [0] => Array ( [0] => 150 [1] => 123 ) [1] => assets/images/resized/0017/3921/173921v2-max-150x150.png ) [1] => Array ( [0] => Array ( [0] => 250 [1] => 205 ) [1] => assets/images/resized/0017/3921/173921v2-max-250x250.png ) [2] => Array ( [0] => Array ( [0] => 450 [1] => 369 ) [1] => assets/images/resized/0017/3921/173921v2-max-450x450.png ) ) [attribution] => ) ) [external_links] => Array ( ) ) 

For more information on CrunchBase, the data it holds, and its API, go to http://www.crunchbase.com/

4 Responses to Crunchbase API PHP Class

  1. Thanks for this! How do I extract one of the values though on its own? Been playing around with this & I’ve been having a hard time. Would appreciate any help! :-)

  2. Hi Janice. No problem!

    $crunchbase = new CrunchBase;
    $lookup = $crunchbase->OrgLookup(“Neustar”);
    print_r($lookup);

    So $lookup is the array of objects.

    To utilize these values:

    echo $lookup->name;
    echo $lookup->blog_feed_url

  3. hi sir

    hi i have a create a ip useing with neuster ip intelligence in php code plese reply me my email

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>