Categories

Jarside automatically sync your WordPress categories from the websites you added. You can find them via our API.

The category model

The category model contains all the information about the category.

Properties

  • Name
    uuid
    Type
    string
    Description

    Unique identifier for the category.

  • Name
    name
    Type
    string
    Description

    The category name.

  • Name
    slug
    Type
    string
    Description

    The category slug.

  • Name
    wordpress_id
    Type
    string
    Description

    The wordpress_id of the current Category.

  • Name
    wordpress_permalink
    Type
    string
    Description

    The wordpress permalink of the current Category.


GET/v1/websites/:website_uuid/categories

List all categories for a website

This endpoint allows you to retrieve a paginated list of all categories for a specific website. By default, a maximum of 20 websites are shown per page.

Optional attributes

  • Name
    page
    Type
    integer
    Description

    Allows you to choose the page.

Request

GET
/v1/websites/9a8dab6e-453.../categories
curl -G https://api.jarside.ai/v1/articles/list \
  -H "Authorization: Bearer {token}" \
  -d page=1

Response

{
  "data": [
    {
        "uuid": "2ea91aba-df0a-4133-b94c-199eb635d556",
        "name": "Avis",
        "slug": "avis",
        "wordpress_id": "155",
        "wordpress_permalink": "https://affilisting.com/blog/fr/category/avis/"
    },
    ...
  ],
  "links": {
      "first": "https://api.jarside.ai/v1/websites/9a8dab6e-4538-44c1-b013-188f18413da4/categories?page=1",
      "last": null,
      "prev": null,
      "next": null
  },
  "meta": {
      "current_page": 1,
      "from": 1,
      "path": "https://api.jarside.ai/v1/websites/9a8dab6e-4538-44c1-b013-188f18413da4/categories",
      "per_page": 20,
      "to": 11
  }
}