egdata API

Find games

Search the catalog, combine filters, and order results.

Use POST /search/v2/search to find store offers by title and filter them by offer type, tags, seller, developer, publisher, category, detected technology, or regional price. Send the visitor's two-letter country code as country so price filters and returned prices use the right region.

For cacheable browser searches, use the query-parameter alias GET /search/v2/search. It accepts the same filters as flat query parameters (title, offerType, tags, categories, customAttributes, seller, developerDisplayName, publisherDisplayName, sortBy, sortDir, limit, page, facets, technologies, priceMin, priceMax, and the boolean filters) and can be cached at the edge.

const response = await fetch(
  "https://api.egdata.app/search/v2/search?country=US&locale=en-US",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      title: "co-op adventure",
      offerType: "BASE_GAME",
      onSale: true,
      sortBy: "discountPercent",
      sortDir: "desc",
      page: 1,
      limit: 20,
      facets: "full",
    }),
  },
);
const result = await response.json();

The response contains a total count, matching offers, the requested page and limit, facet aggregations, and metadata. offers contains full offer documents, including tags, items, custom attributes, and the complete key image set.

Facets are controlled with facets:

  • full (default) returns offer type, technology, tag, developer, publisher, and seller buckets.
  • minimal returns offer type and technology buckets only.
  • none omits aggregations entirely.
{
  "total": 1,
  "offers": [{ "id": "offer-id", "title": "Example Game", "price": null }],
  "page": 1,
  "limit": 20
}

title searches titles and related text with fuzzy and synonym matching. Filters can be combined. tags requires all supplied tag IDs; technologies requires every named detected technology.

page starts at 1. limit defaults to 10 and is capped at 100. Without sortBy, text searches rank by relevance and other searches sort by most recently modified. Common sortBy values include releaseDate, lastModifiedDate, price, discount, discountPercent, priceUpdatedAt, upcoming, and giveawayDate; sortDir is asc or desc and defaults to desc. Set sortBy: "price" and sortDir: "asc" for the lowest price first. Price sorting uses the selected country's region. Some release date sorts also restrict results to future or released offers.

The legacy GET/POST /search routes now return 410 Gone with code DEPRECATED; use search v2 instead. Existing saved-query hashes can still be read through GET /search/{id}.

For meaning-based queries, see natural-language search.