---
title: Reference for Apache Spark APIs
description: Learn about the Apache Spark API reference guides. Databricks is built on top of Apache Spark, a unified analytics engine for big data and machine learning.
canonical_url: https://docs.databricks.com/aws/en/reference/spark
---

# Reference for Apache Spark APIs

Databricks is built on top of Apache Spark, a unified analytics engine for big data and machine learning. For more information, see [Apache Spark overview](https://docs.databricks.com/aws/en/spark/index.md).

Apache Spark has DataFrame APIs for operating on large datasets, which include over 100 operators, in several languages.

* [PySpark APIs](https://docs.databricks.com/aws/en/pyspark/reference/index.md) for Python developers. See [Tutorial: Load and transform data using Apache Spark DataFrames](https://docs.databricks.com/aws/en/getting-started/dataframes.md). Key classes include:
  * [SparkSession](https://docs.databricks.com/aws/en/pyspark/reference/classes/sparksession.md) - The entry point to programming Spark with the Dataset and DataFrame API.
  * [DataFrame](https://docs.databricks.com/aws/en/pyspark/reference/classes/dataframe.md) - A distributed collection of data grouped into named columns. See [DataFrames](https://spark.apache.org/docs/latest/api/python/reference/pyspark.pandas/index.html) and [DataFrame-based MLlib](https://spark.apache.org/docs/latest/api/python/reference/pyspark.ml.html).
* (Deprecated) [SparkR APIs](https://spark.apache.org/docs/latest/api/R/reference/index.html) for R developers. Key classes include:
  * [SparkSession](https://spark.apache.org/docs/latest/api/R/reference/sparkR.session.html) - SparkSession is the entry point into SparkR. See [Starting Point: SparkSession](https://spark.apache.org/docs/latest/sql-getting-started.html#starting-point-sparksession).
  * [SparkDataFrame](https://spark.apache.org/docs/latest/api/R/reference/SparkDataFrame.html) - A distributed collection of data grouped into named columns. See [Datasets and DataFrames](https://spark.apache.org/docs/latest/sql-programming-guide.html#datasets-and-dataframes), [Creating DataFrames](https://spark.apache.org/docs/latest/sql-getting-started.html#creating-dataframes), and [Creating SparkDataFrames](https://spark.apache.org/docs/latest/sparkr.html#creating-sparkdataframes).
* [Scala APIs](https://spark.apache.org/docs/latest/api/scala/org/apache/spark/index.html) for Scala developers. Key classes include:
  * [SparkSession](https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/SparkSession.html) - The entry point to programming Spark with the Dataset and DataFrame API. See [Starting Point: SparkSession](https://spark.apache.org/docs/latest/sql-getting-started.html#starting-point-sparksession).
  * [Dataset](https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/Dataset.html) - A strongly typed collection of domain-specific objects that can be transformed in parallel using functional or relational operations. Each `Dataset` also has an untyped view called a DataFrame, which is a `Dataset` of [Row](https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/Row.html). See [Datasets and DataFrames](https://spark.apache.org/docs/latest/sql-programming-guide.html#datasets-and-dataframes), [Creating Datasets](https://spark.apache.org/docs/latest/sql-getting-started.html#creating-datasets), [Creating DataFrames](https://spark.apache.org/docs/latest/sql-getting-started.html#creating-dataframes), and [DataFrame functions](https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/functions$.html).
* [Java APIs](https://spark.apache.org/docs/latest/api/java/index.html) for Java developers. Key classes include:
  * [SparkSession](https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/SparkSession.html) - The entry point to programming Spark with the Dataset and DataFrame API. See [Starting Point: SparkSession](https://spark.apache.org/docs/latest/sql-getting-started.html#starting-point-sparksession).
  * [Dataset](https://spark.apache.org/docs/latest/api/java/index.html?org/apache/spark/sql/Dataset.html) - A strongly typed collection of domain-specific objects that can be transformed in parallel using functional or relational operations. Each `Dataset` also has an untyped view called a DataFrame, which is a `Dataset` of [Row](https://spark.apache.org/docs/latest/api/java/index.html?org/apache/spark/sql/Dataset.html). See [Datasets and DataFrames](https://spark.apache.org/docs/latest/sql-programming-guide.html#datasets-and-dataframes), [Creating Datasets](https://spark.apache.org/docs/latest/sql-getting-started.html#creating-datasets), [Creating DataFrames](https://spark.apache.org/docs/latest/sql-getting-started.html#creating-dataframes), and [DataFrame functions](https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/functions.html).

To learn how to use the Apache Spark APIs on Databricks, see:

* [PySpark on Databricks](https://docs.databricks.com/aws/en/pyspark/index.md)
* [Databricks for R developers](https://docs.databricks.com/aws/en/sparkr/index.md)
* [Databricks for Scala developers](https://docs.databricks.com/aws/en/languages/scala.md)
* For Java, you can run Java code as a [JAR job](https://docs.databricks.com/aws/en/jobs/how-to/use-jars-in-workflows.md).
