- Previous: Data Calls
- Up: Documentation Version 1
- Next: Photo Calls
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
- <rsp stat="ok">
- <topics page="1" pages="1" per_page="10" total="1">
- <topic id="644290">
- <name>Agriculture</name>
- <tags></tags>
- </topic>
- </topics>
- </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.
- Previous: Data Calls
- Up: Documentation Version 1
- Next: Photo Calls


Comments
Please sign in to post a comment.