tags:

views:

48

answers:

3

I accessed the following url last night for the first time and saw the JSON data there without a problem: http://mlb.mlb.com/ws/search/MediaSearchService?team%5Fid=111&start=0&site=mlb&hitsPerPage=12&hitsPerSite=10&type=json&c%5Fid=&src=vpp&sort=desc&sort%5Ftype=custom

This morning, I get the following message: "Please contact Search administrator as request is coming from invalid host/domain "

I am also unable to get a response in Yahoo Pipes.

Is there a way around what appears to be a block? Not sure what else could have happened.

+1  A: 

Are you sure that isn't an internal API which got exposed accidentally? If it is, they have the full right to block everyone out (just tested, I get the very same message) or if it's meant for 3rd party developers but through managed API key storage, you have to obtain an API key somehow.

Esko
+1  A: 

If there's a block, there's a reason.

I'd be very leery of circumventing this particular block - Major League Baseball has proven very litigious in the past. You don't want to get sued for a DMCA violation - they can afford much, much more expensive lawyers than you can.

ceejayoz
I was looking for a way to update myself on new articles and eventually create an RSS feed to the updates for others. I wouldn't be hosting the content on my own site but I'm sure that would violate the TOS anyway. Got a link to the litigation?
Adam
There've been a number of cases. One example: http://www.usatoday.com/sports/baseball/2005-02-09-fantasy-legal-battle_x.htm
ceejayoz
A: 

Your JSON is being served over http. Since your URL worked before and is not working now, the server is most likely checking for an authentication cookie. which has probably expired. You should check to see if there is an API/way to authenticate your call with their service, otherwise even if you find a workaround there is not guarantee that it will continue to work.

mikeh