the YahooAPI response

  [ResultSet] => Array
    [totalResultsAvailable] => 266933
    [totalResultsReturned] => 1
    [firstResultPosition] => 1
    [Result] => Array
      [Title] => madonna 118
      [Summary] => Picture 118 of 184
      [Url] =>
      [ClickUrl] =>
      [RefererUrl] =>
      [FileSize] => 40209
      [FileFormat] => jpeg
      [Height] => 700
      [Width] => 473
      [Thumbnail] => Array
        [Url] =>
        [Height] => 130
        [Width] => 87

Get the backlinks of your site through Yahoo Api

Update (feb 2012): Yahoo site explorer has been closed due to the cooperation of Bing and Yahoo search. The service has been replaced by bing webmastertool API. More details on how to create a BING WMT request here.
Caution:There seems to be a limitation of 1000 BLs per domain && it seems that you can only see the backlinks from the site that has been verified in Bing Webmaster Tool: a real turn off to the API…

Through the study of the backlinks of your site or the one of your competitor, you can tell many things:

  • Who gives you natural backlinks,
  • which kind of sites do they have,
  • what demografics the web master belong to…

But to make a thorough study over time you need to start somewhere and scrap your (competitors) backlinks;

You can do it by scraping yahoo site explorer or in a more elegant way through Yahoo API. Lets try the API solution

Set the variables

unserialize() the Yahoo response into an array $data["ResultSet"]["Result"]

$currentpos = 0;
while ($currentpos++ >= 0) {

   // Formating API request url
   $requrl = sprintf("%s&start=%s&results=%s", $request_url, ($currentpos-1)*$linksperrequest+$startposition, $linksperrequest);

   // Handle errors
   if (($content = file_get_contents($requrl)) === FALSE ) {
   echo "HTTP error: $requrl

   // Unserialize data from response
   $data = unserialize($content);

   if (!array_key_exists("ResultSet", $data)) {
   echo "Error: Bad response from server

   // Extracting each link from array
   for ($i=0; $i'.$title.'

'; } // End loop if no more results if (sizeof($data["ResultSet"]["Result"]) < $linksperrequest) break; } ?>

done. Get the title and more from the yahoo response! Yahoo api

Why do I want to be a SEO Specialist?

5 reasons why I want to be an SEO Expert:

  1. For any Internet Business, a good SEO Strategy is the key success factor. SEO is life. No matter how good the business model or the application are, the site will not perform, buried in the SERP.
  2. Being on top of SEO requires the willingness to continuously discover and adapt. The fast pace of SEO world and the Real Time Optimization offer exciting new challenges.
  3. SEO Expert is at a very strategic position. At the crossing of all departments, the SEO expert is in the driver seat and is accountable for the success of their strategy.
  4. The SEO needs to cooperate with people across the organization so its traffic acquisition strategy is implemented with success.
  5. Finally, there are no universities where you can learn SEO: It is learning by doing and the firm is certainly the best place to develop these skills.

6 reasons why I should be a SEO specialist

Why should I be an SEO Specialist?

6 reasons why I could be an SEO Specialist.

  • I have a Master of Sc. in computer network which I believe can give me the analytical skills required for this position.
  • I have for a year now, closely monitored the analytics of my site, proposed bounce rate analysis, carried out the “on site” optimization and suggested new keywords to target.
  • In 2008, I developed a language exchange community from scratch. I used basic “on site” optimization techniques. Today the site ranks for competitive keywords and the community counts more than 1800 members
    Through this project, I also manage a small team of volunteers that help me develop this project.
    Daily, I use tools such as Google analytics, site catalyst, Google Webmaster Tools, Semrush to analyze web traffic and fine tune my site.
  • Business minded? My freelance consultancy experience taught the basic rules of running a business: Respecting my customers and their money. It taught me that they were no shortcuts, and that it was better to chose experience over money. I am also graduated of an MBA specialized in market finance…
  • I am entrepreneurial and will gladly share some example of the project I have been working on that should benefit the company.

5 reasons why I want to be an SEO Expert

Link exchange and X-Robots-Tag

or how not to give a link in exchange of a link.

In the HTTP header, we can set the X-Robots-Tag :

header("X-Robots-Tag: noindex", true);

will prevent search engines from showing the file.

However, you could prevent search engines from following the links on those pages, by doing the following:

 header("X-Robots-Tag: nofollow", true); 

The links on the page will appear as followed when they are not followed.

Number of External Links in a page

It is sometimes interesting to know how many External links a page has.
Parsing the page Urls and taking away all those containing the domain name will give us an fair idea of the amount of External links.

public function getExternalLinks( $page_content, $domain ){
  // Get the urls
  $urls = UrlTools::get_urls( $page_content, $domain );
  // preg match links with domain, domain =
  $pattern = '/'.$domain.'/';
  foreach($urls as $id=>$raw_url) {
    if(preg_match($pattern, $raw_url)) { $raw_url = '';} 
    if(empty($urls[$id])OR empty($raw_url)) { unset($urls[$id]); } //supprime les cases vides
    $externalLinks[] = $raw_url;
  Return $externalLinks

The get_urls( $page_content, $domain ) should only return absolute urls.
Return $externalLinks returns all external urls. A count($externalLinks); should give the number of external links