• Register

ACTIVE Network API Forums

API Forum

RSS Feed

Finding Events

    • MaryF
    • Topic created 12 years ago

    Occasionally, we stumble across a race that has Active registration (we find it on the event's website), but we cannot get it to show up when we use the API's XML feed.

    Here is an example: The Snowman's Half Marathon Mt Pleasant, MI Jan 28, 2011. http://www.active.com/half-marathon/mt-pleasant-mi/the-snowmans-half-marathon-10k-5k-2012?int=29-6

    I found out they had Active registration when I was visiting their site at http://michiganhalfseries.com/.

    When I use the API, with the criteria: State: MI Date Range from 1/28/2012 to 1/28/2012 which generates this URL: http://api.amp.active.com/search?v=xml&num=50&m=meta:startDate:daterange:1/28/2012..1/28/2012&l=MI&api_key=p67tv5bbfwawgvj5st4mjuze

    I get the following results: <?xml version="1.0" encoding="UTF-8" ?> - <search> <time>0.046831</time> <totalResults>0</totalResults> <fromNum>0</fromNum> <toNum>0</toNum> <page>1</page> <results /> </search>

    It is the same for both methods of accessing (DataSet.ReadXML, and simply plugging the URL into a browser)

    Why doesn't the Snowman's Half marathon show up in the XML feed?

    Message edited by MaryF 12 years ago

  1. MaryF12 years ago

    ... It just makes me worry that there are more that we are missing when we try to match up our races with Active races, if they are not showing up in the XML feed.

  2. active Admin12 years ago

    Hey Mary,

    You'll have to double URL encode the "/" between dates. i.e. 1/28/2012 becomes 1%2F28%2F2012. A query like this will do the trick: http://api.amp.active.com/search?v=xml&num=50&m=meta:startDate:daterange:1%2F28%2F2012..+meta:channel=Running&l=MI&api_key=p67tv5bbfwawgvj5st4mjuze

  3. MaryF12 years ago

    I URL encoded the date criteria, and am still having the same results. I am hoping its the caching issue that you mentioned on my other 2 posts, and will be fixed later today.

    The problem seems to happen when the date I am sending in the query string is a Sunday, and the state is in the second half of the alphabet. No idea why, but that seems to be pretty consistent.

  4. active Admin12 years ago

    Hey Mary,

    The caching issue has been resolved. Please try again and let us know how you go.

[ Page 1 of 1 ]