Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

GET - /v1/users/<username>/graphs/<graphID>/latest

Description

This API is used to get latest Pixel of the graph which specified by <graphID> .

  • Pixel with date that is later than the date of this API request will not be retrieved by this API.

HTTP Method , API endpoint

GET /v1/users/<username>/graphs/<graphID>/latest

Request Header

Key Description
X-USER-TOKEN [required] It is the authentication token specified at the time of user registration.

Possible errors by HTTP response status code

  • 404 Not Found
    • This error occurs when your request destination does not exist.
    • This error also occurs when authentication to the request destination is not successful.
  • 500 Internal Server Error
    • Status in the event of an unexpected error. Retrying the request may be successfully processed.
  • 503 Service Unavailable
    • This error occurs when Pixela is temporarily unavailable. Please take a moment and retry your request.

Example

$ curl -X GET https://pixe.la/v1/users/a-know/graphs/test-graph/latest -H 'X-USER-TOKEN: thisissecret'
{"date":"20240414","quantity":"5","optionalData":"{\"key\":\"value\"}"}}