serve-file
and file
changes regularly. id
through the API.uniqueKey
, then I suggest you to add new Request
to the RequestQueue
with the same uniqueKey
-> It will end with response aving attribute wasAlreadyPresent
set to true , but you should also obtain the stored Request data (with id
).id
, you may do DELETE Http Request see https://docs.apify.com/api/v2#tag/Request-queuesQueue/operation/requestQueue_request_delete to delete it.const requestQueue = await crawler.getRequestQueue(); const result = await requestQueue.addRequest({url: 'https://google.com', uniqueKey: 'aaa', label: 'secondary'}) log.info('result', result) if (result.wasAlreadyPresent) { log.info('already present') const request = await requestQueue.getRequest(result.requestId); log.info('request', request) }
uniqueKey->requestId
relation as a key pair value there. 🤔addRequest
must be doing it under the hood.