API:
Documentation

Galleries

List galleries
Get gallery
List gallery photos

List galleries

GET /galleries
Parameters
NameTypeDescription
sortstringCan be one of recent, popular. Default: popular
liststringCan be one of: featured.
includestringFetch additional data using one or more includes separated by comma. Available includes: user
Response
{
    "data": [
        {
            "id": 10,
            "user_id": 1,
            "score": 327.533,
            "name": "Fake daylight",
            "description": "These photos were all taken at night, or late evening, with no ambient light. I wanted to practice faking the daylight. These are the results. I'm now working on a short tutorial on how to achieve similar effect.",
            "count_photos": 12,
            "is_featured": 1,
            "featured_at": "2016-03-18T10:23:05+0000",
            "created_at": "2016-02-16T21:01:33+0000",
            "updated_at": "2016-03-28T19:52:09+0000",
            "user": {
                "data": {
                    "id": 1,
                    "name": "Paweł Kadysz",
                    "username": "pawelkadysz",
                    "avatar": "https://cdn.tookapic.com/avatars/2014/322/e/3/e32b5a9133b8370d6137328bc182ccc6.png?w=128&h=128&fit=crop&q=85&sharp=3&s=ee77785b8ffd22a91c2fe156512997d5",
                    "level": 10,
                    "is_hero": 1
                }
            }
        }
    ],
    "meta": {
        "pagination": {
            "total": 157,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 16,
            "links": {
                "next": "https://api.tookapic.com/galleries?page=2"
            }
        }
    }
}
GET /galleries/:id
Parameters
NameTypeDescription
includestringFetch additional data using one or more includes separated by comma. Available includes: user
Response
{
    "data": {
        "id": 10,
        "user_id": 1,
        "score": 327.533,
        "name": "Fake daylight",
        "description": "These photos were all taken at night, or late evening, with no ambient light. I wanted to practice faking the daylight. These are the results. I'm now working on a short tutorial on how to achieve similar effect.",
        "count_photos": 12,
        "is_featured": 1,
        "featured_at": "2016-03-18T11:23:05+0100",
        "created_at": "2016-02-16T22:01:33+0100",
        "updated_at": "2016-03-28T21:52:09+0200"
    }
}
GET /galleries/:id/photos
Parameters
NameTypeDescription
sortstringCan be one of recent, popular. Default: popular
filterstringCan be one of: all, premium. Default: all
curatedbooleanCan be one of: true, false.
includestringFetch additional data using one or more includes separated by comma. Available includes: user, colors, comments
Response
{
    "data": [
        {
            "id": 62293,
            "title": "Drunken designer",
            "url": "https://tookapic.com/photos/62293",
            "description": "You'll soon be able to see what comes out of me mixing beer and design. Beware.",
            "image_thumb": "https://cdn.tookapic.com/photos/2016/24/1/d/1d92136b3cacee649d83ec46fca7ec41.jpg?w=430&h=430&q=85&sharp=3&s=8ab8a19275b26db8854c09e6093fe329",
            "image_large": "https://cdn.tookapic.com/photos/2016/24/1/d/1d92136b3cacee649d83ec46fca7ec41.jpg?q=85&sharp=3&w=730&fit=crop&s=0946d36f4f7d04ffa2a7199b56dd76c4",
            "width": 4418,
            "height": 3314,
            "tags": [
                "overhead",
                "office",
                "ipad",
                "iphone",
                "notebook",
                "design",
                "designing",
                "designer",
                "table",
                "headphones",
                "earplugs",
                "pencil",
                "pencils",
                "eraser",
                "wood",
                "wooden",
                "macbook",
                "apple",
                "laptop",
                "desklamp",
                "lamp",
                "drawing",
                "painting",
                "beer",
                "drinking",
                "alcohol",
                "watch",
                "hands",
                "night",
                "monday",
                "january"
            ],
            "count_likes": 95,
            "count_comments": 2,
            "is_premium": 1,
            "is_liked": 0,
            "took_at": "2016-01-25T22:13:52+0000",
            "created_at": "2016-01-25T22:40:06+0100"
        }
    ],
    "meta": {
        "pagination": {
            "total": 12,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 2,
            "links": {
                "next": "https://api.tookapic.com/galleries/10/photos?page=2"
            }
        }
    }
}

Pawel from Tookapic

Hi, I’m happy to help you with any tookapic subject, however, before you send me a message, please look at Help section where you can find answers for most questions.

We’ll reply shortly!

Please note that answers for most questions about tookapic can be found in the Help section.