百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tarkov-api

> 后端框架
开源

社区制作了基于实时数据的 GraphQL API,适用于《逃离塔科夫》游戏中的一切内容!

197 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

社区制作了基于实时数据的 GraphQL API,适用于《逃离塔科夫》游戏中的一切内容!

Tarkov API (Escape from Tarkov)

This is the main API for tarkov.dev, and was forked from kokarn's Tarkov Tools API.

It's a simple GraphQL API running on Cloudflare workers.

This API powers all of tarkov.dev and other notable projects as well:

  • stash
  • ratscanner
  • errbot
  • thehideout

What is this?

A community made GraphQL API for Escape from Tarkov

  • Free
  • Easy to use
  • Open source
  • ‍‍ Community driven
  • ⚡ Ultra fast
  • ⏰ Data is constantly updated in real-time

What can I do with this API? ⭐

  • View the prices of items
  • Get detailed ammo, armor, and weapon information
  • Fetch flea market data
  • View item weight, slots, etc
  • Calculate barter and hideout profit
  • Determine ergo, armor class, durability, etc for an item
  • Fetch detailed quest information and unlocks
  • View info about crafts and their requirements
  • Find information about in-game bosses
  • Detailed info on medicines, stims, and in-game healing
  • So much more (it would take up this entire page to list everything )

This API does almost everything you would ever want for EFT!

API Playground

There is a GraphQL playground for you to use and test out

Link: api.tarkov.dev/

Example Query:

graphql
query {
  items {
      id
      name
      shortName
      wikiLink
      iconLink
      updated
  }
}

More examples can be found in our graphql example docs

Even more examples can be found on our api page on tarkov.dev (includes many programming languages too)

Development

Prerequisites:

  • Install Wrangler
  • Run wrangler login - (needed for k/v store and secrets)

You may want to create a .dev.vars file in the main project folder with the following values:

  • CACHE_BASIC_AUTH (used for caching)

Start the API server:

  • Start the dev environment by running npm run dev
  • Then open up the playground on localhost:8787/___graphql

Deployment

If you wish to deploy locally and have permissions to do so, run the following command:

bash
wrangler publish

We don't do this often and generally use GitHub actions to do all of our deployments for us

HTTP Server

There's also an http webserver in the /http folder. It can be run with npm run dev or npm start. To run locally, you need to set the following vars (for local testing, you can use an .env file in the /http folder):

  • CLOUDFLARE_TOKEN (token must have permissions to read the KVs the API uses)
  • CACHE_BASIC_AUTH (used for caching)
  • ENVIRONMENT (either production or dev; determines which KVs are read)
  • PORT (defaults to 8088)
  • WORKERS (defaults to # of cpus - 1; determines how many worker threads are created to respond to requests)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptapiescape-from-tarkovgraphql

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架