### Retrieving Item Data by Name with GraphQL Source: https://github.com/the-hideout/tarkov-api/blob/main/docs/graphql-examples.md This GraphQL query fetches detailed information for a specific item in Escape from Tarkov, identified by its name. It returns properties such as item types, average 24-hour price, base price, dimensions, price change percentage, and links to its icon and page, along with a list of vendors and prices it sells for. ```GraphQL { itemsByName(name: "colt m4a1") { name types avg24hPrice basePrice width height changeLast48hPercent iconLink link sellFor { price source } } } ``` -------------------------------- ### Querying Game Status with GraphQL Source: https://github.com/the-hideout/tarkov-api/blob/main/docs/graphql-examples.md This GraphQL query retrieves real-time server and game status information for Escape from Tarkov. It fetches current status names, messages, and their states, along with a list of historical messages including their time, type, content, and resolution time. ```GraphQL { status { currentStatuses { name message status } messages { time type content solveTime } } } ``` -------------------------------- ### Querying Task and Quest Information with GraphQL Source: https://github.com/the-hideout/tarkov-api/blob/main/docs/graphql-examples.md This GraphQL query retrieves comprehensive details about tasks or quests, including their ID, name, and objectives. It demonstrates the use of inline fragments (`... on TaskObjectiveItem` and `... on TaskObjectiveShoot`) to conditionally fetch specific fields based on the objective type, such as item details for item-related objectives or target names for shooting objectives. ```GraphQL query { tasks { id name objectives { id type description maps { normalizedName } ... on TaskObjectiveItem { item { name shortName } items { name shortName } count foundInRaid } ... on TaskObjectiveShoot{ targetNames count } } } } ``` -------------------------------- ### Deploying API to Cloudflare Workers with Wrangler CLI Source: https://github.com/the-hideout/tarkov-api/blob/main/README.md This bash command is used to deploy the Tarkov API to Cloudflare Workers using the Wrangler CLI. It's primarily for local deployment by authorized users, as official deployments are typically handled via GitHub Actions. ```bash wrangler publish ``` -------------------------------- ### Querying Basic Item Data with GraphQL Source: https://github.com/the-hideout/tarkov-api/blob/main/README.md This GraphQL query demonstrates how to fetch fundamental information for all items available through the API. It retrieves the item's unique identifier, full name, short name, a link to its wiki page, an icon link, and the timestamp of its last update. ```graphql query { items { id name shortName wikiLink iconLink updated } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.