Skip to content

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

10.0 KB
Raw Blame
{
    meta: {
        createdAt: '2022-03-28T15:06:28.513Z',
        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/audio/?q=galah&peaks=true',
        method: 'GET',
        body: '',
    },
    res: {
        status: 200,
        headers: {
            date: [
                'Mon, 28 Mar 2022 15:06:47 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: [
                '102924',
            ],
            'last-modified': [
                'Sun, 27 Mar 2022 10:31:23 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': [
                '6f3145909c2468b6-BUD',
            ],
            'content-encoding': [
                'br',
            ],
            'alt-svc': [
                'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
            ],
        },
        body: {
            result_count: 1,
            page_count: 0,
            page_size: 20,
            page: 1,
            results: [
                {
                    id: '632d0076-fdbd-4919-8b8f-b498ef246ee8',
                    title: 'RainBirdsThunder.wav',
                    foreign_landing_url: 'https://freesound.org/people/NobodyYouKnowOf/sounds/456258',
                    creator: 'NobodyYouKnowOf',
                    creator_url: 'https://freesound.org/people/NobodyYouKnowOf',
                    url: 'https://freesound.org/data/previews/456/456258_3895722-hq.mp3',
                    license: 'cc0',
                    license_version: '1.0',
                    license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
                    provider: 'freesound',
                    source: 'freesound',
                    category: 'sound',
                    tags: [
                        {
                            name: 'thunder',
                        },
                        {
                            name: 'birds',
                        },
                        {
                            name: 'rain',
                        },
                    ],
                    fields_matched: [
                        'description',
                    ],
                    duration: 204218,
                    bit_rate: 128000,
                    thumbnail: 'http://localhost:49153/v1/audio/632d0076-fdbd-4919-8b8f-b498ef246ee8/thumb/',
                    waveform: 'http://localhost:49153/v1/audio/632d0076-fdbd-4919-8b8f-b498ef246ee8/waveform/',
                    detail_url: 'http://localhost:49153/v1/audio/632d0076-fdbd-4919-8b8f-b498ef246ee8/',
                    related_url: 'http://localhost:49153/v1/audio/632d0076-fdbd-4919-8b8f-b498ef246ee8/related/',
                    peaks: [
                        0.34742,
                        0.27178,
                        0.17808,
                        0.17306,
                        0.18982,
                        0.17095,
                        0.16612,
                        0.17354,
                        0.15642,
                        0.16125,
                        0.1654,
                        0.17214,
                        0.15433,
                        0.16402,
                        0.15616,
                        0.15761,
                        0.15049,
                        0.2474,
                        0.255,
                        0.17558,
                        0.16732,
                        0.16979,
                        0.23521,
                        0.16891,
                        0.16645,
                        0.14026,
                        0.13582,
                        0.14201,
                        0.16015,
                        0.15626,
                        0.15196,
                        0.15743,
                        0.14543,
                        0.14751,
                        0.1407,
                        0.13542,
                        0.1178,
                        0.13999,
                        0.1088,
                        0.10955,
                        0.12437,
                        0.11027,
                        0.12266,
                        0.10602,
                        0.12082,
                        0.12356,
                        0.1378,
                        0.17743,
                        0.12311,
                        0.14041,
                        0.12109,
                        0.42197,
                        0.14782,
                        0.16947,
                        0.12462,
                        0.12275,
                        0.11437,
                        0.14502,
                        0.11937,
                        0.10656,
                        0.10329,
                        0.11494,
                        0.09457,
                        0.08825,
                        0.09278,
                        0.08476,
                        0.08529,
                        0.08088,
                        0.08836,
                        0.08594,
                        0.08868,
                        0.08804,
                        0.09643,
                        0.08795,
                        0.09312,
                        0.09466,
                        0.10056,
                        0.09564,
                        0.09787,
                        0.10441,
                        0.08564,
                        0.09716,
                        0.0897,
                        0.09091,
                        0.08352,
                        0.09423,
                        0.08315,
                        0.08349,
                        0.09389,
                        0.09547,
                        0.10878,
                        0.0888,
                        0.09445,
                        0.08146,
                        0.10465,
                        0.09482,
                        0.09781,
                        0.0973,
                        0.22495,
                        0.22241,
                        0.17811,
                        0.12765,
                        0.11112,
                        0.10493,
                        0.0888,
                        0.09495,
                        0.08774,
                        0.11822,
                        0.25697,
                        0.0947,
                        0.0964,
                        0.10025,
                        0.09818,
                        0.0925,
                        0.09378,
                        0.09553,
                        0.09567,
                        0.09337,
                        0.0911,
                        0.10324,
                        0.09891,
                        0.09095,
                        0.09789,
                        0.09269,
                        0.08729,
                        0.09267,
                        0.09628,
                        0.09508,
                        0.09525,
                        0.09848,
                        0.10014,
                        0.09946,
                        0.09996,
                        0.09622,
                        0.09112,
                        0.08742,
                        0.09072,
                        0.11115,
                        0.09944,
                        0.1014,
                        0.09726,
                        0.0946,
                        0.09082,
                        0.09651,
                        0.09963,
                        0.09517,
                        0.08795,
                        0.08346,
                        0.18058,
                        0.14573,
                        0.09743,
                        0.09426,
                        0.10847,
                        0.18764,
                        0.10121,
                        0.09172,
                        0.08919,
                        0.08271,
                        0.09083,
                        0.09805,
                        0.09288,
                        0.09367,
                        0.08266,
                        0.09254,
                        0.09708,
                        0.09507,
                        0.07788,
                        0.07484,
                        0.07758,
                        0.0807,
                        0.04888,
                    ],
                },
            ],
        },
    },
}