Home arrow PHP arrow Page 4 - Using the Yahoo Site Explorer Inbound Links API

Making a Request to Yahoo API Using PHP - PHP

The Yahoo Site Explorer API offers useful data for anyone who is trying to do well in the search engines. The trick is getting that data into a form you can use. Keep reading to learn how to build an application that will organize the information so you can analyze it.

  1. Using the Yahoo Site Explorer Inbound Links API
  2. The Inbound Links API Concept
  3. Getting Started: Yahoo Account and Your Application ID
  4. Making a Request to Yahoo API Using PHP
  5. Understanding the Inbound Link Explorer API Response
By: Codex-M
Rating: starstarstarstarstar / 2
November 12, 2009

print this article



Now that you have an Application ID, you are ready to create your web application. It will do the following tasks:

  • Send a request to Yahoo to get inbound links data (which will contain all of the request parameters to be discussed below, including your Application ID).
  • Receive the response from the Yahoo Site Explorer API.
  • Convert the response to a compatible data format that can be easily manipulated in PHP.
  • Extract relevant data for analysis from the compatible data structure.
  • Accept user inputs if necessary (this can be done via a web form).
  • Perform inbound link analysis using the raw data provided by the Yahoo Inbound Link API.
  • Output the results to the browser.

All of these six important tasks will be covered in this tutorial series. It will help you develop easy, useful and even advanced inbound link-related analysis using the Yahoo Site Explorer Link API.

To make a request to the Yahoo API is like sending a GET request. This type of request is done by appending parameters in the URL. These parameters are variables which can be changed depending on the intent of the application. Based on official Yahoo documentation on making a request, the official request URL is this:


The above URL is a standard and should NOT be altered. It is the official request URL for the Yahoo Inbound Links API. Now, since this is a form of GET request, to append your application ID (which will be needed for authentication), add a "?" string to the official request URL:


Your Application ID is just one of the request parameter/variables you can append. The official list of parameters can be found at the  link under "Request Parameters."

Based on the request parameters, "appID" (application ID) and "query" are required; all others are optional, except when your application needs them.

Example: If you would like the Yahoo Inbound Link API to send you the data for the domain http://www.php-developer.org , and you need five results as well as having the output be compatible with PHP, the following is the final request URL (with parameters and value):


>>> More PHP Articles          >>> More By Codex-M

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: