Takeover Feed

Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Takeover Feed

Post by Megachip »

Dear Turfunity,

any way to get the latest takeovers (of an region) by feed/api etc? Seen V3 API had such feature, but isn't working anymore...

Any other solutions?

Thanks a lot and happy turf'in
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: Takeover Feed

Post by DIProgan »

AFAIK you can only collect feed takeover data from the last 15 minutes and use the zone/region key to filter out what you want. Just ask away if you'd like more details.
Running the third-party project https://turfbridge.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: Takeover Feed

Post by Megachip »

DIProgan wrote: 27 Mar 2021 05:25 AFAIK you can only collect feed takeover data from the last 15 minutes and use the zone/region key to filter out what you want. Just ask away if you'd like more details.
Can I filter on request, or do I have to filter the response?
HappyF
Zonemaker
Posts: 290
Joined: 08 Aug 2012 10:53
Country: Sweden
Contact:

Re: Takeover Feed

Post by HappyF »

You can't filter on request, you have do it by yourself.
Here is a description of the api: http://api.turfgame.com/
There is also an unstable (actually it's stable) with more information here http://api.turfgame.com/unstable
Note that you must use unstable in the call (http://api.turfgame.com/unstable/feeds/takeover)
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: Takeover Feed

Post by Megachip »

HappyF wrote: 27 Mar 2021 11:05 Note that you must use unstable in the call (http://api.turfgame.com/unstable/feeds/takeover)
Is this including the last 15 minutes or did the timespan change?
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: Takeover Feed

Post by DIProgan »

Megachip wrote: 27 Mar 2021 19:31
HappyF wrote: 27 Mar 2021 11:05 Note that you must use unstable in the call (http://api.turfgame.com/unstable/feeds/takeover)
Is this including the last 15 minutes or did the timespan change?
Still 15 minutes
Running the third-party project https://turfbridge.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: Takeover Feed

Post by Megachip »

1st tries with Integromat:
https://t.me/joinchat/oRqpUyXXrdtjNzky

Issues: How to reverse sort the result, not enough data and operations in free plan :/

Maybe have to be done by hand :( (php)
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: Takeover Feed

Post by Megachip »

Can someone provide an result example for: take, takeover and revisits?
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: Takeover Feed

Post by DIProgan »

In Unstable I think there's only takeovers and the only difference API-wise for revisits is that the "previousOwner" is the same as "CurrentOwner" like so:

Code: Select all

[
{
"zone": {
"previousOwner": {
"name": "DIProgan",
"id": 42001
},
"dateCreated": "2014-12-24T09:00:00+0000",
"dateLastTaken": "2021-04-01T12:46:29+0000",
"latitude": 58.063915,
"currentOwner": {
"name": "DIProgan",
"id": 42001
},
"name": "Ishallsv\u00e4gen",
"id": 43135,
"totalTakeovers": 935,
"region": {
"area": {
"name": "Stenungsunds kommun",
"id": 1924
},
"country": "se",
"name": "V\u00e4stra G\u00f6taland",
"id": 132
},
"pointsPerHour": 3,
"longitude": 11.838677,
"takeoverPoints": 155
},
"latitude": 58.063915,
"currentOwner": {
"name": "DIProgan",
"id": 42001
},
"time": "2021-04-01T12:46:29+0000",
"type": "takeover",
"longitude": 11.838677
}
]
Running the third-party project https://turfbridge.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: Takeover Feed

Post by Megachip »

DIProgan wrote: 02 Apr 2021 08:45 In Unstable I think there's only takeovers and the only difference API-wise for revisits is that the "previousOwner" is the same as "CurrentOwner" like so:
Thanks a lot for you quick response and all the support.

Maybe you can also provide an example with at least 2 assists?

For the rest, you're right.
Take = no previous owner
Revisit = previous owner = current owner
Post Reply

Return to “General”