Google Sheets Import & Export avatar
Google Sheets Import & Export
Try for free

No credit card required

View all Actors
Google Sheets Import & Export

Google Sheets Import & Export

lukaskrivka/google-sheets
Try for free

No credit card required

Import data from datasets or JSON files to Google Sheets. Programmatically process data in Sheets. Easier and faster than the official Google Sheets API and perfect for importing data from scraping.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "transformFunction": "// Uncomment this code only if you don't use \"Deduplicate by field\" or \"Deduplicate by equality\"\n// This code behaves as if there was no transform function\n/*({ spreadsheetData, datasetData }) => {\n    return spreadsheetData.concat(datasetData);\n}*/"
8}
9EOF
10
11# Run the Actor using an HTTP API
12# See the full API reference at https://docs.apify.com/api/v2
13curl "https://api.apify.com/v2/acts/lukaskrivka~google-sheets/runs?token=$API_TOKEN" \
14  -X POST \
15  -d @input.json \
16  -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
  • 38 monthly users
  • 22 stars
  • 97.6% runs succeeded
  • 3.2 days response time
  • Created in Jan 2019
  • Modified about 1 month ago
Categories