Using AfricaNewsSearch’s Advance options
We’ve explained how to access our content using an HTML link, HTML
frames, JavaScript, PHP, and RSS. When you use these methods, you get the option of specifying parameters that determine what news you receive from our server and the format of the news. Below, we’ll briefly mention some of the arguments you can use. Note that not all parameters are available for all of the different ways you can access our content. In addition, although most arguments may be combined, some cannot be.
A. Specify number of articles to return
By default, AfricaNewsSearch’s getnews program (getnews3) displays 10 articles. These articles are selected based on ranking (relative importance of the article) and publication date. To change the number of articles to display, add the parameter tot when you call the getnews3 script. For example, request 20 articles like this:
http://www.africanewssearch.com/getnews3.php?tot=20
Or 3 articles:
http://www.africanewssearch.com/getnews3.php?tot=3
B. Get headlines online
If you would like getnews to return only headlines, pass the hdl variable with a value of 1 to the script as follows:
http://www.africanewssearch.com/getnews3.php?hdl=1
C. Specify linking option
By default, links to articles returned by getnews3 will open in a new window. To specify that the results open in the same window pass the lnkw variable with a value of 1. For example:
http://www.africanewssearch.com/getnews3.php?lnkw=1
D. Add news search box
A news search box may be added to the results returned by getnews3. The search box may be added at the top or bottom of the news results. To add the search box at the top of the news pass the schb variable with a value of 1 to the script. Use a value of 2 to display the search box at the bottom of the news results. You may add the search box at both the top and bottom of the news by passing a value of 3.
http://www.africanewssearch.com/getnews3.php?schb=3
E. Get regional news
You may specify regional news by passing the rgn option. The available regions and associated regional codes for use with this option are listed below. An example is also presented.
Region Code
North Africa NA
South Africa SA
East Africa EA
West Africa WA
Great Lakes GL
Horn Of Africa HOA
http://www.africanewssearch.com/getnews3.php?rgn=SA
F. Get news by country
You may get individual country news by passing the cty option. The value for this option should be the name of the country. Here are two examples for South Africa. In one example, the space character is converted to its HTML value. Both examples work.
http://www.africanewssearch.com/getnews3.php?cty=South%20Africa
http://www.africanewssearch.com/getnews3.php?cty=South Africa
G. Get news categories
You may specify news from different categories using the cat option. Codes for available news categories are listed below. Note that the codes are case sensitive. An example of how to use category options is provided below.
[Category] [Code]
Business News business
Sports News sports
Health News health
Arts & Entertainment News arts
[Example]
http://www.africanewssearch.com/getnews3.php?cat=business
H. Display news images
You may request display of news images using the pic option. In addition to activating this option, you may also specify the width and height of the images using the picW and picH options. Note that all options are case sensitive. If you do not specify a width or height, the size of the images displayed will be 50px by 50px. This is the default display size. For example:
http://www.africanewssearch.com/getnews3.php?tot=15&pic=1
http://www.africanewssearch.com/getnews3.php?tot=15&pic=1&picW=100&picH=100
I. Combine options
You may specify multiple options in a call to getnews. For example, to get 15 articles from West Africa with images displayed use the following code.
http://www.africanewssearch.com/getnews3.php?tot=15&rgn=WA&pic=1

Some of you may be interested in our sister blog the 
Today, we added a new feature for our users on
very reliable means of powering your website. Indeed, using our JavaScript service, you can add great, reliable and current Africa and African related news to your website with minimal hassle. Best of all, you can totally customize this content to match the look and feel of your website. This make our Javascript service a much better option than

websites used frames. Frames were (and for some, still are) a great way to organize content. In addition, frames allowed webmasters to link and incorporate content into their website.
from this code is similar to using a scripting language to combine content from multiple websites. See it in action
AfricaNewsSearch news and on the right we have another page. Here, we simply linked to africasearch.net. As you can imagine, that link on the right could have been a link to any content on your own server or on another website, as we’ve done here. Learn more about using frames 