---
title: "Get Source"
method: GET
path: "/api/sources/{code}"
tags: ["sources"]
---

# Get Source

`GET /api/sources/{code}`

## Request

- Base URL: `https://fojin.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fojin.app/api/sources/{code}`
- Auth: none declared

Get a single data source by its code (e.g. 'cbeta', 'suttacentral').

按代码获取单个数据源详情。

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- DataSourceResponse
  - `id` integer, required
  - `code` string, required
  - `name_zh` string, required
  - `name_en` string, nullable
  - `base_url` string, nullable
  - `api_url` string, nullable
  - `description` string, nullable
  - `access_type` string
  - `region` string, nullable
  - `languages` string, nullable
  - `research_fields` string, nullable
  - `supports_search` boolean
  - `supports_fulltext` boolean
  - `has_local_fulltext` boolean
  - `has_remote_fulltext` boolean
  - `supports_iiif` boolean
  - `supports_api` boolean
  - `sort_order` integer
  - `is_active` boolean
  - `health_status` string
  - `health_checked_at` string, date-time, nullable
  - `health_detail` string, nullable
  - `health_confidence` string
  - `license_spdx` string, nullable
  - `license_url` string, nullable
  - `license_notes` string, nullable
  - `attribution_required` boolean, nullable
  - `commercial_allowed` boolean, nullable
  - `redistribution_allowed` boolean, nullable
  - `embedding_allowed` boolean, nullable
  - `license_verified_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `distributions` SourceDistributionResponse[]
    - `id` integer, required
    - `code` string, required
    - `name` string, required
    - `channel_type` string, required
    - `url` string, required
    - `format` string, nullable
    - `license_note` string, nullable
    - `is_primary_ingest` boolean
    - `priority` integer
    - `is_active` boolean
    - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
