Publishers of technology books, eBooks, and videos for creative people

Home > Articles

Like this article? We recommend

Web Service Examples

Now let's walk through an example of a PHP-based application for integrating with each of the five web services. To create and run these examples, I used the following test server environment:

  • Linux with Apache web server
  • PHP version 4.3.10 compiled --with-dom and --with-xml enabled

Specifically, the function xml_to_result($dom) is used from Rasmus Lerdorf's sample code in the Yahoo! API SDK (see step 3 in the earlier section "Getting Started") and referenced in all code here as require('xml_to_dom.php'). For a couple of the web services examples, spelling and contextual search, the following PHP functions were used to parse the returned XML results from the REST query:

xml_parser_create()
xml_parser_into_struct()
xml_parser_free()

The $ApplicationID variable value used in all examples is the application ID that Yahoo! provides in step 1 of the process described in the earlier section "Getting Started."

Image Search

Purpose: Random images of the moment, selected by keyword(s).

Description: With each page refresh, a randomized set of the top five images will be returned by keyword (see Figure 1).

Figure 1

Figure 1 Image search.

And now, the code:

<?php
require('xml_to_dom.php'); // this gets the xml_to_dom function
$ApplicationID = 'this is your Yahoo ApplicationID'; // see step 1
$image_keywords = array('sun','space','water','cars'); // random keywords, put whatever you like here
mt_srand(time()); // seed randomizer
$random_index = mt_rand(1, (count($image_keywords))) - 1; // get a random keyword from $images_keywords
$keyword_chosen = $image_keywords[$random_index]; // set random keyword

######## CREATE QUERY ######################
$q = '?query='.rawurlencode($keyword_chosen); // set query parameter to the random keyword chosen
$q = '&results=5'; // get only 5 results (default is 10, max request is 20 results at a time)
$q .= "&appid=$ApplicationID"; // add the required appid (ApplicationID) parameter

// submit the query ($q) to the Image API
$xml = file_get_contents('http://api.search.yahoo.com/ImageSearchService/V1/imageSearch'.$q);
$dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error);
$res = xml_to_result($dom);

######## DISPLAY RESULTS ######################
// determine how many results are returned and show, at most, five results
$num_results = 5;
if( $res['totalResultsReturned'] < 5 ) {
$num_results = $res['totalResultsReturned'];
}

// add required attribution to Yahoo! search
$domhtml = "<i>powered by <a href=\"http://www.yahoo.com/\">Yahoo! search</a>";

// display the total number of results matching the image query
$domhtml .= <br />Matched ${res[totalResultsAvailable]}<br />Top <b>$num_results</b> Results<br /><br />\n";

// loop through the (max) five results, and grab the components needed to assemble the output:
// ClickUrl for the url of the big picture, the Thumbnail Url, Height and Width, and the Title for the ALT tag
for($i=0; $i$value) {
    switch($key) {
    case 'Thumbnail':
        $Thumbnail["Url"] = $value['Url'];
        $Thumbnail["Height"] = $value['Height'];
        $Thumbnail["Width"] = $value['Width'];
    break;
      case 'ClickUrl':
        $clickUrl = $value;
      break;
      case 'Title':
        $Title = $value;
      break;
    }
  }
  // assemble the components into a clickable image that opens in a new browser window
  $domhtml .= "<a href=\"$clickUrl\" target=\"_blank\"><img src='" . $Thumbnail['Url'] . "' ALT='$Title' height='" . $Thumbnail['Height'] . "'width='" . $Thumbnail['Width'] . "' border='0' /></a> ";
}
// output the centered HTML output to the browser
print "<center>$domhtml</center>"; // we're done!
?>

A loop is not needed to access the elements in the multidimensional array. For example, to reference the first search result click_url and thumbnail URL, the following PHP code could be used:

echo $res[0]['ClickUrl'];
echo $res[0]['Thumbnail']['Url'];

The next example shows this being done.

Local Search

