API:
Documentation

Cameras

List cameras
List cameras by manufacturer
Get camera model
Get camera photos

List cameras

GET /cameras
Parameters
NameTypeDescription
sortstring Can be one of: photos, users, manufacturer, model. Default: photos
orderstring Can be one of: asc, desc. Default: desc

Response

{
    "data": [
        {
            "id": 11,
            "camera": "Nikon D3200",
            "model": "D3200",
            "model_slug": "d3200",
            "manufacturer": "Nikon",
            "manufacturer_slug": "nikon",
            "count_photos": 2950,
            "count_users": 53
        }
    ],
    "meta": {
        "pagination": {
            "total": 128,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 13,
            "links": {
                "next": "https://api.tookapic.com/cameras?page=2"
            }
        }
    }
}

List cameras by manufacturer

Get cameras produced by given :manufacturer_slug.

GET /cameras/:manufacturer_slug
Parameters
NameTypeDescription
sortstring Can be one of: photos, users, model. Default: photos
orderstring Can be one of: asc, desc. Default: desc
Response
{
    "data": [
        {
            "id": 11,
            "camera": "Nikon D3200",
            "model": "D3200",
            "model_slug": "d3200",
            "manufacturer": "Nikon",
            "manufacturer_slug": "nikon",
            "count_photos": 2950,
            "count_users": 53
        }
    ],
    "meta": {
        "pagination": {
            "total": 24,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 3,
            "links": {
                "next": "https://api.tookapic.com/cameras/nikon?page=2"
            }
        }
    }
}

Get camera model

Get camera :model produced by :manufacturer_slug.

GET /cameras/:manufacturer_slug/:model_slug
Response
{
    "data": {
        "id": 11,
        "camera": "Nikon D3200",
        "model": "D3200",
        "model_slug": "d3200",
        "manufacturer": "Nikon",
        "manufacturer_slug": "nikon",
        "count_photos": 2950,
        "count_users": 53
    }
}

Get camera photos

Get photos took with camera :model_slug.

GET /cameras/:manufacturer_slug/:model_slug/photos
Parameters
NameTypeDescription
sortstring Can 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, comments, exif, palette
Response
{
    "data": [
        {
            "id": 24635,
            "title": "Untitled",
            "url": "https://tookapic.com/photos/24635",
            "description": "",
            "image_thumb": "https://cdn.tookapic.com/photos/2015/236/d/f/df97af708cbe4dc5f2966ce4e0b26e2a.jpg?w=430&h=430&q=85&sharp=3&s=4790824849fee5e9b2dc62c19f5eb2e2",
            "image_large": "https://cdn.tookapic.com/photos/2015/236/d/f/df97af708cbe4dc5f2966ce4e0b26e2a.jpg?q=85&sharp=3&w=730&fit=crop&s=dd95e1ba9a2544f1313c37a902550823",
            "width": 6016,
            "height": 4000,
            "tags": [
                "afternoon",
                "monday",
                "august"
            ],
            "count_likes": 74,
            "count_comments": 2,
            "is_premium": 1,
            "is_liked": 0,
            "took_at": "2015-08-24T17:42:08+0000",
            "created_at": "2015-08-25T07:52:16+0200"
        }
    ],
    "meta": {
        "pagination": {
            "total": 2950,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 295,
            "links": {
                "next": "https://api.tookapic.com/cameras/nikon/d3200/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.