Comments (4)
Hi Hagen,
Thanks for reaching out, these are great suggestions!
I sent this over to our product team to add this to our roadmap, though no firm timeline yet (Iβll keep you posted as I get updates).
Regarding your first point around bulk endpoints: until we support this functionality, I recommend trying out python's native pooling functionality to speed up requests (if you havenβt already).
More details here, but in short:
API requests to update_profile take 0.5 seconds round trip time. That means that if you send requests in series, you will only be able to achieve an effective rate of 120/minute. However, our rate limit for that endpoint is actually 700/minute steady. Because of this, if you parallelize your requests, you should be able to increase the request rate by a factor of ~6.
Hopefully this helps in the interim while we work on supporting the features you raised. And thanks again for the thoughtful input, we super appreciate it.
Cheers!
Jon
from klaviyo-api-python.
Hi @jon-batscha π,
Thank you for your elaborate response and the feedback π We actually tried using pooling via async_req=True
with the library and on our own, but our measurements did not really show a significant uplift in request speed. We were never even close to hitting the 700rpm. In the end we decided that the uplift in speed did not really justify the overhead of handling the async part (i.e. waiting and checking if pool workers finished correctly).
We actually switched back this part to the legacy API and keep the fingers crossed that this is supported until the sunset of the API π€
Thank you,
Hagen
from klaviyo-api-python.
hi there π
we are also using the profile update api, and the current rate limit is really low (up to 700/minute) AND high resource consumer ( api call per profile update)...it takes a lot of time if you need to update a large list\segment of users with some custom tag.
We also would be happy if we can make a bulk profiles update
from klaviyo-api-python.
Hey,
Just wanted to let you all know that we now support append
, unappend
, and unset
for update_profile
: https://developers.klaviyo.com/en/docs/changelog_#improved-endpoints
We haven't yet implemented bulk setting of user properties, but will keep you posted once that's available.
Cheers,
Jon
from klaviyo-api-python.
Related Issues (20)
- How to use "page[size]" parameter? HOT 1
- how to avoid error when making many calls? HOT 1
- No Page Size in "get_profiles" HOT 1
- Missing positional argument "id" even though it is provided HOT 2
- Rendering templates HOT 1
- fields[profile] parameter not working HOT 2
- permissions issue with getting lists + campaign audience type (List\Segment) HOT 1
- klaviyo.Templates.get_template return error 500 HOT 3
- Klaviyo API hangs once every 10-20 requests HOT 4
- _from_openapi_data() missing 1 required positional argument: 'name' on create event HOT 2
- _from_openapi_data() missing 1 required positional argument: 'name' on create event HOT 1
- Need basic documentation on how Track and Identify map into this new API HOT 1
- bug in profile unset property functionality HOT 2
- 400 HTTP errors with get_events() per specific metric ids HOT 4
- Pydantic v2 compatibility HOT 10
- Flows pagination not possible HOT 5
- Templates Pagination not functioning HOT 6
- Klaviyo profile unable to subscribe: due to HTTPSConnectionPool HOT 2
- "Invalid cursor provided" Error for "get_events()" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klaviyo-api-python.