WoBike
WoBike copied to clipboard
Is there a way to get information such as battery percentage, location of a specific bird using bird_id
I have tried a postman request on this endpoint https://api.birdapp.com/bird?bird_id=44c3e0e6-ee9d-4fbb-883e-2c449314bdc5 with bird_id as a parameter but I get a response code of 403. Can someone help me about how can I get information for a specific bird scooter if I have their id.
hi,
are you positive that this is valid ID retrieved from bird/nearby query? the closest i could get to retrieve bird data by GET is bird/bird-summary?bird_id=<birdID> https://api.birdapp.com/bird/bird-summary?bird_id=372adee0-000e-4d49-b9c6-aacd1b507e2f however for your ID it returns 404. { "code": 404, "message": "Could not find bird 44c3e0e6-ee9d-4fbb-883e-2c449314bdc5" }
there is also this PUT bird/chirp endpoint which returns A LOT of info, but it makes bird physically chirp its ring and i feel it is very very bad idea to abuse this endpoint.
UPDATE:
ok, so what we get from bird/nearby are actually 'ephemeral_id' which are linked to the physical bird_id somehow
. The way to get real bird_id is to PUT bird/chirp it, but there must be some other way, right? :D.
On the other hand, makes me think that it is not necessary for birdapp to return real birdId as it uses qrcodes/label codes for rental
Thanks @ rrozek. I guess you can use the chirp endpoint without ringing the bird by passing alarm as false. i.e
{
"bird_id": "bf1d6e72-9428-494c-b1cd-2b8de590cddc",
"alarm": false
}
I am not sure though
@rrozek could you specify what headers you used in your GET request on bird/bird-summary?
I'm trying to retrieve information about the area by using area_key
from bird/nearby.
@mauricepohl Are you able to hit this endpoint? I get the User is not authorized in the response.
@tejasavkhattar not that one as my goal was to get the service area boundaries as coordinates. I was able though to get them via https://api-bird.prod.birdapp.com/area/nearby?
with latitude
, longitude
and radius
as params
and the same authentication mechanism provided in Bird.md
if that's of interest to you as well.