Perl client library for the MetaForge.app game data API. All game data comes from MetaForge ARC Raiders.
Currently supports ARC Raiders with:
- Items, ARCs, Quests, Traders and Ermal's offers
- Hideout stations with their upgrade levels
- Weekly trials with their window times
- Event timers with live status
- Interactive map data (POIs, loot locations, etc.)
cpanm WWW::MetaForgeOr from source:
git clone https://github.com/Getty/p5-www-metaforge.git
cd p5-www-metaforge
cpanm --installdeps .The distribution includes metaforge-arcraiders for quick lookups:
# List items
metaforge-arcraiders items
metaforge-arcraiders items --search Ferro
# Show item details
metaforge-arcraiders item ferro-i
# List quests
metaforge-arcraiders quests
# Show traders and their inventory
metaforge-arcraiders traders
# Ermal's offers and permanent services
metaforge-arcraiders ermal
# Hideout stations, or one station level by level
metaforge-arcraiders hideout
metaforge-arcraiders hideout gunsmith
# Weekly trials of the running and the next window
metaforge-arcraiders trials
metaforge-arcraiders trials --catalog # trials that are not scheduled
# Event timers (sorted by time)
metaforge-arcraiders events
metaforge-arcraiders events --active # only currently active
metaforge-arcraiders event "Night Raid" --map stella-montis
# ARCs (missions/events)
metaforge-arcraiders arcs
# Map markers
metaforge-arcraiders map damGlobal options go before the command:
--json # Output as JSON
--no-cache # Skip cache, fetch fresh data
--debug # Show debug output
metaforge-arcraiders --json items --search Ferrouse WWW::MetaForge::ArcRaiders;
my $api = WWW::MetaForge::ArcRaiders->new;
# Items
my $items = $api->items;
my $ferro = $api->items(search => 'Ferro');
for my $item (@$items) {
say $item->name . " (" . $item->rarity . ")";
say " Weight: " . $item->weight if $item->weight;
}
# Quests
my $quests = $api->quests;
for my $quest (@$quests) {
say $quest->name;
say " " . $_ for @{$quest->objectives};
}
# Traders
my $traders = $api->traders;
for my $trader (@$traders) {
say $trader->name;
if ($trader->has_item('Ferro I')) {
my $info = $trader->find_item('Ferro I');
say " Sells Ferro I for $info->{trader_price}";
}
}
# Hideout: what the second Gunsmith level takes
my ($gunsmith) = grep { $_->id eq 'weapon-bench' } @{ $api->hideout };
say "$_->{quantity}x $_->{id}" for @{ $gunsmith->level(2)->required_items };
# Weekly trials of the running window
say $_->name for grep { $_->is_active } @{ $api->weekly_trials };
my $window = $api->weekly_trials_window; # epoch seconds
say "Next trials start at " . gmtime($window->next_window_start);
# Event timers
my $events = $api->event_timers;
for my $event (@$events) {
say $event->name . " on " . $event->map;
if ($event->is_active_now) {
say " ACTIVE! Ends in " . $event->time_until_end;
} else {
say " Starts in " . $event->time_until_start;
}
}
# Map data
my $markers = $api->map_data(map => 'dam');
for my $marker (@$markers) {
say $marker->category . "/" . $marker->subcategory;
say " Position: " . $marker->x . ", " . $marker->y;
}For large result sets, use paginated methods:
# Get first page with pagination info
my $result = $api->items_paginated(page => 1, limit => 50);
my $items = $result->{data};
my $pagination = $result->{pagination};
# $pagination = { page => 1, limit => 50, total => 500, totalPages => 10, hasNextPage => 1 }
# Or fetch all pages automatically
my $all_items = $api->items_all;The number of pages is limited (max_pages, 100 by default). When the limit
is reached, the call dies with an error instead of returning a partial answer.
Responses are cached by default to reduce API load:
# Disable caching
my $api = WWW::MetaForge::ArcRaiders->new(use_cache => 0);
# Custom cache directory
my $api = WWW::MetaForge::ArcRaiders->new(cache_dir => '/tmp/metaforge');
# Clear cache
$api->clear_cache('items'); # specific endpoint
$api->clear_cache; # allCache location defaults to:
- Linux/Mac:
~/.cache/metaforge/(or$XDG_CACHE_HOME/metaforge/) - Windows:
%LOCALAPPDATA%/metaforge/
Note: event_timers() always fetches fresh data (time-critical). Use event_timers_cached() if you want cached data.
A cached weekly trials response is used only until its trial window changes.
For custom processing, get raw HashRef/ArrayRef responses:
my $raw = $api->items_raw(search => 'Ferro');
# Returns the API response as-isFor use with async frameworks (Mojo, AnyEvent, etc.), get HTTP::Request objects:
my $request = $api->request->items(search => 'Ferro');
# $request is HTTP::Request, use with your async UAmy @maps = WWW::MetaForge::ArcRaiders->maps;
# ('dam', 'spaceport', 'buried-city', 'blue-gate', 'riven-tides', 'stella-montis',
# 'pendola-pass')
my $display = $api->map_display_name('buried-city');
# 'Buried City'my $api = WWW::MetaForge::ArcRaiders->new(debug => 1);
# Or set environment variable:
# WWW_METAFORGE_ARCRAIDERS_DEBUG=1All API methods return typed result objects:
| Method | Returns |
|---|---|
items |
WWW::MetaForge::ArcRaiders::Result::Item |
arcs |
WWW::MetaForge::ArcRaiders::Result::Arc |
quests |
WWW::MetaForge::ArcRaiders::Result::Quest |
traders |
WWW::MetaForge::ArcRaiders::Result::Trader |
ermal |
WWW::MetaForge::ArcRaiders::Result::Ermal |
hideout |
WWW::MetaForge::ArcRaiders::Result::HideoutStation |
weekly_trials |
WWW::MetaForge::ArcRaiders::Result::WeeklyTrial |
weekly_trials_window |
WWW::MetaForge::ArcRaiders::Result::WeeklyTrialWindow |
event_timers |
WWW::MetaForge::ArcRaiders::Result::EventTimer |
map_data |
WWW::MetaForge::ArcRaiders::Result::MapMarker |
Each result object provides typed accessors and the original data via ->_raw.
All data comes from MetaForge: https://metaforge.app/arc-raiders
The data is maintained by the MetaForge team and community contributors. MetaForge asks every public project that uses the API to credit them with a link to https://metaforge.app/arc-raiders, and paid or monetized projects to contact them first on their Discord: https://discord.gg/8UEK9TrQDs
- Repository: https://github.com/Getty/p5-www-metaforge
- Issues: https://github.com/Getty/p5-www-metaforge/issues
- Discord: https://discord.gg/Y2avVYpquV
- IRC: irc://irc.perl.org/ai
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.