Table of Contents

Introduction

The WTHashtag API allows anyone to interact directly with WTHashtag and request information via simple HTTP requests.

Core Concepts

Requests

All requests can be made in the form of GET requests.

Rate Limiting

We currently don't enforce any kind of a rate limit. We'll burn that bridge when we come to it :)

Error Handling

If an error occurs during a request, we'll return a special document telling you an error occurred and what it was

Data Parameters

These are the parameters that are globally accepted and will have some effect on the data received

Style Parameters

These are the parameters that are globally accepted and will only effect how your chart looks

Guidelines

Parameters

Methods

/chart/hashtag - graph a single hashtag's usage

Returns a graph depicting the usage of a single hashtag over a given timeframe.

http://api.wthashtag.com/chart/humor

Example Use (HTML):

<iframe src="http://api.wthashtag.com/chart/humor" width="500" height="350" style="border: none"></iframe>

Example Use (PHP):

file_get_contents("http://api.wthashtag.com/chart/humor");

Query Operators:

/compare/hashtag/hashtag/hashtag - compare usage from multiple hashtags

Returns a graph depicting the usage of multiple hashtags over a given timeframe.

http://api.wthashtag.com/compare/humor/sarcasm

Example Use (HTML):

<iframe src="http://api.wthashtag.com/compare/humor/sarcasm" width="650" height="350" style="border: none"></iframe>

Example Use (PHP):

file_get_contents("http://api.wthashtag.com/compare/humor/sarcasm");

Query Operators:

/define/hashtag/hashtag/... - get definitions for one or more hashtags

If making a GET request:

Returns short descriptions for requested hashtags or a generic "no description available" if we don't have one

http://api.wthashtag.com/define/followfriday

Example Use (PHP):

file_get_contents("http://api.wthashtag.com/define/followfriday/woofwednesday");

Query Operators