NAME

WebService::AcousticBrainz - Access to the AcousticBrainz API

VERSION

version 0.0400

SYNOPSIS

use WebService::AcousticBrainz;

my $w = WebService::AcousticBrainz->new;

my $r = $w->fetch(
  mbid     => 'c51f788f-f2ac-4d4e-aa72-205f002b8752',
  endpoint => 'low-level',
  query    => { n => 2 },
);

DESCRIPTION

WebService::AcousticBrainz provides access to the https://acousticbrainz.org/data API.

ATTRIBUTES

base

The base URL. Default: https://acousticbrainz.org/api/v1

ua

The user agent.

METHODS

new()

$w = WebService::AcousticBrainz->new;

Create a new WebService::AcousticBrainz object.

fetch()

$r = $w->fetch(%arguments);

Fetch the results given a mbid (MusicBrainz recording ID), endpoint and optional query arguments.

SEE ALSO

Moo

Mojo::UserAgent

Mojo::JSON

Mojo::JSON::MaybeXS

https://acousticbrainz.org/data

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Gene Boggs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.