Rate limit for API requests

200 views
Skip to first unread message

Prashant K

unread,
Apr 2, 2021, 4:12:12 AM4/2/21
to Strava API
Helllo Team,

I have used the webhook to receive the webhook events/notification, the event is shown below.

 “aspect_type”: “create”, “event_time”: 1549560669, “object_id”: 899797, “object_type”: “activity”, “owner_id”: 9999999, “subscription_id”: 999999

from the above event will take the object id and will call the below API to fetch the data

From this API I will get the data and save the required data into DB.

Problem statements goes here: 
 whenever event occurs from the Strava, our callback URL be triggered, suppose if our application server is down due to maintenance or any other reason, will miss the events occurred by the Strava, to fetch the missed data which API i need to use to get the data without using object id. Also need to understand the what are the API's comes under rate limit.  your help much appreciated and thanks in advance.

Thanks & Regards
Prashant  



Jan Szewczak

unread,
Apr 6, 2021, 2:00:04 AM4/6/21
to Strava API
hey,

Did you think about creating simple service(never change it) with only webhook to save jsons in to db then proces it.
This service with webhook should be not connected with main service where you show processed data and change code a lot.

Daniel D.

unread,
Apr 9, 2021, 9:09:04 AM4/9/21
to Prashant K, Strava API
The doc (https://developers.strava.com/docs/webhooks/) says that events will be retried up to 3 times. I pretty much see that happen right away over a period of a couple of seconds. So if you missed an event for a while, it will not be re-delivered. This means you'll need to catch up later. 

In Slava we use events to trigger an update for the connected user and don't actually use the event data because of this, and because the event typically lacks most of the information we try to deliver and have to make an API call to fetch the complete activity anyway. That's what I would recommend doing.

--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strava-api/b5080eb4-938a-45dc-99c0-8c657093c78en%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages