Firestore Import

Firestore Import

by drobnikj

Effortlessly import Apify dataset items into Google Firestore. A simple, time-saving utility for developers to move scraped or collected data directly into their database.

1,014 runs
25 users
Try This Actor

Opens on Apify.com

About Firestore Import

Need to get scraped data, spreadsheets, or API responses into Firestore without writing a bunch of glue code? This actor is for you. It's a straightforward utility that imports items from any Apify dataset directly into your Google Firestore database. You just point it at your dataset, configure your Firestore credentials and collection name, and let it run. It handles the connection and writes each dataset item as a document, so you can stop worrying about manual data entry or building a custom script every time. I use it regularly to pipe scraped product listings or lead lists directly into an app's backend. It saves a ton of time, especially when you're prototyping or need to populate a database for testing. The setup is minimal, and because it runs on Apify's platform, you can schedule it or chain it after other actors in a workflow. If you're already using Apify to collect data and Firestore to store it, this actor bridges the gap perfectly.

What does this actor do?

Firestore Import is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Firestore Import Actor

Imports data from an Apify dataset into a Google Cloud Firestore database.

Overview

This actor transfers records from a specified Apify dataset into a Firestore collection. It's designed to be triggered via webhook or direct API call, making it suitable for automation within Apify workflows or from external systems.

Key Features

  • Direct Dataset to Firestore Transfer: Moves data from any Apify dataset into a Firestore collection.
  • Multiple Trigger Methods: Can be executed via Apify webhook, Apify.call(), or a legacy PhantomJS crawler finish webhook.
  • Simple Configuration: Requires only your Firestore project credentials and target collection name.

How to Use

You need your Apify API token and Firestore project credentials (apiKey, authDomain, projectId).

1. Using a Webhook (Actor/Task)

Set up a webhook (e.g., as a run or finish webhook) with this payload:

{
  "datasetId": "{{resource.defaultDatasetId}}",
  "apiKey": "<firestoreApiKey>",
  "authDomain": "<firestoreAuthDomain>",
  "projectId": "<firestoreProjectId>",
  "collectionName": "<firestoreCollectionName>"
}

Webhook URL: https://api.apify.com/v2/acts/drobnikj~firestore-import/runs?token=<yourApifyApiToken>

2. Calling from Another Actor

Use Apify.call() within your actor's code:

await Apify.call('drobnikj/firestore-import', {
  "datasetId": "<datasetId>",
  "apiKey": "<firestoreApiKey>",
  "authDomain": "<firestoreAuthDomain>",
  "projectId": "<firestoreProjectId>",
  "collectionName": "<firestoreCollectionName>"
});

3. Legacy PhantomJS Crawler Task

For a PhantomJS crawler's Finish webhook URL, use this JSON object as the webhook data:

{
  "apiKey": "<firestoreApiKey>",
  "authDomain": "<firestoreAuthDomain>",
  "projectId": "<firestoreProjectId>",
  "collectionName": "<firestoreCollectionName>"
}

The datasetId will be automatically inferred from the triggering task.

Input/Output

Input:
The actor requires an input object containing:
* datasetId (usually provided automatically via webhook): The ID of the Apify dataset to import from.
* apiKey: Your Firestore project's API key.
* authDomain: Your Firestore project's auth domain (typically "<projectId>.firebaseapp.com").
* projectId: Your Google Cloud Firestore project ID.
* collectionName: The name of the Firestore collection where data will be inserted.

Output:
The actor does not return a specific dataset. On successful execution, the records from the specified Apify dataset will be added to the designated Firestore collection. Check the actor run log for details and any error messages.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Firestore Import now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
drobnikj
Pricing
Paid
Total Runs
1,014
Active Users
25
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support