1. Knowledge Base
  2. Developer Center
  3. Search API (To be decommissioned on 01.01.2024)

Page Context

YieldWord Platform API

The YieldWord platform provides two modus operandi called contexts. These are page and search.

The page context takes an URL as it’s primary input whereas the search context takes a search query. Both contexts analyze their inputs and deliver ads and/or reviews based on these.

Page context

The page context API can be queried for ads for a page only after that page has been analyzed by the YieldKit system. This means that, when a client requests ads for a page that the system has never seen, that page is enqueued for analysis first and the API returns a pending message. The latency of the analysis queue is currently between 1 and 2 seconds.

GET /V2/PAGE/LINK

Get link ads for the given URL.

Example:

http://search.srvtrck.com/v2/page/link?url=http%3A%2F%2Fgadget-tests.com%2Fapple-iphone-5%2F&api_key=1&site_id=2

{
"link": [
{
"title":"Apple iPhone 5 (Latest Model) - 16 GB - White & Silver (Unlocked) Smartphone",
"keywords":["Apple","iPhone 5"],
"ad":"http://r.srvtrck.com/v1/redirect?type=intext&adId=EBAY.4.291181826279&adType=product&api_key=1&site_id=2&criterionId=Apple+iPhone+5",
"display_type":["link","widget"]
}
]
}

Request parameters:

Field Description
url URL of the page to retrieve ads for.
api_key Partner’s API key.
site_id Publisher’s site id.
callback (optinal) A JavaScript function name. For example if callback is “foo.bar” the response will take the form foo.bar({...}); which is useful for AJAX processing.
loc (optional) A two digit ISO3166 country code. Used to make ads relevant for the target location. The special value “use_geo” instructs the service to use the client’s geo location if possible.
fields (optional) A comma separated list of fields to be included in the response for each link entry. Valid values are price, manufacturer, logo and ad_type. Note that these fields are not always available in all ads.
logo.dim (optional) Include product logo URL in the response. Valid values are: 75X75, 90X90, 100X100, 125X125 and 150X150.
ad_type (optional) A comma separated list of ad types to retrieve. Valid values are advertiser and product.