Free plan

Citation generator

Turn your sources into a correctly formatted bibliography
POST
/v1/documents/citations

About this tool

A citation is the formal way to name a book, article or web page you used. This tool makes a list of references in a style such as APA, MLA, Chicago, Harvard, IEEE or Vancouver. You type the details of each source, or add a file exported from a reference program. It can also convert your sources to other reference formats. Nothing is looked up online, so check the details.
For example, you type the details of five sources for an essay and get the reference list in APA style.

How to use it

  1. Choose this tool.
  2. Type the details of your sources, or add a reference file you already have.
  3. Choose the citation style.
  4. Choose the form of the result, and options such as sorting or adding in-text citations.
  5. Press Generate, then copy the list or download it.

What you get back

You get a formatted list of references that you can copy into your paper, or your sources converted to another format.
GOOD TO KNOW
Titles are used as written (no case changes). Counts as one document.
TEST IT LIVE

Try Citation generator in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/citations
Tool ID
documents.citations
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/citations" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'style=apa' \
  -F 'output=text' \
  -F 'sort=alphabetical'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.citations({
    "style": "apa",
    "output": "text",
    "sort": "alphabetical"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->citations([
    'style' => 'apa',
    'output' => 'text',
    'sort' => 'alphabetical',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make a bibliography (and in-text citations) in APA 7, MLA 9, Chicago (author-date), Harvard, IEEE or Vancouver from a list of sources or a BibTeX, RIS or CSL-JSON file; or convert the sources to BibTeX, RIS or CSL-JSON. Nothing is looked up online.

Citation generator works from text and settings, so no file is needed. Every input is optional.

Citation generator is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/citations with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.