Tuesday, May 6, 2008

Easy way to earn with Shopping API (Web Services) - Part III

Hi,

So now you are clear what are the general features you can implement in your shopping website developed using Shopping.com API. This is just overview of general features that shopping api provide. Now it is important to know how to query to get result, the format of your query must contain

http://[partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/

Partner DNS name and Linkin ID are provided by shopping when you sign up for their partner program. Make sure you have used correct partner dns and linkin id otherwise you will not get credit for the traffic you sent to shopping.com

To develop shopping api using search functionality you need to send query in following format

http://[partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[Partner linkin_id]/keyword-[KW]

For example to get result for Sony Mavica Digital Camera you have to send following API request.

http://[partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/Keyword-Sony%20Mavica%20MVC-FD200%20Digital%20Camera

>> To limit your search to a specific category you need to find BEFID for the category and sub category

By inserting following query you will find all main categories and their BEFID

http://[partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/TY-1

To show all main categories and their parent categories send following API request

http://[partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/TY-2

Once you find BEFID for category for which you want to limit your search, then insert following query to get product listing

http://[Partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/BEFID-ID/Keyword-[KW]

But make sure you have inserted appropriate BEFID for your keyword otherwise you will get wrong result.

>> To expand your search result to additional category you have to insert following query

http://[Partner DNS Name]/scripts/GSIsapiExt.dll/linkin_id-[partner linkin_id]/BEFID-ID/Keyword-[KW]/MORECAT-1

>> When you use keyword search to build your query the result returned may be of the following types

Type 1 Response Field - will result single product
Type 2 Response Field - will result stores offer search for unstructured category
Type 3 Response Field - will result product search for structured category
Type 4 Response Field

To get more information visit following link

https://partners.shopping.com/ResourceCenter_ApiImplGuide,$DirectLink_2.sdirect?sp=Skeyword#keyword_build

Regards,
Bhavesh Goswami.

No comments: