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

# /jmty/lines

> List the railway lines Jimoty (jmty.jp) indexes a Japanese prefecture by, with the operator that runs each line and the numeric id the board filters on, and — for a single line — every station on it with its own numeric id. Jimoty is organised around geography first and lets a search be pinned to a whole line or to one station, but it prints those ids nowhere else, so this is the lookup that makes the line_id and station_id filters of jmty/listings/search reachable. Tokyo is indexed by 81 lines across eleven operators, Osaka by 54, a rural prefecture such as Tottori by 7.

**Price:** 1 credit

**⚠️ Common errors:** 412: This prefecture does not index a railway line with this id



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/jmty/lines
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/jmty/lines:
    post:
      tags:
        - /jmty
      summary: /jmty/lines
      description: >-
        List the railway lines Jimoty (jmty.jp) indexes a Japanese prefecture
        by, with the operator that runs each line and the numeric id the board
        filters on, and — for a single line — every station on it with its own
        numeric id. Jimoty is organised around geography first and lets a search
        be pinned to a whole line or to one station, but it prints those ids
        nowhere else, so this is the lookup that makes the line_id and
        station_id filters of jmty/listings/search reachable. Tokyo is indexed
        by 81 lines across eleven operators, Osaka by 54, a rural prefecture
        such as Tottori by 7.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: This prefecture does not index a railway line
        with this id
      operationId: __api_jmty_lines_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JmtyLinesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/JmtyLine'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    JmtyLinesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        prefecture:
          $ref: '#/components/schemas/JmtyPrefectureCode'
        line_id:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
      type: object
      required:
        - prefecture
    JmtyLine:
      properties:
        '@type':
          type: string
          default: JmtyLine
        id:
          type: integer
        name:
          type: string
        operator:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        stations:
          items:
            $ref: '#/components/schemas/JmtyStation'
          type: array
          default: []
      type: object
      required:
        - id
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    JmtyPrefectureCode:
      type: string
      enum:
        - all
        - hokkaido
        - aomori
        - iwate
        - miyagi
        - akita
        - yamagata
        - fukushima
        - ibaraki
        - tochigi
        - gunma
        - saitama
        - chiba
        - tokyo
        - kanagawa
        - niigata
        - toyama
        - ishikawa
        - fukui
        - yamanashi
        - nagano
        - gifu
        - shizuoka
        - aichi
        - mie
        - shiga
        - kyoto
        - osaka
        - hyogo
        - nara
        - wakayama
        - tottori
        - shimane
        - okayama
        - hiroshima
        - yamaguchi
        - tokushima
        - kagawa
        - ehime
        - kochi
        - fukuoka
        - saga
        - nagasaki
        - kumamoto
        - oita
        - miyazaki
        - kagoshima
        - okinawa
    JmtyStation:
      properties:
        '@type':
          type: string
          default: JmtyStation
        id:
          type: integer
        name:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````