Apify Discord Mirror

Updated 5 months ago

Can I pass custom data to Website Content Crawler?

At a glance

The community member is trying to pass a user ID to the Website Content Crawler and include it in webhooks, but they don't see a way to do so. They ask if it's not possible, and if not, whether they can at least see the entire request body from their API request using the run ID. They tried the "get run" endpoint, but the response didn't include the input data/request body.

In the comments, the community member realizes they should just store the run ID and other data they want in a database, and then when the webhook comes, they can read the run ID and look it up in their database.

I really need to pass a user id to Website Content Crawler and have that included in webhooks, but I don't see any way to do so. Is it not possible?

If not possible to include that data in the webhook, can I at least somehow see the entire request body from my API request, using the run id? I tried get run and the response doesn't include any of the input data/request body from my api call.
b
1 comment
never mind I realized I should just store the run id and other data I want in db, then when webhook comes, read the run id and look it up in my db.
Add a reply
Sign up and join the conversation on Discord