Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e9f8d36
feat(apify): Show list of built tags in actor run action
matyascimbulka Jul 15, 2025
dd179e2
feat(apify): Allow selecting actor search source for run Actor action…
matyascimbulka Jul 23, 2025
97b02c5
feat(apif): Remove wait for finish prop in run Actor action
matyascimbulka Jul 23, 2025
b39f6f5
fix(apify): Fix PR issues
matyascimbulka Jul 25, 2025
dfb1776
fix(apif): Fix PR issues
matyascimbulka Jul 29, 2025
b2de09c
feat(apify): Actor run improvements (#5)
matyascimbulka Aug 1, 2025
f7ac4f9
fix(scrape-single-url): return the only dataset item after the run is…
oleksandravalko Aug 6, 2025
76a38be
Migrate to use Apify client (#6)
oleksandravalko Sep 2, 2025
185efb1
fix(apify-get-dataset-items) 6: change input parameters (#8)
oleksandravalko Sep 4, 2025
61c0ba9
chore: Sync repo with upstream
matyascimbulka Sep 5, 2025
6040822
chore(apify): Bump component versions
matyascimbulka Sep 5, 2025
cd804ba
chore: Sync upstream repo (#9)
matyascimbulka Sep 8, 2025
168194a
feat(apify): Prefill values from the input schema (#7)
matyascimbulka Sep 8, 2025
761ae8c
Revert "chore: Sync upstream repo (#9)"
matyascimbulka Sep 8, 2025
d2df298
fix: Fixed upstream sync
matyascimbulka Sep 8, 2025
25691bf
Merge pull request #10 from apify/fix/upstream-sync-fix
matyascimbulka Sep 8, 2025
f911c76
Revert "chore(apify): Bump component versions"
matyascimbulka Sep 8, 2025
655ffb9
merge: Sync upstream changes
matyascimbulka Sep 8, 2025
d005f88
merge: Sync upstream changes
matyascimbulka Sep 12, 2025
62ece3a
fix(apify): Fix build tag
matyascimbulka Sep 12, 2025
6016265
fix(apify): Address issues in run task synchronously action
matyascimbulka Sep 12, 2025
4066a04
feat(apify): Add default crawler type to scrape single url
matyascimbulka Sep 12, 2025
3861c6b
fix(apify): Address issues from PR
matyascimbulka Sep 12, 2025
0587d3b
chore: Sync upstream
matyascimbulka Sep 18, 2025
d26860b
chore(apify): Change component versions
matyascimbulka Sep 19, 2025
f7b1c19
fix(apify): Fix run Actor action
matyascimbulka Sep 22, 2025
8cc55c6
fix(apify): Fix run get dataset items action
matyascimbulka Sep 22, 2025
77473f9
fix(apify): Fix typos for PR
matyascimbulka Sep 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions components/apify/actions/get-dataset-items/get-dataset-items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "apify-get-dataset-items",
name: "Get Dataset Items",
description: "Returns data stored in a dataset. [See the documentation](https://docs.apify.com/api/v2/dataset-items-get)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
apify,
Expand Down Expand Up @@ -33,48 +33,46 @@ export default {
"omit",
],
},
flatten: {
offset: {
propDefinition: [
apify,
"flatten",
"offset",
],
},
maxResults: {
limit: {
propDefinition: [
apify,
"maxResults",
"limit",
],
},
},
async run({ $ }) {
const params = {
limit: LIMIT,
offset: 0,
offset: this.offset,
clean: this.clean,
fields: this.fields && this.fields.join(),
omit: this.omit && this.omit.join(),
flatten: this.flatten && this.flatten.join(),
};

const results = [];
let total;

do {
const items = await this.apify.listDatasetItems({
$,
const { items } = await this.apify.listDatasetItems({
datasetId: this.datasetId,
params,
});
results.push(...items);
if (results.length >= this.maxResults) {
if (results.length >= this.limit) {
break;
}
total = items?.length;
params.offset += LIMIT;
} while (total);

if (results.length > this.maxResults) {
results.length = this.maxResults;
if (results.length > this.limit) {
results.length = this.limit;
}

if (results.length > 0) {
Expand Down
Loading
Loading