360 Secure SkillHub
360 安全技能中心

Epic Free Games

核心功能:调用Epic公开API,筛选出基础游戏类的当前及即将推出的免费游戏,按用户地区语言返回游戏名称、商店链接、本地时区的领取时段。典型场景:用户询问Epic免费游戏、本周免费游戏或Epic限时赠送游戏时使用。输入无需额外参数(默认中/美地区语言),输出按“当前免费”“即将免费”分组展示信息。

cheerwhy
cheerwhy
热度 70.17
最近更新 2026-05-11 17:34:12
分类:搜索依赖:第三方 API应用场景:购物 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add epic-games
Metadata
name
epic-games
description
Fetch current and upcoming free games from Epic Games Store. Use when the user asks about Epic free games, this week's free games, or Epic giveaways.

Epic Free Games

API

No auth required. GET request:

https://store-site-backend-static.ak.epicgames.com/freeGamesPromotions?locale={locale}&country={country}&allowCountries={country}

Parameters (match user's language/region, default to zh-CN / US):

  • locale: BCP 47 format (e.g. zh-CN, en-US, ja-JP, ko-KR)
  • country / allowCountries: ISO 3166-1 alpha-2 (e.g. US, CN, JP, KR)

Note: Some regions have restricted catalogs. Use US for the most complete game list.

Steps

  1. Fetch the API using curl (the response is large, web_fetch may truncate it)
  2. Parse data.Catalog.searchStore.elements from the JSON response
  3. Distinguish current vs upcoming by promotions field:
    • promotions.promotionalOffers has value → currently free
    • promotions.upcomingPromotionalOffers has value → upcoming free
  4. Each promotion contains startDate and endDate (UTC ISO 8601)
  5. Ignore entries where offerType is not BASE_GAME (DLCs, add-ons, etc.)

Output Format

Group by "currently free" and "upcoming free", show game title, store link, and claim period (converted to local timezone). Date format: match the user's locale.

Store link: https://store.epicgames.com/{locale}/p/{pageSlug} where pageSlug is from offerMappings[0].pageSlug.