Currently, we do not have a way to filter events in this way through the API call itself. Some our our other partners have implemented code within their applications to exclude these additional types of events. As a solution to clean up our data, an example would be to use cold fusion to filter out (Ex: cityrunningtours, foundation, virtual/program, a specific university email, jackrabbit,etc); see code below:
<cfif isdefined("currentEvent.meta.seourl")
AND NOT (isdefined("currentEvent.meta.eventUrl") AND refindnocase('cityrunningtours|morlockfoundation',currentEvent.meta.eventUrl.xmltext) gt 0)
AND NOT (isdefined("currentEvent.meta.contactEmail") AND refindnocase('gwc.cccd.edu',currentEvent.meta.contactEmail.xmltext) gt 0)
AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('virtual',currentEvent.meta.assetName.xmltext) gt 0)
AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('program',currentEvent.meta.assetName.xmltext) gt 0)
AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('JackRabbit',currentEvent.meta.assetName.xmltext) gt 0)
>
We are working on some enhancements on our end that will allow for better filtering of events through the API. I will send an announcement once the updates have been made and the new functionality is available. For now, the filtering must be done within your application.
How do I exclude training and virtual events from my results? I want JUST official races, such as 5k, 10k, Half, 15k, Marathon, etc.
Here is my search call:
http://api.amp.active.com/search?&k=race&m=meta:channel=Running+meta:splitMediaType=5k&m=meta:channel=Running+meta:splitMediaType=10k&m=meta:channel=Running+meta:splitMediaType=Half%2520Marathon&m=meta:channel=Running+meta:splitMediaType=Marathon&v=json&num=100&s=date_asc&l=85295&api_key=wuhmn9ye94xn3xnteudxsavw
Message edited by Stuart 12 years ago
jarredd – 12 years ago
Hi there Stuart,
Currently, we do not have a way to filter events in this way through the API call itself. Some our our other partners have implemented code within their applications to exclude these additional types of events. As a solution to clean up our data, an example would be to use cold fusion to filter out (Ex: cityrunningtours, foundation, virtual/program, a specific university email, jackrabbit,etc); see code below:
<cfif isdefined("currentEvent.meta.seourl") AND NOT (isdefined("currentEvent.meta.eventUrl") AND refindnocase('cityrunningtours|morlockfoundation',currentEvent.meta.eventUrl.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.contactEmail") AND refindnocase('gwc.cccd.edu',currentEvent.meta.contactEmail.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('virtual',currentEvent.meta.assetName.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('program',currentEvent.meta.assetName.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('JackRabbit',currentEvent.meta.assetName.xmltext) gt 0) >
We are working on some enhancements on our end that will allow for better filtering of events through the API. I will send an announcement once the updates have been made and the new functionality is available. For now, the filtering must be done within your application.
Best regards,
Jarred
Technical Account Manager, ACTIVE Network