Purpose: Find local movie theaters or other businesses by ZIP code in a 20-mile radius.

Description: Form to select business and ZIP code (see Figure 2).

Figure 2

Figure 2 Local search.

Here's the code:

<?php
require('xml_to_dom.php'); // this gets the xml_to_dom function
$ApplicationID = 'this is your Yahoo ApplicationID'; // see step 1
?>
<!-- HTML code for the form -->
Find local movie theaters in a 20-mile radius:<br />
<form action="search-local-example.php" method="GET">
Search for business: <input type="text" value="movie theaters" name="query" /> (movie theaters, banks, etc.)<br />
Address (Zip code or *other): <input type="text" value="<?php echo($_GET['location']);?>" name="location" /> <input type="submit" value=" Go! " /><br />
*Other valid address entries include: <ul>
<li>city, state</li>
<li>city, state, ZIP</li>
<li>street, city, state</li>
<li>street, city, state, ZIP</li>
<li>street, ZIP</li>
</ul>
</form>
<!-- end HTML code for the form -->
<?php
####### CREATE QUERY, IF FORM FILLED OUT ####
if($_GET['location'] != '' AND $_GET['query'] != '') {

$q = '?query='.rawurlencode($_GET['query']); // send parameter for business: movie theaters, banks, etc.
$q .= '&location='.rawurlencode($_GET['location']); // send parameter for location in proper format
$q .= '&radius=20'; // send results for 20-mile radius
$q .= "&appid=$ApplicationID"; // required ApplicationID

// note the different REST URL for localSearch
$xml = file_get_contents('http://api.local.yahoo.com/LocalSearchService/V1/localSearch'.$q);
$dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error);
$res = xml_to_result($dom);

$num_results = 10; // default, but if less than 10 redefine
if( $res['totalResultsReturned'] < 10 ) {
  $num_results = $res['totalResultsReturned'];
}

######## DISPLAY RESULTS ######################
// show number of results and rank by distance from location entered
$domhtml = "Matched ${res[totalResultsAvailable]}<br /><b>$num_results</b> Results displayed (ranked by distance from ${_GET['location']})<br /><br />\n";

// loop through results and format the HTML
for($i=0; $i' . ($i+1) . '.</b> <a href="' . $res[$i]['ClickUrl'] . '" target="_blank">' . $res[$i]['Title'] . '</a><br />';
  $domhtml .= $res[$i]['Address'] . '<br />';
  $domhtml .= $res[$i]['City'] . ', ' . $res[$i]['State'] . '<br /><b>';
  $domhtml .= $res[$i]['Phone'] . '</b><br /> approximately ';
  $domhtml .= $res[$i]['Distance'] . ' mile(s) <br /><br />';
}

// output to HTML with the required 'powered by Yahoo! search' right-aligned
print "$domhtml<p align=\"right\"><i>powered by Yahoo! search</i></p>";
}
?>

News Search

Purpose: Top 25 headlines by keyword in selectable languages, sorted by most recent.

Description: Form to select keyword and supported languages (see Figure 3).

Figure 3

Figure 3 News search.

I used this code:

<?php
require('xml_to_dom.php'); // this gets the xml_to_dom function
$ApplicationID = 'this is your Yahoo ApplicationID'; // see step 1

// fill array of valid languages: http://developer.yahoo.net/documentation/languages.html
$valid_languages = array("arabic"=>'ar', "bulgarian"=>'bg',
  "catalan"=>'ca',"chinese-simplified"=>'szh',
  "chinese-traditional"=>'tzh',"croatian"=>'hr',
  "czech"=>'cs',"danish"=>'da',
  "dutch"=>'nl',"english"=>'en',
  "estonian"=>'et',"finnish"=>'fi',
  "french"=>'fr',"german"=>'de',
  "greek"=>'el',"hebrew"=>'he',
  "hungarian"=>'hu',"icelandic"=>'is',
  "indonesian"=>'id',"italian"=>'it',
  "japanese"=>'ja',"korean"=>'ko',
  "latvian"=>'lv',"lithuanian"=>'lt',
  "norwegian"=>'no',"persian"=>'fa',
  "polish"=>'pl',"portuguese"=>'pt',
  "romanian"=>'ro',"russian"=>'ru',
  "slovak"=>'sk',"serbian"=>'sr',
  "slovenian"=>'sl',"spanish"=>'es',
  "swedish"=>'sv',"thai"=>'th',
  "turkish"=>'tr');
