Homepage Thumbnail API

domainAPI Thumbnail API allows the preview of website via screenshots of their homepage, thus helping users to visualize web sites for the domain name they are interested in. When searching the web for a company or product, it can proof difficult to identify the correct web site where a large number of text links are displayed on a page… Having a thumbnail of a site provide you with the visual hints that help you recognize the right business faster. When not sure of a domain name’s spelling, the thumbnails enable you to quickly recognize the branding of the company you were looking for.

Parameters of the Homepage Thumbnail API

Name required? Description Default Authorized Example
return no Type of value returned. thumbnail thumbnail, fullsize, all return=fullsize

Example of the Homepage Thumbnail API

JSON

Request

Show/Hidden apache code

View source
 
 
  GET /encrypted-area HTTP/1.1
  Host: api.domainapi.com/v1/thumbnail/example.com
  Authorization: Basic YWtpcmF0ZXN0OmR0d3N0ZXN0
 

Response

Show/Hidden apache code

View source
 
 
  Server: Apache-Coyote/1.1
  Content-Type: application/json
  Transfer-Encoding: chunked
  Date: Tue, 03 Feb 2009 15:09:07 GMT
 


Show/Hidden javascript code
View source
 
 
  {
    "service":"thumbnail",
    "domain":"example.com",
    "timestamp":1234567890,
    "content":
      {
        "thumbnail":"data:image\/png;base64,
        \/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDB
        kSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL\/2wBDAQ
        kJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI
        ...
        B9suv+fmb\/vs0fbLr\/n5m\/wC+zRRQAfbLr\/n5m\/77NH2y6\/5+Zv8Avs0UUA
        H2y6\/5+Zv++zR9suv+fmb\/AL7NFFAB9suv+fmb\/vs0fbLr\/n5m\/wC+zRRQAf
        bLr\/n5m\/77NI9zPIpV5pGU9QXJFFFAH\/\/Z"
      }
  }
 

XML

Request

Show/Hidden apache code

View source
 
 
  GET /encrypted-area HTTP/1.1
  Host: api.domainapi.com/v1/thumbnail/xml/example.com
  Authorization: Basic YWtpcmF0ZXN0OmR0d3N0ZXN0
 

Response

Show/Hidden xml code

View source
 
 
  <?xml version="1.0" encoding="UTF-8"?></span>
  <span class="ta"><response>
    <service>thumbnail</service>
    <domain>example.com</domain>
    <timestamp>1234567890</timestamp>
    <content>
      <thumbnail>
        data:image/png;base64,
      \/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDB
      kSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL\/2wBDAQ
      kJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI
      ...
      B9suv+fmb\/vs0fbLr\/n5m\/wC+zRRQAfbLr\/n5m\/77NH2y6\/5+Zv8Avs0UUA
      H2y6\/5+Zv++zR9suv+fmb\/AL7NFFAB9suv+fmb\/vs0fbLr\/n5m\/wC+zRRQAf
      bLr\/n5m\/77NI9zPIpV5pGU9QXJFFFAH\/\/Z    
      <thumbnail>
    </content>
  </response>
 
 

Additional information