PoemWiki Open API
    • 数据导入接口使用指南
    • Genrate Access Token
      POST
    • Detect Language
      POST
    • Import Poem
      POST
    • Poem Search
      POST
    • Poem Details by FakeID
      GET
    • Author Search
      POST

      Detect Language

      Testing Env
      https://poemwiki.zeabur.app/api/v1
      Testing Env
      https://poemwiki.zeabur.app/api/v1
      POST
      /poem/detect

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Header Params

      Body Params application/json

      Example
      {
          "text": "test"
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://poemwiki.zeabur.app/api/v1/poem/detect' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{
          "text": "test"
      }'

      Responses

      🟢200Success
      application/json
      Bodyapplication/json

      Example
      {
          "data": {
              "language_id": 2
          },
          "message": "",
          "code": 0
      }
      Modified at 2025-08-23 10:07:59
      Previous
      Genrate Access Token
      Next
      Import Poem
      Built with