?>
Find 10 most recent headlines by keyword(s) in multiple languages:<br />
<form action="search-news-example.php" method="GET">
News subject/topic: <input type="text" value="Yahoo" name="query" /> <br />
Language: <select name="language">
<option SELECTED value="en">English (default)</option>
<?php
// populate the drop-down menu from the $valid_languages array
foreach($valid_languages as $key=>$value) {
  print "<option value=\"$value\">$key</option>\n";
}
?>
</select> <input type="submit" value=" Go! " />
</form>

<?php
####### CREATE QUERY ##########################
if($_GET['query'] != '') {
$q = '?query='.rawurlencode($_GET['query']); // keywords
$q .= '&language='.rawurlencode($_GET['language']); // language chosen from drop-down menu by user
$q .= '&sort=date'; // sort by date instead of the default (relevance)
$q .= '&results=25'; // get 25 results instead of the default 10, max is 50
$q .= "&appid=$ApplicationID"; // required ApplicationID

// Note different REST URL for newsSearch
$xml = file_get_contents('http://api.search.yahoo.com/NewsSearchService/V1/newsSearch'.$q);
$dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error);
$res = xml_to_result($dom);

$num_results = 25;
// if less than 25 results, show actual results
if( $res['totalResultsReturned'] < 25 ) {
  $num_results = $res['totalResultsReturned'];
}

######## DISPLAY RESULTS ######################
$domhtml = "Matched ${res[totalResultsAvailable]}<br />
<b>$num_results</b> Results displayed (ranked by date)<br /><br />\n";

for($i=0; $i' . ($i+1) . '.</b> <a href="' . $res[$i]['ClickUrl'] . '" target="_blank">' . $res[$i]['Title'] . '</a><br />';
  $domhtml .= $res[$i]['Summary'] . '<br /><i>Source: ';
  $domhtml .= '<a href="' . $res[$i]['NewsSourceUrl'] . '" target="_blank">' . $res[$i]['NewsSource'] . '</a> published on ' . date("m-d-Y h:i", $res[$i]['PublishDate']);
  $domhtml .= '</i><br /><br />';
}
print "$domhtml<p align=\"right\"><i>powered by Yahoo! search</i></p>";
}
?>

Video Search

Purpose: Find videos on the web by format and keyword(s).

Description: Form to input keyword(s) and video format (see Figure 4).

Figure 4

Figure 4 Video search.

This is the code:

<?php
require('xml_to_dom.php'); // this gets the xml_to_dom function
$ApplicationID = 'this is your Yahoo ApplicationID'; // see step 1
?>
Find videos by keyword(s) and format:<br />
<form action="search-video-example.php" method="GET">
Keywords: <input type="text" value="<?php echo($_GET['query']);?>" name="query" /> Type results: <input type="radio" checked name="type" value="all"> all
<input type="radio" name="type" value="any"> any
<input type="radio" name="type" value="phrase"> phrase<br />
Format: <select name="format">
<option SELECTED value="any">Any</option>
<option value="avi">avi</option>
<option value="flash">flash</option>
<option value="mpeg">mpeg</option>
<option value="mpeg">msmedia</option>
<option value="quicktime">quicktime</option>
<option value="realmedia">realmedia</option>
</select> <input type="submit" value=" Go! " />
</form>

