# API v1 stops working

Calls to /datasets/v1/* on NCBI Datasets API stopped working on December 31, 2024.

NCBI Datasets API endpoints under /datasets/v1/* stopped working on December 31, 2024. The provider retired the v1 API, older command-line interface versions, and the v1 Python library. Requests sent to these endpoints after that date fail.

## What to use instead

Update your requests to target the v2 API instead, such as using GET /datasets/v2/genome/accession/{accessions}/dataset_report.

- API: NCBI Datasets API (api.ncbi.nlm.nih.gov)
- Kind: Version retirement
- Announced: February 20, 2024
- Takes effect: December 31, 2024
- Calls after that day: fail
- Calls it hits: `/datasets/v1/*`
- Source: [Announcement](https://ncbiinsights.ncbi.nlm.nih.gov/2024/02/20/updates-ncbi-datasets-apis-command-line-tools/)
- Verified: October 26, 2026, against NCBI Datasets API's own pages
- Page: https://www.okapi.bot/providers/ncbi-datasets-api/breaking-changes/api-v1-stops-working/

## NCBI Datasets API's words

> At this time, the v1 API, the command-line interface (CL I ) version 13 and older versions, and the Python library v1 will be deprecated and thus no longer supported for bug fixes or updates. Effective December 31, 2024, these will no longer be available for use.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
