In example 4, we learned how to display auction items that only have photos. In this example, we'll learn how to set phpBay to search Ebay sites from other countries. phpBay Pro API supports results from 14 different countries. These include:
Why is this important? Many developers like yourself live in countries around the world. This allows for a web site developer in Italy whose site is about Italy to list auction items from Italy. Offering your site visitors the opportunity to bid on items in their home country is good common sense.
Notice in the list above, after each country, there is a siteID= value and a language= value. These are the values we need to set in the phpBay code in order to display products from the given country.
To start off, let's set siteID=71 and language=fr-FR
Then let's set the keyword to: mp3 player
and return 15 results
In the source of this file, where your phpBay code is, this would look like:
$ebay->eb_siteId = "71"; $ebay->eb_language = "fr-FR";
It's that simple! Just change these values to correspond with the values above for any of the countries listed, and not only are you listing items from that country, but the item text is in the language and that currency.
Keep in mind, that many countries do not have as many results for common items that may be available in the USA. That aside, it's a great way to offer local items to your visitors based upon the country your site is in.
View the source code of this file to see the php code used. Click here to view the next example.
![]() |
USB Clip MP3 Player Mini metal forTFCard 2GB 4GB Purple 4,20 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:14:05 CET Enchérir | Ajouter à la liste d'Affaires à suivre |
![]() |
2G 2GB Sun glass Sunglass Headset+Mp3 Player(Black)2 Go 6,95 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:16:18 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Neuf USB Drive 16GB 16GO FM MP4 MP3 Lecteur Player A16 0,99 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:24:49 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Neuf USB Drive 16GB 16GO FM MP4 MP3 Lecteur Player MB 12,00 EUR (10 Enchères) Auction Ends: Fin: jeudi mars-11-2010 17:27:53 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Finis Swimp3 V2 Lecteur MP3 Player Etanche 1 GO 1GO 1G 129,00 EUR Auction Ends: Fin: jeudi mars-11-2010 17:28:52 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
2G 2GB Sun glass Sunglass Headset+Mp3 Player(Black)2 Go 6,95 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:42:20 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
2GO Mini Clip Metal Lecteur MP3 Player 2GB 2 G(7 color) 5,99 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:48:18 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
USB Clip MP3 Player Mini metal forTFCard 2GB 4GB Red 4,20 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:49:22 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
4GB 2.8" Wide Screen MP3 MP4 MP5 Media RMVB RM Player 20,88 EUR Auction Ends: Fin: jeudi mars-11-2010 17:49:44 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Neuf USB Drive 16GB 16GO FM MP4 MP3 Lecteur Player B16 0,99 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 17:54:52 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
2GB 1,5" LCD Car MP3 MP4 Player FM Transmetteur 2Go 2G 8,99 EUR Auction Ends: Fin: jeudi mars-11-2010 18:05:52 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
2GB 1,5" LCD Car MP3 MP4 Player FM Transmetteur 2Go 2G 8,99 EUR Auction Ends: Fin: jeudi mars-11-2010 18:05:54 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
USB Clip MP3 Player Mini metal forTFCard 2GB 4GB Red 4,20 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 18:17:00 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Neuf USB Drive 16GB 16GO FM MP4 MP3 Lecteur Player CK16 0,99 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 18:24:38 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |
![]() |
Neuf USB Drive 16GB 16GO FM MP4 MP3 Lecteur Player MB 9,99 EUR (0 Enchère) Auction Ends: Fin: jeudi mars-11-2010 18:27:08 CET Enchérir | Acheter | Ajouter à la liste d'Affaires à suivre |