<?php
####### CREATE QUERY ##########################
if($_GET['query'] != '') {
$q = '?query='.rawurlencode($_GET['query']);
$q .= '&type='.rawurlencode($_GET['type']); // default is all, but can be any or phrase
$q .= '&format='.rawurlencode($_GET['format']); // type of media format to search for
$q .= "&appid=$ApplicationID"; // required ApplicationID

$xml = file_get_contents('http://api.search.yahoo.com/VideoSearchService/V1/videoSearch'.$q);
$dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error);
$res = xml_to_result($dom);

$num_results = 10; // default is 10, max is 50 results
if( $res['totalResultsReturned'] < 10 ) {
  $num_results = $res['totalResultsReturned'];
}

######## DISPLAY RESULTS ######################
$domhtml = "Total matched ${res[totalResultsAvailable]}<br /><b>$num_results</b> Video Results displayed<br /><br />\n";

for($i=0; $i' . ($i+1) . '.</b> <a href="' . $res[$i]['ClickUrl'] . '" target="_blank">' . $res[$i]['Title'] . '</a><br />';
  $domhtml .= $res[$i]['Summary'] . '<br /> ';
  $domhtml .= $res[$i]['FileSize'] . ' bytes <b>';
  $domhtml .= $res[$i]['FileFormat'];
  $domhtml .= '</b><br /><br />';
}
print "$domhtml<p align=\"right\"><i>powered by Yahoo! search</i></p>";
}
?>

Web Search

Purpose: Spell check, contextual search, Creative Commons content search, main web search, demonstrating pagination (providing links to previous and next for multiple-page results).

Description: Form to select the type of search and keyword(s) or word to spell check or provide related queries, also demonstrating previous and next page.

Figure 5 shows an example of a spell check. Figure 6 shows a context search. Figure 7 shows a Creative Commons example.

Figure 5

Figure 5 Spell check.

Figure 6

Figure 6 Context search.

Figure 7

Figure 7 Creative Commons search.

