Not using JS or python so I have to interact with the Apify API directly.
I need to store arbitrary data in request items in the queue, I've seen I can use the
userData
field when posting a request, but when getting a request from the head (
https://docs.apify.com/api/v2#/reference/request-queues/queue-head/get-head) the response does not contain this
userData
field. Instead i get the request id from this response, and have to make a second API call to get the details for a specific request (
https://docs.apify.com/api/v2#/reference/request-queues/request/get-request) based on the request ID.
That's 2 API calls for 1 item from the queue, is there a better way?
Why doesn't the
Get head
endpoint return the complete request (including
userData
)?
I probably missed something there, thanks for your help.