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

      Import Poem

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

      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

      Examples
      {
          "poems": [
              {
                  "title": "string",
                  "poet": "poet name",
                  "poem": "poem line 1\npoem line 2\nxxxxxxxxx xx xxx xxx",
                  "language_id": 2
              }
          ]
      }

      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
      curl --location 'https://poemwiki.zeabur.app/api/v1/poem/import' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{
          "poems": [
              {
                  "title": "string",
                  "poet": "poet name",
                  "poem": "poem line 1\npoem line 2\nxxxxxxxxx xx xxx xxx",
                  "language_id": 2
              }
          ]
      }'

      Responses

      🟢200Success
      application/json
      Bodyapplication/json

      Examples
      {
          "data": [
              {
                  "id": 196672,
                  "url": "http://wiki.lol/p/MTkwNzEyMjQyNDIyODcxMjA="
              }
          ],
          "message": "Thanks for your contribution!",
          "code": 0
      }
      🟢200Duplicated
      Modified at 2026-04-14 09:26:40
      Previous
      Detect Language
      Next
      Poem Search
      Built with