Citation generator
About this tool
How to use it
- Choose this tool.
- Type the details of your sources, or add a reference file you already have.
- Choose the citation style.
- Choose the form of the result, and options such as sorting or adding in-text citations.
- Press Generate, then copy the list or download it.
What you get back
Try Citation generator in the Studio
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;