# Category List/Search

Get list of tags with pagination from project

GET

/api/projects/{project_id}/categories
KEY TYPE DESCRIPTION
search string optional Search for category by name
sort_column string optional Sort categories by column id name active
sort_order string optional Order categories desc asc

Response:

{
    "data": [
        {
            "id": 4,
            "name": "News",
            "active": true
        },
        ...
        ..
        .
    ],
    "links": {
        "first": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=1",
        "last": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=2",
        "prev": null,
        "next": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 2,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://api.mov.mediaoutcast.com/api/projects/1/categories?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://api.mov.mediaoutcast.com/api/projects/1/categories",
        "per_page": 10,
        "to": 10,
        "total": 12
    }
}