AllCitations logo

AllCitations

How to Cite a Dataset in APA 7th Edition

Nora Ellison··17 min read
APAcitation guidedataset

Try it now - paste a URL, DOI, or ISBN

To cite a dataset in APA 7, give the author, the year the version you used was published, the dataset title in italics, any identifier and version number in parentheses, the bracketed description [Data set], the publisher (usually the archive or repository), and the DOI or URL. The template is in Section 10.9 of the Publication Manual. An archived study from ICPSR looks like this:

D'Souza, A., & Wiseheart, M. (2018). Cognitive effects of music and dance training in children (ICPSR 37080; Version V1) [Data set]. ICPSR. https://doi.org/10.3886/ICPSR37080.v1

In-text: (D'Souza & Wiseheart, 2018) or D'Souza and Wiseheart (2018)

The title is italicized in your paper; plain text here keeps it copyable. The rest of this guide covers the cases that the one-line template leaves open: repositories that are not ICPSR, data you got from a government table, raw data that was never published, versions, code books, and the difference between a data set and a database.

The official APA 7 rule for data sets

A librarian and a student sitting side by side at a library computer, the librarian pointing at blocks on the screen

APA 7 gives data sets their own reference category in Section 10.9. The pattern:

Author, A. A., & Author, B. B. (Year). Title of data set (Identifier; Version n) [Data set]. Publisher. https://doi.org/xxxx

Each element has a decision attached.

Author. The investigators who produced the data, or an organization when no person is credited. A federal statistical agency, a research center, or a survey consortium is a group author. If the archive and the author are the same organization, list it once as author and leave out the publisher, the same rule APA applies to reports. The University of Illinois Chicago's guide to citing data in APA 7 prints that omission rule alongside its data set examples.

Year. For published data, the year the version you used was released. A survey fielded in 2009 and released years later takes the release year. For unpublished data, the year or years of collection.

Title. Italicized, in sentence case, as the archive gives it. Long survey titles stay long.

Identifier and version. Both go in one set of parentheses after the title, not italicized, separated by a semicolon: (ICPSR 37080; Version V1). Copy the version label exactly as the repository prints it. ICPSR labels versions "V1," "V2," so the reference reads "Version V1," which looks doubled but is correct. If there is no identifier, give the version alone: (Version 3). If there is neither, skip the parentheses.

Description. [Data set] in square brackets, after the parentheses. APA's examples write "Data set" as two words. When the deposit includes documentation that you also used, the description can say so: [Data set and code book].

Publisher. The archive, repository, or organization that distributes the data: ICPSR, Harvard Dataverse, Zenodo, Kaggle, a government agency.

DOI or URL. A DOI if the data has one, formatted as https://doi.org/. Most curated archives issue DOIs per version, so the DOI and the version number should match.

The University of Southern California's APA 7 data sets page lays the same elements out as Who, When, What, Where, and adds the two date rules: a retrieval date only for a data set designed to change over time, and the collection year for unpublished data.

When the data set gets its own reference

APA makes a distinction that changes which template you use. Write a data set reference when you ran a secondary analysis on archived data, or when you are publishing or archiving your own data for the first time. When you only quote a number someone else reported (a prevalence rate, a median income), cite the publication where you read it: the journal article, the report, or the webpage. A statistic lifted from a Pew report cites the report. A regression you ran on the Pew microdata cites the data set.

That line settles most "do I need a data set citation?" questions before they start.

Worked examples

Eight cases, starting with the one you are most likely to have open right now.

1. A data set from ICPSR with a DOI

ICPSR studies carry a study number, a version label, and a version DOI on the landing page. All three go in:

D'Souza, A., & Wiseheart, M. (2018). Cognitive effects of music and dance training in children (ICPSR 37080; Version V1) [Data set]. ICPSR. https://doi.org/10.3886/ICPSR37080.v1

Parenthetical: (D'Souza & Wiseheart, 2018) Narrative: D'Souza and Wiseheart (2018)

This example comes from the Publication Manual, and UIC reproduces it. The DOI ends in ".v1," matching Version V1. Download V2 and both the version and the DOI change.

A student at a sunlit desk studying a grid of colored cells on a laptop, with a printed questionnaire of empty check boxes and a pen beside it

2. An older ICPSR study, where the year is a trap

USC's guide uses a study of crime victims' mental health costs, and it shows how easily the data year slips into the date element. The study's DOI record gives the title as "Cost of Mental Health Care for Victims of Crime in the United States, 1991" and the publication year as 1996. Built from that record:

Cohen, M. A., & Miller, T. R. (1996). Cost of mental health care for victims of crime in the United States, 1991 (ICPSR 6581; Version V1) [Data set]. ICPSR. https://doi.org/10.3886/ICPSR06581.v1

Parenthetical: (Cohen & Miller, 1996)

USC's version dates the reference 1991, drops ", 1991" from the title, and separates identifier and version with a comma. The 1991 is the year the data describes, which is part of the title. The date element takes the release year, and APA's data set page puts a semicolon between identifier and version. Note the leading zero as well: the study number is 6581, and the DOI pads it to 06581. Copy each from where it appears, and when a guide and the archive record disagree, follow the record.

3. A group author, with the archive as publisher

A federal statistical agency is the author; the archive that distributes the file is the publisher. Another Publication Manual example, via UIC:

National Center for Education Statistics. (2016). Fast Response Survey System (FRSS): Teachers' use of educational technology in U.S. public schools, 2009 (ICPSR 35531; Version V3) [Data set and code book]. National Archive of Data on Arts and Culture. https://doi.org/10.3886/ICPSR35531.v3

Parenthetical: (National Center for Education Statistics, 2016)

Three details to copy. The year is a release year, not the 2009 fieldwork year, because the date element tracks the version you used. The description is [Data set and code book] because both were distributed together. And the publisher is the specific archive inside ICPSR that hosts the file. UIC prints a semicolon after "(FRSS)"; the DOI record has a colon there, as above.

One caution on the year. The manual's example says 2016, but the DOI record for Version V3 currently lists 2015. Archives sometimes revise release metadata, so take the year from the landing page of the version you downloaded.

If the agency is long and you cite it often, you can introduce an abbreviation on first use, as our guide to group authors in APA 7 explains.

4. A data set on Kaggle, Zenodo, Figshare, or Dryad

Self-deposit repositories fit the same template. The uploader or the named creators are the author, the repository is the publisher, and the version is whatever the repository displays.

Author, A. A. (Year). Title of data set (Version n) [Data set]. Kaggle. https://www.kaggle.com/datasets/...

Author, A. A., & Author, B. B. (Year). Title of data set (Version n) [Data set]. Zenodo. https://doi.org/10.5281/zenodo....

The difference between them is the link. Zenodo, Figshare, and Dryad issue DOIs, and Zenodo issues one per version plus a "concept" DOI covering all versions. Cite the version DOI for the files you analyzed. Kaggle pages usually have no DOI, so the URL goes last.

For Kaggle, check who the author is. Many Kaggle uploads are copies of data published elsewhere (a government file, a scraped site, a competition release). If the page names an original source, cite that original when you can reach it, because that is where your reader will look for documentation.

5. A government data table

Tables you build on a government data portal sit in a gray zone. If the agency published the figures in a report, the APA rule above sends you to the report. If you generated or downloaded a table yourself, treat it as a data set with the agency as author:

U.S. Census Bureau. (Year). Title of table (Survey name, Table ID) [Data set]. https://data.census.gov/...

The publisher drops out because the Bureau is already the author. Include a retrieval date only if the table is a live product that changes without a new release. A fixed release (an annual estimate, a decennial count) does not need one. Our post on citing the CDC in APA 7 works through the same decision for CDC WONDER queries, where the underlying file updates and a retrieval date is defensible.

6. Unpublished raw data

Data that was never published or archived, such as a lab's survey or a colleague's spreadsheet, gets [Unpublished raw data] as its description and the institution as its source. The date is the year or years of collection. USC's example:

Evans, S. K. (2014). [Personnel survey] [Unpublished raw data]. University of Southern California.

Parenthetical: (Evans, 2014)

When the data has no title, write a description in square brackets where the title would go, as here. When it has a title, italicize it and follow it with the bracket. Southern Cross University's APA 7 datasets guide shows the titled form:

Allen, T., & Brown, C. A. (2021). Trial and error [Unpublished raw data]. Southern Cross University.

Data collected across several years takes a range: (2019–2021).

7. Your own data, archived for the first time

If your thesis or article deposits its own data in a repository, cite that deposit like any published data set, with yourself as author and the repository as publisher. This is one of the two situations APA names for a data set reference. The deposit usually happens close to submission, so check that the year and DOI in your reference match the deposit record rather than the collection dates.

8. Supplemental data attached to a journal article

A spreadsheet or table published as supplemental material with an article belongs to the article. Cite the article and add [Supplemental material] after its title, as our guide to citing a journal article in APA 7 shows. Use the data set format only when the authors deposited the data separately in an archive with its own record.

Special cases

The examples above cover the standard deposits. These are the cases that trip people up.

A data set versus a database

A database, in the sense your library uses (PsycINFO, EBSCO, ProQuest, JSTOR), is an index of publications. It has no reference of its own. APA 7 tells you to cite the article, dissertation, or report you found there, and in most cases to leave the database name out entirely. A data set is the actual numbers. Searching PsycINFO and reading an article means citing the article. Downloading a CSV from ICPSR and analyzing it means citing the data set.

The confusion shows up in search results too: some of the top results for "cite a dataset" are guides to citing databases. The one exception is a work that exists only inside a specific database or archive, such as an ERIC document, which is cited with that archive.

Versions and updates

Every version is a different object. A reference to Version V1 points your reader to V1, and a replication on V3 can give different results. So:

  • Cite the version you actually used, with the version label in the parentheses.
  • Use the version DOI rather than the concept DOI when the repository offers both.
  • Use the year of that version, not the year of the first release.

Updated your download partway through a project? Cite the version your final analysis used.

Data that changes over time

A live dashboard or a continuously updated file has no stable version. That is the one case where APA asks for a retrieval date, written as "Retrieved Month Day, Year, from URL." Archived data, and anything with a DOI, does not get one. The retrieval date tells your reader the numbers may have moved since you looked, so give the date you actually pulled the data.

Tall archive shelves of identical gray document boxes lining a bright records room, with an empty blue library cart in the aisle

A data set with many authors

Data sets from large consortia can list dozens of investigators. The ordinary APA author rules apply: list up to 20 in the reference, and for 21 or more list the first 19, an ellipsis, then the last. In-text, three or more authors become "et al." from the first citation. A consortium credited as a group, with no individual names on the deposit, is a group author.

A data set with no date

Repositories almost always show a release date. If one genuinely does not, use "n.d." and add a retrieval date, since an undated online source may change. Our post on sources with no date in APA 7 covers the in-text form.

Data you are not allowed to share

Restricted-use files (health records, linked administrative data) still get a reference when the data has a public record. Cite the archive's record for the restricted file, with its identifier and version. Your methods section, not the reference, explains how access was granted.

A code book or documentation on its own

If you cite only the documentation, such as a variable definition in a code book without using the data, the code book is a document. Cite it as a report or a webpage, whichever matches its format. Used both? The combined [Data set and code book] description covers it in one reference.

Software and analysis code

Statistical software, R packages, and analysis scripts are a separate category in APA 7 (Section 10.10, software). Commonly used programs such as SPSS or R are named in the text without a reference; specialized packages get a software reference. A repository deposit that bundles data and code can be cited once as a data set if the data is what you used.

Common mistakes and how to avoid them

  • Writing [Dataset] as one word. Several library guides and generators print it that way. APA's examples use [Data set], two words. Fix it in your final pass, because a reader checking against the manual will notice.
  • Leaving out the version. It is easy to skip because it looks like metadata. It is the part that lets someone download the same files you did. Copy it from the landing page.
  • Using a comma between identifier and version. APA separates them with a semicolon: (ICPSR 37080; Version V1).
  • Adding "No." before the study number. "ICPSR 37080" is the identifier as the archive prints it. Some generators turn it into "No. ICPSR 37080." Delete the "No."
  • Using the collection year for published data. Published data takes the release year of the version you used. Collection years belong to unpublished data.
  • Citing the data set for a statistic you read in a report. If you did not analyze the data, cite the report. Our report guide has the template.
  • Listing the publisher twice. When the agency is both author and distributor, it goes in the author position only.
  • Adding a retrieval date to an archived file. Retrieval dates are for data designed to change. A versioned deposit with a DOI never needs one.
  • Citing the database. PsycINFO and ProQuest are not data sets. Cite what you found there.

Quick-reference table

CaseReference patternIn-text
Archived data set with DOIAuthor. (Year). Title (ID; Version n) [Data set]. Archive. DOI(Author, Year)
No identifierAuthor. (Year). Title (Version n) [Data set]. Repository. DOI or URL(Author, Year)
Group author, archive as publisherAgency. (Year). Title (ID; Version n) [Data set]. Archive. DOI(Agency, Year)
Group author is the publisherAgency. (Year). Title [Data set]. URL(Agency, Year)
Data set and code bookAuthor. (Year). Title (ID; Version n) [Data set and code book]. Archive. DOI(Author, Year)
Data that changes over timeAuthor. (Year). Title [Data set]. Publisher. Retrieved Month Day, Year, from URL(Author, Year)
Unpublished, untitledAuthor. (Collection year). [Description] [Unpublished raw data]. Institution.(Author, Year)
Unpublished, titledAuthor. (Collection year). Title [Unpublished raw data]. Institution.(Author, Year)
Statistic read in a reportCite the report, not the data set(Agency, Year)

Frequently Asked Questions

Try AllCitations for Free

No account required. Generate your first citation in seconds.

Start Citing for Free