Cross Topic Calls

The API provides one topic-based call.

  • wb.topics.get

The call can be used with the wb.photos.get and wb.indicators.get calls to query photos and indicators based on topic.

 

wb.topics.get

Gets information about a topic.

Arguments

api_key (Required)
    Your API key.
id (Optional)
    The id of the topic.
tag (Optional)
    The tag of the topic.
page (Optional)
    The page of results to return. If this argument is omitted, it defaults to 1.
per_page (Optional)
    The number of topics to return per page.  If this argument is omitted, it defaults to 10.  The maximum allowed value is 100.

Example Response

  1. <rsp stat="ok">  
  2.   <topics page="1" pages="1" per_page="10" total="1">  
  3.     <topic id="644290">  
  4.       <name>Agriculture</name>  
  5.       <tags></tags>  
  6.     </topic>  
  7.   </topics>
  8. </rsp>  

Error Codes

100: Invalid API Key
           
The API key passed was not valid or has expired.
105: Service currently unavailable
           
The requested service is temporarily unavailable.
110: API version “xxx” not found
           
The requested API version was not found.
111: Format “xxx” not found
           
The requested response format was not found.
112: Method “xxx” not found
           
The requested method was not found.
115: Missing required parameter
           
Parameters which are required have not been sent.
120: Parameter “xxx” has an invalid value
            The provided parameter is not valid.