Using the REST API totally for free


#1

I am trying to use the REST API to get the trending topics in Ghana with WOEID 23424824 but then, all the available libraries and help i come across don’t come free. Any help with something free? I tried using temboo and i was happy up to the point where i saw that it wasn’t free


#2

What language would you like to use? I’m not clear why you think there’s a cost to using the API, certainly platforms like the one you’ve mentioned may have their own charges. We list a bunch of libraries on our site.

I’ve just pulled the trends for that WOEID and it works fine:

$ twurl "/1.1/trends/place.json?id=23424824"

returns

[
  {
    "trends": [
      {
        "name": "#NyameBeTuaWoKa",
        "query": "%23NyameBeTuaWoKa",
        "url": "http://twitter.com/search?q=%23NyameBeTuaWoKa",
        "promoted_content": null
      },
      {
        "name": "#RYSENSHYNE",
        "query": "%23RYSENSHYNE",
        "url": "http://twitter.com/search?q=%23RYSENSHYNE",
        "promoted_content": null
      },
      {
        "name": "#JoySMS",
        "query": "%23JoySMS",
        "url": "http://twitter.com/search?q=%23JoySMS",
        "promoted_content": null
      },
      {
        "name": "#starr1035fm",
        "query": "%23starr1035fm",
        "url": "http://twitter.com/search?q=%23starr1035fm",
        "promoted_content": null
      },
      {
        "name": "#ampeleague2",
        "query": "%23ampeleague2",
        "url": "http://twitter.com/search?q=%23ampeleague2",
        "promoted_content": null
      },
      {
        "name": "Mali",
        "query": "Mali",
        "url": "http://twitter.com/search?q=Mali",
        "promoted_content": null
      },
      {
        "name": "iOS 9",
        "query": "%22iOS+9%22",
        "url": "http://twitter.com/search?q=%22iOS+9%22",
        "promoted_content": null
      },
      {
        "name": "iPhone 7",
        "query": "%22iPhone+7%22",
        "url": "http://twitter.com/search?q=%22iPhone+7%22",
        "promoted_content": null
      },
      {
        "name": "Game of Thrones",
        "query": "%22Game+of+Thrones%22",
        "url": "http://twitter.com/search?q=%22Game+of+Thrones%22",
        "promoted_content": null
      },
      {
        "name": "curry",
        "query": "curry",
        "url": "http://twitter.com/search?q=curry",
        "promoted_content": null
      }
    ],
    "as_of": "2015-06-09T11:17:25Z",
    "created_at": "2015-06-09T11:13:12Z",
    "locations": [
      {
        "name": "Ghana",
        "woeid": 23424824
      }
    ]
  }
]

#3

I initially tried using temboo which isn’t fully free but between yesterday and today, i discovered TwitterAPIExchange which is working just fine for now.

Thanks


#4