With a HTTP reply status other than 200, a human-readable HTML document will be returned instead of XML or JSON. Field values
The rating letter is always in upper case. The icons above may be used in conjunction with SiteTruth ratings.
These enumeration values will appear exactly as shown, to allow for translation to multiple languages in the client. For simple English display, convert underscores to spaces and make the first letter upper-case.
See below for how to handle a 202 status. Note that this is the status value in the XML or JSON reply, not the HTTP reply status. Retries and flow controlIf a requested domain is in the SiteTruth database, the rating will be returned immediately. If the domain has not been previously rated, it will be queued for rating, and usually rated within a minute or two. When a site is queued for rating, a rating of "W" and a status of "202" are returned. The request should be retried every 5 seconds, for up to two minutes. A single XML reply with multiple sitetruth:rating items may contain both 200 and 202 status items. Completed items (status 200) are done, and should not be retried. Retrying the same request more rapidly than once every 5 seconds may result in blocking of the client's IP address. Clients should cache SiteTruth replies to avoid making the same request repeatedly. A cache expiration time of at least one hour is suggested. We use an expiration time of one week in our demo applications. SiteTruth applies "fair queuing" to requests. Multiple requests from a single IP address are permitted but will not yield faster responses. If an excessive number of requests, more than 100, are outstanding from a single IP address, further requests will be rejected with an HTTP reply code of 502 (Overload). This error indicates that the querying program is defective, and is making requests without waiting for the successful completion of previous requests. (This means you, "fwvplab.elet.polimi.it".) Obtaining rating detailsThe application program interface above provides basic information about the site. More detailed information, in the form of a pop up web page, is available by using URLs of the following form:
This is best displayed as a pop-up page opened in a new window. We suggest opening a browser window with the properties:
This provides a summary page, which includes basic information about the business behind the web site. Information provided when available includes the SiteTruth rating, the business name and address, annual revenue, number of employees, and an aerial photo of the company's location. Buttons which display detailed information from other data sources, such as the U.S. Securities and Exchange Commission, may appear. The page will also contain a link to a larger SiteTruth page with full details, more information than most users will want. If a SiteTruth rating icon is displayed by a program using the API, it should be made a clickable link of the form above. This allows users to easily obtain the information behind the rating. This feature is currently available only in English. The older URL form is still supported:
Terms of useThis service is provided at no charge on a "best-efforts" basis. Ratings reflect the automated opinion of SiteTruth®. This is an alpha test. We reserve the right to modify or discontinue this service. We retain copyright in SiteTruth ratings. This service may not be sold, resold, or used in a commercial product without our express written permission. Use of this service in free software (as defined by the Free Software Foundation) is encouraged. SiteTruth. Search, with less evil. Another service from the publishers of Downside |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||