WdsGetChunk
Reads all or part of a task’s downloaded page. If the download is pending, call GetChunk again with the same task ID
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| taskId | string | Yes | None | Download task ID returned by job start, in download task records from crawl requests, or embedded in a 202 Location URL from async task endpoints |
| startIndex | int? | No | null |
Optional. Zero-based start index of the returned content substring. Omit or pass null to start at 0. A negative value or an index at or beyond the content length returns an empty ContentSpan |
| length | int? | No | null |
Optional. Maximum number of content characters to return from startIndex. Omit or pass null to return all remaining content; a value of 0 or less returns an empty ContentSpan |
Return Type
Returns ContentChunk?.
Technical return shape: ContentChunk or null.
Data Contracts
ContentChunk
Reports the full downloaded content length and the full or requested content span for one task
Fields:
| Name | Type | Description |
|---|---|---|
| ContentLength | int or null | Optional. Length of the full downloaded page content in characters |
| ContentSpan | string or null | Optional. Full downloaded content or the requested substring. An invalid or non-positive range produces an empty string |
Behavior
Read-only: no; idempotent: no; destructive: no; open-world: yes.