Skip to main content

getArticleByID

The getArticleByID API endpoint retrieves an article based on its unique identifier.

Endpoint

  • Route: /apiv1/getArticleByID/<id>
  • Method: GET
  • Rate Limit: 25 requests per minute
  • Cache Timeout: 200 seconds

Request

Path Parameter

  • id: The unique identifier of the article.

Example

GET /apiv1/getArticleByID/(ArticleID)

Response

Success Response

  • Status Code: 200 OK

  • Body: JSON data representing the article.

    {
    "_id": {
    "$oid":"(ArticleID)"
    },
    "Title": "Example Article",
    "Author": "Name",
    "Content": "Article content",
    "Tags": [
    "tag1",
    "tag2",
    "tag3"
    ],
    "imageUrl": "https://ep-img-bucket.s3.eu-central-1.amazonaws.com/(ArticleID)",
    "shortContent": "fdfff",
    "special": false,
    "userID": "HxMC7cjzetf3tNN7INUjkmLO4HC3"
    }