Skip to main content
Version: Next

DatasetClient <Data>

Hierarchy

  • ResourceClient
    • DatasetClient

Index

Properties

inheritedapifyClient

apifyClient: ApifyClient

inheritedbaseUrl

baseUrl: string

inheritedhttpClient

httpClient: HttpClient

optionalinheritedid

id?: string

optionalinheritedparams

params?: Record<string, unknown>

inheritedresourcePath

resourcePath: string

optionalinheritedsafeId

safeId?: string

inheritedurl

url: string

Methods

createItemsPublicUrl

  • createItemsPublicUrl(options, expiresInMillis): Promise<string>
  • Generates a URL that can be used to access dataset items.

    If the client has permission to access the dataset's URL signing key, the URL will include a signature to verify its authenticity.

    You can optionally control how long the signed URL should be valid using the expiresInMillis option. This value sets the expiration duration in milliseconds from the time the URL is generated. If not provided, the URL will not expire.

    Any other options (like limit or prefix) will be included as query parameters in the URL.


    Parameters

    Returns Promise<string>

delete

  • delete(): Promise<void>

downloadItems

  • downloadItems(format, options): Promise<Buffer>

get

  • get(): Promise<undefined | Dataset>

getStatistics

listItems

pushItems

  • pushItems(items): Promise<void>

update

  • update(newFields): Promise<Dataset>