---
title: "Fetch JSON data from S3 based on a provided URL."
method: POST
path: "/fetch-coords"
tags: ["Utilities"]
---

# Fetch JSON data from S3 based on a provided URL.

`POST /fetch-coords`

This endpoint receives an S3 URL pointing to a resource, modifies the URL to target a JSON file instead of an image, and returns the content of the JSON file.

## Request body

- object
  - `s3Url` string, required — The S3 URL pointing to the original image file.

## Response `200`

JSON data successfully retrieved from the specified S3 URL.

- object
  - `averageConfidenceScore` number — The average confidence score of the digital object transcription.
  - `data` object — The structure of the JSON data can vary depending on the content of the file.

## Other responses

- `400` — Invalid S3 URL format. Please check the URL and try again.
- `500` — Server error occurred while fetching JSON from S3.

---

[API](https://skmtc.net/archives/apis/catalog-api.md) · [All operations](https://skmtc.net/archives/apis/catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/archives/catalog-api/revisions/cafec81df996/schema)
