---
title: "Retrieve reports by repository on the numbers of metadata records in the SDC database."
method: GET
path: "/datacatalog/api/harvest/reports"
tags: ["Harvest"]
---

# Retrieve reports by repository on the numbers of metadata records in the SDC database.

`GET /datacatalog/api/harvest/reports`

## Request

- Base URL: `https://data.usgs.gov` (the document declares no server; this is the origin it was published from)
- URL: `https://data.usgs.gov/datacatalog/api/harvest/reports`
- Auth: none declared

Retrieve reports by repository on the numbers of metadata records
in the SDC database, including the number of new, modified,
deleted, failed, indexed, and successful records.

**Parameters**
* `start_date`: First date of harvest to report on for the repository. Format YYYY-MM-DD. Default value is seven days ago.
* `end_date`: Last date of harvest to report on for the repository. Format YYYY-MM-DD. Default value is today.
* `harvest_source_name`: Name of the repository that is providing the metadata records to the SDC. See a complete list below under HarvestSourceEnum schema.

## Query parameters

- `start_date` string, date, nullable
- `end_date` string, date, nullable
- `harvest_source_name` string, nullable
- `data_source_name` string, nullable

## Response `200`

Successful Response

- Metrics[]
  - `harvest_date` string, date, required
  - `harvest_source_name` string, nullable
  - `data_source_name` string, nullable
  - `total_records` integer, nullable
  - `harvested_records` integer, nullable
  - `successful_records` integer, nullable
  - `failed_records` integer, nullable
  - `new_records` integer, nullable
  - `modified_records` integer, nullable
  - `deleted_records` integer, nullable
  - `indexed_records` integer, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/usgs/apis/usgs-science-data-catalog-api-documentation.md) - [All operations](https://skmtc.dev/usgs/apis/usgs-science-data-catalog-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/usgs/apis/usgs-science-data-catalog-api-documentation/revisions/f5f6a07ba13f?raw)
