# Almanac Citation Formatter

> Almanac Citation Formatter is a paid API for AI agents from almanac.locomot.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Formats academic citations in APA 7, MLA 9, Chicago 17, or BibTeX from structured metadata fields, returning the full reference entry plus in-text citation.

## Facts

- Endpoint: GET https://almanac.locomot.io/cite
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/almanac-citation-formatter-32d9e48f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SOEkyZwmR_PdMOPp2_gUO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability almanac-citation-formatter-32d9e48f
```

Example prompt: Format an APA 7 citation for this journal article: title 'Attention Is All You Need', authors 'Vaswani, Ashish; Shazeer, Noam', published 2017 in volume 30 of the journal Neural Information Processing Systems — give me both the reference entry and the in-text citation.

## When to prefer this

Choose this endpoint when you need deterministic, style-manual-accurate citation formatting (APA 7, MLA 9, Chicago 17 author-date, or BibTeX) from structured metadata rather than free-text parsing. Ideal for academic writing tools, reference managers, or any workflow that requires exact compliance with published style guides. Prefer this over LLM-generated citations when correctness and reproducibility are critical.

## Known failure modes

- Missing required 'title' or 'style' query parameters returns a 400 error
- Unsupported style value (not apa/mla/chicago/bibtex) returns an error
- Very long author lists may be truncated in GET; use POST for full lists
- DOI or URL fields that are malformed may be included verbatim without resolution
- Network timeout or service unavailability returns a 5xx error
- Payment of 0.001 USDC required; unpaid requests return 402 Payment Required

## How this service works

Deterministic citation formatter — APA 7, MLA 9, Chicago 17 author-date, BibTeX. From structured fields, returns the reference entry (markdown/html/plain) + the in-text citation, reproducing published style-manual examples exactly. For full author lists use POST. Every answer signed. Free sample, no payment required: GET /play/cite

## Output

Returns the fully formatted reference string (in markdown, HTML, or plain text), the corresponding in-text citation, the detected source type (article/book/chapter/web), and the style name — all cryptographically signed. Output conforms exactly to the chosen style manual's published examples.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "style",
      "title"
     ],
     "properties": {
      "doi": {
       "type": "string"
      },
      "url": {
       "type": "string"
      },
      "type": {
       "type": "string",
       "description": "article | book | chapter | web"
      },
      "year": {
       "type": "string"
      },
      "issue": {
       "type": "string"
      },
      "pages": {
       "type": "string"
      },
      "place": {
       "type": "string"
      },
      "style": {
       "type": "string",
       "description": "apa | mla | chicago | bibtex"
      },
      "title": {
       "type": "string",
       "description": "work title (verbatim case)"
      },
      "volume": {
       "type": "string"
      },
      "authors": {
       "type": "string",
       "description": "'Family, Given; Family2, Given2'"
      },
      "container": {
       "type": "string",
       "description": "journal/site name"
      },
      "publisher": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "style": {
     "type": "string"
    },
    "intext": {
     "type": "string"
    },
    "reference": {
     "type": "object"
    },
    "source_type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/almanac-citation-formatter-32d9e48f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from almanac.locomot.io](https://www.zero.xyz/host/almanac.locomot.io/llms.txt)
