diff --git a/package-lock.json b/package-lock.json index 34726e9ee2..d7effd0f3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -73,7 +73,7 @@ }, "apify-docs-theme": { "name": "@apify/docs-theme", - "version": "1.0.161", + "version": "1.0.162", "license": "ISC", "dependencies": { "@apify/docs-search-modal": "^1.2.0", diff --git a/src/pages/api/index.tsx b/src/pages/api/index.tsx index a89fc3af4f..e06d0d0d01 100644 --- a/src/pages/api/index.tsx +++ b/src/pages/api/index.tsx @@ -137,22 +137,13 @@ export default function Api() { > - {`# Prepare Actor input -cat > input.json <<'EOF' -{ - // Define the input in JSON here -} -EOF - -# Run the Actor -curl "https://api.apify.com/v2/acts/username~actorname/runs?token=" \\ - -X POST \\ - -d @input.json \\ - -H 'Content-Type: application/json' - -# Use the defaultDatasetId from response and pass it instead of -curl "https://api.apify.com/v2/datasets//items?token="` - } + {`# Prepare Actor input and run it synchronously +echo '{ "searchStringsArray": ["Apify"] }' | +curl -X POST -d @- \\ + -H 'Content-Type: application/json' \\ + -H 'Authorization: Bearer ' \\ + -L 'https://api.apify.com/v2/acts/compass~crawler-google-places/run-sync-get-dataset-items' + `}