Two-step preview-then-execute flow that fills out LinkedIn profile data via the Apify scraper and charges credits per success.
confirm omitted or false) returns a preview with the filtered count (rows without linkedin_url and already-enriched rows are stripped), the estimated USD cost at the Apify rate, and credit affordability. Second pass (confirm: true) actually runs the scraper.
On execute:
harvestapi~linkedin-profile-scraper Apify actor with the filtered LinkedIn URLs.network_connections with enriched fields, deletes existing rows in network_connection_experience / _education / _details, then re-inserts the fresh mapped rows.enrichment_error onto the connection row. No credits charged for failures.successCount at the end.count, estimatedCost, and creditsSufficient before calling with confirm: true.Partial failure is normal. The response’s successCount and failureCount will often be non-zero together — scraper misses, deactivated profiles, etc. Surface per-row results[].error to the user rather than treating the whole call as a failure.Idempotency. Already-enriched rows (enriched_at IS NOT NULL) are filtered out server-side. Re-submitting the same connectionIds is a safe no-op once they’re enriched.Cost. $4 per 1000 profiles at Apify’s current rate, plus one credit per successful profile. Show both numbers to the user before confirming.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Enrichment request. Two modes: confirm: false (or omitted) = preview; confirm: true = execute.
Ids of network_connections rows to enrich. Rows without a linkedin_url or already enriched are filtered out server-side.
1^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Dry-run flag. When omitted or false, returns a preview with cost/credit estimate and does not enrich. When true, actually runs the Apify scraper and charges credits for each success.
Preview or execute payload, discriminated by preview. Execute may include partial failures in results[].error with non-zero failureCount.
Discriminated by the preview field. Preview includes credit info; execute includes per-row results.
true 0 <= x <= 9007199254740991USD cost at the Apify pay-per-result rate ($4 per 1000 profiles).
0 <= x <= 90071992547409910 <= x <= 9007199254740991