Skip to content

Weathernews SEA API

API UserID and Password are required to call the SEA API.

API UserID and Password will be provided upon delivery.

Weathernews SEA API is accessible 24 hours a day, 365 days a year. No scheduled maintenance is planned. (This is not the case in the event of an emergency such as a failure, but we will restore the API as quickly as possible.)

Token Issuance

  • POST
    Issues a token in JSON format.

Description:
uid and password will be created when the trial phase has begun.

Request Body

Content-Type: application/x-www-form-urlencoded

NameTypeRequiredDescription
uidstringYesUser ID
passwordstringYesPassword

Curl

bash
curl --location 'https://sea-api.wni.com/api/auth.json' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'uid=xxxxxxxxxx' \    # User ID
  --data-urlencode 'password=yyyyyyyyyy'  # Password

Responses

  • 200 OK
    Returns a token in JSON format.

    json
    {
      "tokenId": "16d5edb8-4a24-48f7-bd9a-94548bdbbc89"
    }
  • 204 No Content
    No update data / No latest file. There is no content to send for this request, but the headers may be useful.

  • 400 Bad Request
    Wrong format in parameter. The server could not understand the request due to invalid syntax.

  • 401 Unauthorized
    Incorrect Login ID or Password. Authentication is needed to get requested response.

  • 403 Forbidden
    Don't have access to the API data. Client does not have access rights to the content.

  • 404 Not Found
    Extension file is not accepted. Server cannot find requested resource.

  • 429 Too Many Requests
    Too many requests. The user has sent too many requests in a given amount of time ("rate limiting").

  • 500 Internal Server Error
    Internal server error. The server has encountered a situation it doesn't know how to handle.

All product names and names of products mentioned herein are registered trademarks or trademarks of their respective companies.