> ## Documentation Index
> Fetch the complete documentation index at: https://data.kushiro.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a source summary

> Returns a single published source summary. Unknown or currently unavailable sources return 404.



## OpenAPI

````yaml /openapi.json get /api/v1/sources/{id}
openapi: 3.1.0
info:
  title: k-Data
  version: 0.1.0
  description: >-
    Preview read-only API for reshaped public data collected from Kushiro City
    sources. Response shapes, URLs, and published datasets may change without
    notice.
  license:
    name: CC BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/deed.ja
servers:
  - url: https://data.kushiro.app
    description: Production
security: []
tags:
  - name: service
    description: Service metadata and health endpoints.
  - name: sources
    description: Published source summaries.
  - name: metrics
    description: Numeric data records.
  - name: points
    description: >-
      Facility and location-style data records such as public facilities, AED
      locations, evacuation sites, and indexes.
  - name: terms
    description: Terms of use and attribution notes.
paths:
  /api/v1/sources/{id}:
    get:
      tags:
        - sources
      summary: Get a source summary
      description: >-
        Returns a single published source summary. Unknown or currently
        unavailable sources return 404.
      operationId: getSource
      parameters:
        - name: id
          in: path
          required: true
          description: Source ID, for example `kushiro_population_households_monthly`.
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: >-
            Published source detail. Includes the summary counts plus a
            per-metric breakdown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceDetail'
        '404':
          description: Source not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceNotFoundError'
              examples:
                notFound:
                  value:
                    error: source not found
                    source_id: unknown_source
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    SourceDetail:
      type: object
      required:
        - source_id
        - metric_count
        - point_count
        - latest_fetched_at
        - metrics
      properties:
        source_id:
          type: string
        metric_count:
          type: integer
          minimum: 0
        point_count:
          type: integer
          minimum: 0
        latest_fetched_at:
          type:
            - string
            - 'null'
          format: date-time
        metrics:
          type: array
          description: >-
            Per-metric breakdown (distinct metric names within the source).
            Empty for point-only sources.
          items:
            $ref: '#/components/schemas/SourceMetricBreakdown'
      additionalProperties: false
    SourceNotFoundError:
      type: object
      required:
        - error
        - source_id
      properties:
        error:
          type: string
          example: source not found
        source_id:
          type: string
      additionalProperties: false
    SourceMetricBreakdown:
      type: object
      required:
        - name
        - count
        - unit
        - period_range
      properties:
        name:
          type: string
        count:
          type: integer
          minimum: 0
        unit:
          type:
            - string
            - 'null'
        period_range:
          type: object
          required:
            - start
            - end
          properties:
            start:
              $ref: '#/components/schemas/DateString'
            end:
              $ref: '#/components/schemas/DateString'
          additionalProperties: false
      additionalProperties: false
    InternalServerError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: internal server error
      additionalProperties: false
    DateString:
      type: string
      pattern: ^\d{4}-\d{2}-\d{2}$
      example: '2026-04-01'
  responses:
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
          examples:
            default:
              value:
                error: internal server error

````