Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

3.9 KB
Raw Blame
{
    meta: {
        createdAt: '2022-03-28T15:07:11.173Z',
        host: 'https://api.openverse.org',
        resHumanReadable: true,
        resUncompressed: true,
    },
    req: {
        headers: {
            connection: 'keep-alive',
            pragma: 'no-cache',
            'cache-control': 'no-cache',
            'sec-ch-ua': '',
            accept: 'application/json, text/plain, */*',
            'sec-ch-ua-mobile': '?0',
            'sec-ch-ua-platform': '',
            'sec-fetch-site': 'same-site',
            'sec-fetch-mode': 'cors',
            'sec-fetch-dest': 'empty',
            referer: 'http://localhost:8443/',
            'accept-encoding': 'gzip, deflate, br',
        },
        url: '/v1/images/ea7e24ee-1374-4c49-9f6f-5c4529b701d8/',
        method: 'GET',
        body: '',
    },
    res: {
        status: 200,
        headers: {
            date: [
                'Mon, 28 Mar 2022 15:07:11 GMT',
            ],
            'content-type': [
                'application/json',
            ],
            'transfer-encoding': [
                'chunked',
            ],
            connection: [
                'keep-alive',
            ],
            vary: [
                'Accept-Encoding, Accept, Authorization, Origin',
            ],
            allow: [
                'GET, HEAD, OPTIONS',
            ],
            'x-frame-options': [
                'DENY',
            ],
            'access-control-allow-origin': [
                '*',
            ],
            'x-content-type-options': [
                'nosniff',
            ],
            'referrer-policy': [
                'same-origin',
            ],
            'cross-origin-opener-policy': [
                'same-origin',
            ],
            'cache-control': [
                'max-age=14400',
            ],
            'cf-cache-status': [
                'HIT',
            ],
            age: [
                '102870',
            ],
            'last-modified': [
                'Sun, 27 Mar 2022 10:32:41 GMT',
            ],
            'expect-ct': [
                'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
            ],
            'strict-transport-security': [
                'max-age=15552000; includeSubDomains; preload',
            ],
            server: [
                'cloudflare',
            ],
            'cf-ray': [
                '6f3146243c22d433-BUD',
            ],
            'content-encoding': [
                'br',
            ],
            'alt-svc': [
                'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
            ],
        },
        body: {
            id: 'ea7e24ee-1374-4c49-9f6f-5c4529b701d8',
            title: 'Honey',
            foreign_landing_url: 'https://www.flickr.com/photos/39952091@N00/5644182602',
            creator: 'quisnovus',
            creator_url: 'https://www.flickr.com/photos/39952091@N00',
            url: 'https://live.staticflickr.com/5264/5644182602_be9003938a_b.jpg',
            filesize: null,
            filetype: null,
            license: 'by-nc',
            license_version: '2.0',
            license_url: 'https://creativecommons.org/licenses/by-nc/2.0/',
            provider: 'flickr',
            source: 'flickr',
            category: null,
            tags: [
                {
                    name: 'honey',
                },
            ],
            attribution: '"Honey" by quisnovus is licensed under CC-BY-NC 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/2.0/.',
            height: 548,
            width: 1024,
            thumbnail: 'http://localhost:49153/v1/images/ea7e24ee-1374-4c49-9f6f-5c4529b701d8/thumb/',
            detail_url: 'http://localhost:49153/v1/images/ea7e24ee-1374-4c49-9f6f-5c4529b701d8/',
            related_url: 'http://localhost:49153/v1/images/ea7e24ee-1374-4c49-9f6f-5c4529b701d8/related/',
        },
    },
}