Articles on: Legacy API

Posts (legacy)

This API is deprecated and will be discontinued soon. Click here to check our new API docs.

Changelogfy provides an API to you to interact with your posts.



Get project data:


curl --request GET \
  --url https://changelogfy.com/api/projects/{YOUR_APP_ID}/posts?page=1 \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json'


Response:


{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "project_id": 1,
      "user_id": 1,
      "published": 1,
      "published_at": "2021-11-13 01:18:30",
      "fixed_on_top": false,
      "override_url": null,
      "expire_at": null,
      "thumbnail_preview": null,
      "labels": [
        {
          "id": 2,
          "name": "Fix",
          "color": "#FF1197",
          "project_id": 1,
          "primary_color": "rgba(255,17,151,1.00)",
          "secondary_color": "rgba(255,17,151,0.12)",
          "pivot": {
            "post_id": 1,
            "label_id": 2
          }
        }
      ],
      "user": {
        "id": 1,
        "name": "Paulo",
        "avatar": "https://ui-avatars.com/api/?name=Paulo&color=FFFFFF&background=9CA3AF",
        "job": null
      },
      "post_content": {
        "id": 1,
        "title": "Lorem Lorem",
        "body": "<p>Lorem Lorem Lorem Lorem</p>",
        "slug": "lorem-lorem-english-uYc2Rr",
        "post_id": 1,
        "language_id": 1,
        "created_at": "2021-11-13T01:18:40.000000Z",
        "updated_at": "2021-11-13T01:18:40.000000Z",
        "deleted_at": null,
        "language": {
          "id": 1,
          "name": "English",
          "locale": "en",
          "created_at": "2021-11-13T01:09:12.000000Z",
          "updated_at": "2021-11-13T01:09:12.000000Z",
          "flag": "🇺🇸"
        }
      },
      "post_contents": [
        {
          "id": 1,
          "title": "Lorem Lorem",
          "body": "<p>Lorem Lorem Lorem Lorem</p>",
          "slug": "lorem-lorem-english-uYc2Rr",
          "post_id": 1,
          "language_id": 1,
          "created_at": "2021-11-13T01:18:40.000000Z",
          "updated_at": "2021-11-13T01:18:40.000000Z",
          "deleted_at": null,
          "language": {
            "id": 1,
            "name": "English",
            "locale": "en",
            "created_at": "2021-11-13T01:09:12.000000Z",
            "updated_at": "2021-11-13T01:09:12.000000Z",
            "flag": "🇺🇸"
          }
        }
      ]
    }
  ],
  "first_page_url": "http://localhost:8000/api/projects/f080c7b8-8dff-438e-9dee-997449cc72ce/posts?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "http://localhost:8000/api/projects/f080c7b8-8dff-438e-9dee-997449cc72ce/posts?page=1",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "http://localhost:8000/api/projects/f080c7b8-8dff-438e-9dee-997449cc72ce/posts?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next &raquo;",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "http://localhost:8000/api/projects/f080c7b8-8dff-438e-9dee-997449cc72ce/posts",
  "per_page": 5,
  "prev_page_url": null,
  "to": 1,
  "total": 1
}


If you don't know your app_id, Check here!

Updated on: 03/30/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!