社区制作了基于实时数据的 GraphQL API,适用于《逃离塔科夫》游戏中的一切内容!
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:
A community made GraphQL API for Escape from Tarkov
This API does almost everything you would ever want for EFT!
There is a GraphQL playground for you to use and test out
Link: api.tarkov.dev/
Example Query:
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)
Prerequisites:
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:
Start the API server:
npm run devIf you wish to deploy locally and have permissions to do so, run the following command:
wrangler publishWe don't do this often and generally use GitHub actions to do all of our deployments for us
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):
production or dev; determines which KVs are read)暂无开放 Issues,或尚未同步最近议题。