Currently, the web search provides by far the most flexibility of all the web services. The main web search service can be broken into six subcategories:

  • Web Search includes narrowing searches by Creative Commons licensed content (see http://search.yahoo.com/cc) as well as searching the Yahoo! search index.
  • Related Queries returns possible related queries based on the current search keyword(s) or phrases.
  • Spelling Suggest checks the spelling of a word and offers possible corrections.
  • Misspelling Suggest is an April Fool's joke version of Spelling Suggest, which intentionally returns a misspelled version of a correctly spelled string.
  • Context Search is for evaluating a larger amount of text and finding the contextual meaning.
  • Content Analysis and Text Extraction doesn't specifically fit under the web services category, and Yahoo! currently has it in its own category. I've grouped it here for familiarity with Context Search and Related Queries. It uses its own REST URL:
http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction

Let's take a look at the application to demo web services:

<?php
require('xml_to_dom.php'); // this gets the xml_to_dom function
$ApplicationID = 'this is your Yahoo ApplicationID'; // see step 1

// below we'll create the HTML form with various search options
?>
<b>Perform multiple types of Yahoo web services searches</b>
<form action="search-web-example.php" method="GET">
Keyword(s)/word/phrase: <input type="text" value="<?php echo($_GET['query']);?>" name="query" /> <br />
Do the following: <select name="doit">
<option SELECTED value="other">Find web sites (default)</option>
<option value="creative_commons">Find Creative Commons licensed content (any)</option>
<option value="related_queries">Find related queries</option>
<option value="spellcheck">Check spelling</option>
</select> <input type="submit" value=" Go! " />
</form>

<?php
####### CREATE QUERY ##########################
if($_GET['query'] != '') {
$q = '?query='.rawurlencode($_GET['query']);
$q .= '&start='.rawurlencode($_GET['start']);
// choose the correct REST URL chosen by the user
$service_url = 'http://api.search.yahoo.com/WebSearchService/V1/webSearch';
switch ($_GET['doit']) {
  case 'creative_commons':
    $q .= '&license=cc_any'; // other options include cc_commercial and cc_modifiable
  break;
  case 'related_queries':
    $service_url = 'http://api.search.yahoo.com/WebSearchService/V1/relatedSuggestion';
  break;
  case 'spellcheck':
    $service_url = 'http://api.search.yahoo.com/WebSearchService/V1/spellingSuggestion';
  break;
}

// end the query
$q .= "&appid=$ApplicationID"; // required ApplicationID
$xml = file_get_contents("$service_url$q"); // parse the proper webservice + query

if($_GET['doit'] == 'related_queries' OR $_GET['doit'] == 'spellcheck') {
  // use basic XML parser for contextual search and spell checking
  $parser = xml_parser_create();
  xml_parse_into_struct($parser,$xml,&$structure,&$index);
  xml_parser_free($parser);
  $i = 0;
  foreach($structure as $s) {
    if($s["level"] == 2) {
      // load the results into $res variable
      $res[$i] = $s["value"];
      $i++;
    }
  }

} else {
  // use DOM for the other REST results
  $dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error);
  $res = xml_to_result($dom);
}

######## DISPLAY RESULTS ######################
if($_GET['doit'] == 'related_queries' OR $_GET['doit'] == 'spellcheck') {
  $domhtml = 'Word checked: ' . $_GET['query'];
  if($_GET['doit'] == 'spellcheck') {
    $domhtml .= "<br/>Possible correct spelling(s): <b>";
    for($i=0; $i<count($res); $i++) {
      $domhtml .= "$res[$i] ";
    }
    $domhtml .= "</b><br />";
  } else {
    // must be contextual search
    $domhtml .= "<br/>Other contextually related keyword(s)/phrase(s): <ul><b>";
    for($i=0; $i<count($res); $i++) {
      $domhtml .= "<li><a href=\"search-web-example.php?query=" . rawurlencode($res[$i]) . "&doit=related_queries\">$res[$i]</a></li>";
    }
    $domhtml .= "</b></ul>";
  }
} else {
  $first = $res['firstResultPosition']; // important to know for pagination
  $last = $first + $res['totalResultsReturned']-1;
  $num_results = 25;
  if( $res['totalResultsReturned'] < 25 ) {
    $num_results = $res['totalResultsReturned'];
  }
  // using a generic output for all default web services results
  $domhtml = "Matched ${res[totalResultsAvailable]}<br /><b>$num_results</b> Results displayed (ranked by relevance)<br /><br />\n";
  for($i=0; $i' . ($i+1) . '.</b> <a href="' . $res[$i]['ClickUrl'] . '" target="_blank">' . $res[$i]['Title'] . '</a><br />';
    $domhtml .= $res[$i]['Summary'] . '<br />';
    $domhtml .= '<br />';
  }
}

// output the results and the required Yahoo! attribution right-aligned
print "$domhtml<p align=\"right\"><i>powered by Yahoo! search</i></p>";

/* pagination for previous / next links if there are more results
  REMEMBER: no more than 1,000 results for most queries */
if($start > 1)
print "<a href=\"search-web-example.php?query=" . rawurlencode($_GET['query']) . '&doit=' . rawurlencode($_GET['doit']) . '&start='.($start-10).'">&lt;-Previous Page</a> &nbsp; ';
if($last < $res['totalResultsAvailable'])
print "<a href=\"search-web-example.php?query=" . rawurlencode($_GET['query']) . '&doit=' . rawurlencode($_GET['doit']) . '&start='.($last+1).'">Next Page-&gt;</a>';
}
?>

This article should provide programmers with a good idea of the flexibility of the Yahoo! API. This API continues to evolve, as mentioned at the beginning of the article. There are certain to be more changes, but as these changes come along developers can follow along on the various web service mailing lists. In fact, Yahoo! recently added support for their new MyWeb API, which allows searching through folders of links people have bookmarked and shared publicly via the Yahoo Toolbar and Search.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020