api
/api/account/my_graphs
November 18, 2008 1:18 PM
This call allows you to lookup any of your previously created graphs. You can narrow the result set down by passing in various limiting parameter.

authentication is required

params:
return This value specifies how you would like the response sent back (either a success message or an error message).

Possible Values:
  • xml (Default) an xml feed
  • json returns the feed in JSON format
input1 this is the input for the Data Source. If you set input1=trendrr then you get back all graphs with 'trendrr' as the input
input2 Some Data Sources take more then one input. Ex. monster job listings requires a query (input1) and city (input2)
datasource_id The id of the Data Source. For a list of all the available data sources and their id's visit (you must be logged in to see the ids):
http://www.trendrr.com/dataSourceList.seam

Or you may obtain the list through the api call:
/api/account/data_sources
start Index of graph to start with. defaults to 0.
max maximum number of graphs to return. default is 10 max is 20.
sort_dir What direction the graphs are sorted. Graphs are sorted by creation date.

Possible Values:
  • asc graphs are returned oldest first
  • desc (Default) graphs are returned newest first


Example:
http://www.trendrr.com/api/account/my_graphs?auth={authentication}&input1=trendrr&datasource_id=115


<?xml version="1.0" encoding="UTF-8"?>

<result>
  <graphs>
    <graph>
      <title>trendrr (Number of Matching Twitter Posts per Hour)</title>
      <createdOn>2008-11-12T10:11:54</createdOn>
      <id>408224</id>
      <link>http://www.trendrr.com/timeseries/trendrr_(Number_of_Matching_Twitter_Posts_per_Hour)__408224</link>
      <creator>dustin</creator>
      <creatorUrl>http://www.trendrr.com/user/dustin</creatorUrl>
      <graphType>overlay</graphType>
      <graphScale>absolute</graphScale>
      <timeFrameStart>2008-10-19T11:36:30</timeFrameStart>
      <timeFrameEnd>2008-11-18T10:36:30</timeFrameEnd>
      <numDatasets>1</numDatasets>
      <datasets>
        <dataset>
          <dataSourceName>Number of Matching Twitter Posts per Hour</dataSourceName>
          <lastUpdated>2008-11-18T13:04:44</lastUpdated>
          <dataStartedCollecting>2008-11-06T20:12:09</dataStartedCollecting>
          <color>99CC00</color>
          <input>http://search.twitter.com/search?q=trendrr</input>
          <legendText>trendrr</legendText>
          <renderType>line</renderType>
          <invert>false</invert>
          <id>536700</id>
          <totalPoints>206</totalPoints>
          <drawTrendLine>false</drawTrendLine>
          <values />
          <dataStartedCollecting>2008-11-06T20:12:09</dataStartedCollecting>
        </dataset>
      </datasets>
    </graph>
    <graph>
      <title>trendrr (Number of Matching Twitter Posts per Day)</title>
      <createdOn>2008-11-12T10:11:55</createdOn>
      <id>408225</id>
      <link>http://www.trendrr.com/timeseries/trendrr_(Number_of_Matching_Twitter_Posts_per_Day)__408225</link>
      <creator>dustin</creator>
      <creatorUrl>http://www.trendrr.com/user/dustin</creatorUrl>
      <graphType>overlay</graphType>
      <graphScale>absolute</graphScale>
      <timeFrameStart>2008-10-19T11:36:30</timeFrameStart>
      <timeFrameEnd>2008-11-18T10:36:30</timeFrameEnd>
      <numDatasets>1</numDatasets>
      <datasets>
        <dataset>
          <dataSourceName>Number of Matching Twitter Posts per Day</dataSourceName>
          <lastUpdated>2008-11-18T00:09:52</lastUpdated>
          <dataStartedCollecting>2008-11-06T20:12:09</dataStartedCollecting>
          <color>3366FF</color>
          <input>http://search.twitter.com/search?q=trendrr</input>
          <legendText>trendrr</legendText>
          <renderType>line</renderType>
          <invert>false</invert>
          <id>536701</id>
          <totalPoints>6</totalPoints>
          <drawTrendLine>false</drawTrendLine>
          <values />
          <dataStartedCollecting>2008-11-06T20:12:09</dataStartedCollecting>
        </dataset>
      </datasets>
    </graph>
  </graphs>
  <resultCode>1</resultCode>
  <resultMessage>Successfully processed request</resultMessage>

</result>