Firebase Firestore Import

Firebase Firestore Import

by danielwebr

Effortlessly import your Apify datasets directly into Firebase Firestore. Just configure your credentials and let this actor handle the transfer, including optional data transformations.

2,093 runs
21 users
Try This Actor

Opens on Apify.com

About Firebase Firestore Import

Tired of wrestling with manual data imports between Apify and Firebase? I built this actor because I needed a reliable way to move scraped datasets into Firestore without writing a custom script every single time. It does one job well: you give it your Firebase service account credentials, point it to your Apify dataset, and tell it which Firestore collection to target. It then pumps your data over, handling all the API calls and batch writes for you. You can even tweak the data on the fly with a simple transformation function if you need to rename fields or change formats before it hits your database. It's saved me countless hours on projects where I'm collecting product listings, lead data, or any structured info with Apify that needs to live in a live Firestore app. Setup is straightforward, and it just runs in the background, letting you focus on building your application instead of data plumbing.

What does this actor do?

Firebase 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

Firebase Firestore Import Actor

This actor imports data from an Apify dataset into a Firebase Firestore collection. It converts each dataset item into a Firestore document, handling the data transfer and transformation automatically.

Overview

The actor connects your Apify storage to Google's Firebase Firestore database. You provide your Firebase credentials and specify a source dataset and target collection. The actor then reads each item from the dataset and writes it as a document in Firestore. It's useful for migrating scraped or processed data into a live application database.

Key Features

  • Direct Data Transfer: Moves data from an Apify dataset directly to a specified Firestore collection.
  • Flexible Document IDs: You can use a unique field from your dataset as the Firestore document ID, or let Firestore auto-generate IDs.
  • Custom Data Transformation: Optionally apply a JavaScript function to modify each data item before import.
  • Automatic Collection Creation: If the specified Firestore collection doesn't exist, it will be created during the import.

How to Use

  1. Configure the actor with your Firebase project credentials and target details.
  2. Run the actor. It will fetch all items from your specified Apify dataset.
  3. Each dataset item is processed (and transformed if specified) and written as a document to your Firestore collection.

Input Configuration

Configure the actor run with the following input fields:

Required Fields

  • apiKey: Your Firebase Web API key. Find it in the Firebase console under Project settings > General.
  • authDomain: Your Firebase auth domain. Found in the Firebase console when adding a web app (Project settings > Add app > Web app).
  • projectId: Your Firebase project ID. Located in the Firebase console under Project settings > General.
  • firestoreCollectionId: The name of the Firestore collection to import into. Find this in the Firestore Database > Data tab. Ensure Firestore rules permit write operations.
  • datasetId: The ID of the Apify dataset to import from. Find this in the Apify console under Storage > Datasets.

Optional Fields

  • customIdField: The name of a field in your dataset to use as the Firestore document ID. This field must contain unique values for each item, or documents will be overwritten. If left blank, Firestore auto-generates IDs.
  • transformFunction: A custom JavaScript function to modify each data item before import. The function receives the dataset item as an argument and must return the modified object.

Transformation Function Example

function transform(item) {
    // Add a timestamp to each document
    item.importedAt = new Date().toISOString();
    // Rename a field
    item.processedTitle = item.title;
    delete item.title;
    return item;
}

Output

The actor's main output is the populated Firestore collection. Each document's content will match a transformed (or original) item from your Apify dataset. You can monitor the run execution and logs within the Apify platform.

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 Firebase Firestore Import now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
danielwebr
Pricing
Paid
Total Runs
2,093
Active Users
21
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