canonical: https://jentic.com/apis/slashyear.com/slashyear

# slashyear

The slashyear API publishes sourced world history as static JSON, organised by year, calendar date, century, decade, country, and subject. Each dated entry carries the Wikipedia revision id it was quoted from, and subject timelines carry a Wikidata id. Year fact sheets from 1800 to 2025 add outside series such as world population, U.S. prices and CPI, who led every state, and Billboard Hot 100 No. 1s, each with its source, and full gzipped NDJSON dumps of events, years, and subject timelines are available for bulk use. Years use astronomical numbering, so -43 is 44 BCE.

## For AI agents

Look up sourced historical events by year, date, century, decade, country, or subject, search subject timelines, and read year fact sheets with population, U.S. prices, and Billboard No. 1s.

## Scope

Does not provide live news, full Wikipedia article text, or editable data. Use for reading sourced historical entries, year facts, and timelines only.

## Capabilities

- Fetch every dated entry for one year, using astronomical numbering where -43 is 44 BCE
- Read what happened on one calendar day across every year, such as 07-20
- Follow one subject's timeline across centuries, with its Wikidata id and each entry's Wikipedia revision id
- Search subjects by free text and narrow their dated entries with from, to, and limit
- Pull a year fact sheet from 1800 to 2025 with world population, U.S. CPI and prices, state leaders, and Billboard Hot 100 No. 1s
- Download gzipped NDJSON dumps of all events, years, and subject timelines for offline analysis

## Use cases

### Sourced answers to history questions

An AI assistant asked what happened in a given year should cite sources rather than recall. Through Jentic the agent searches for 'get historical events for a year', loads the slashyear year operation, and calls it with the year. Each entry it returns carries the Wikipedia revision id it was quoted from, so the agent can cite the exact revision in its answer.

Example prompt: Call GET `/api/year/{year}.json` with year=1969 and list the leading entries with their Wikipedia revision ids

### On this day features

Newsletters and apps that run an 'on this day' feature need events for one calendar date across all years. The dates endpoint returns one calendar day across every year, and the dates index lists all 366 dates, so a scheduled job can fetch today's entry each morning.

Example prompt: Call GET `/api/date/{month-day}.json` for today's month-day and pick three entries from different centuries

### Price and inflation context for a year

Writers explaining what money was worth in the past need sourced figures. The year fact sheet covers 1800 to 2025 with U.S. prices and CPI and world population, and the prices endpoint returns U.S. CPI and average prices by year from BLS, Census, and DOL via FRED, each figure with its source.

Example prompt: Fetch GET `/api/facts/{year}.json` for year=1950 and report the U.S. CPI and world population with their sources

### Bulk history dataset

Researchers building timelines or training retrieval indexes can skip page-by-page fetching. The dump endpoints serve every dated entry, one record per year, and one record per subject timeline as gzipped newline-delimited JSON, described by a Frictionless data package.

Example prompt: Read GET `/dump/datapackage.json`, then download GET `/dump/events.ndjson.gz` and count entries per century

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/year/{year}.json` | One year's dated entries |
| GET | `/api/date/{month-day}.json` | One calendar day across every year |
| GET | `/api/search` | Search subjects and their entries |
| GET | `/api/entity/{slug}.json` | One subject's timeline |
| GET | `/api/facts/{year}.json` | Year fact sheet with sources |
| GET | `/api/prices.json` | U.S. CPI and average prices by year |
| GET | `/dump/events.ndjson.gz` | Bulk dump of every dated entry |

## Key resources

- **Years and dates** — Indexes of every published year and all 366 dates, plus one year or one calendar day across every year
- **Centuries, decades, countries, and topics** — Cross-cut views of history by century, decade, country, and subject
- **Entities and search** — Subject timelines with Wikidata ids, and free-text subject search with year bounds
- **Facts and series** — Year fact sheets from 1800 to 2025, U.S. prices and CPI, and Billboard Hot 100 No. 1s
- **Dumps** — Gzipped NDJSON dumps of events, years, and entities with a Frictionless data package

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 62 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 93 / 100
  - Developer Experience & Jentic Compatibility: 64 / 100
  - AI-Readiness & Agent Experience: 39 / 100
  - Agent Usability: 94 / 100
  - Security: 100 / 100
  - AI Discoverability: 45 / 100
- **View full report:** https://jentic.com/apis/slashyear.com/slashyear/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring slashyear by hand means learning its astronomical numbering, where -43 is 44 BCE, its calendar-date and slug path formats such as 07-20, and when to use the NDJSON dumps instead of individual pages. Through Jentic you install once, import slashyear from the API Directory, and your agent calls it with no key to manage.
- **Permission scoping:** slashyear puts the year, date, country, and subject slug in the URL path (`/api/year/{year}.json`, `/api/topic/{slug}.json`), so a rule can pin your agent to the paths it needs, such as one subject's timeline. You choose the operations it may call, so the large dump downloads are not included unless you add them.
- **Credential handling:** The spec declares no authentication, so the agent holds no secret for slashyear. Calls run from your own Jentic One instance on your machine, alongside your other imported APIs.
- **Discovery method:** Agents search Jentic by intent such as 'get historical events for a year' or 'what happened on this day', and Jentic returns the matching slashyear operation with its input schema, so the agent fills in the year or month-day path correctly.

## Related APIs

- **Wikimedia REST API** — Wikipedia page content and summaries from Wikimedia projects
- **FRED API** — Federal Reserve economic time series, including CPI
- **PoetryDB** — Poems by author and title for cultural context

## FAQ

### What authentication does the slashyear API use?

None. The OpenAPI spec declares no security scheme, and its description states that the API needs no key and has CORS open. Every endpoint is a plain GET on https://slashyear.com, so through Jentic you import it and your agent can call it straight away.

### How does slashyear number years before the common era?

slashyear uses astronomical numbering, so year 0 is 1 BCE and -43 is 44 BCE. Pass that number to GET `/api/year/{year}.json`, and use the same numbering for the from parameter on GET `/api/search.`

### What are the rate limits for the slashyear API?

The spec's own description states there is no rate limit. Because the data is static JSON, bulk users can also download the gzipped dumps under /dump instead of paging through year endpoints. See https://slashyear.com/api for current terms.

### Is there a slashyear MCP server?

You don't need an MCP server to give your agent slashyear. Jentic connects it directly from the API Directory: import it and your agent finds the year, date, subject, or facts operation it needs on demand without loading every tool definition into its context.

### How do I search a subject's history through Jentic?

Search Jentic for 'search historical subjects by name', load the GET `/api/search` operation, and execute it with q set to a subject such as Apollo and optional from, to, and limit values. The response returns matching subjects and their dated entries. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the slashyear API?

Yes. Write a rule that allows only GET `/api/search` and GET `/api/year/{year}.json`, and the agent can search subjects and read year pages but cannot pull the large dump files. Every call it makes is logged.
