<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.muhro.eu/index.php?action=history&amp;feed=atom&amp;title=MarketDB_API</id>
	<title>MarketDB API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.muhro.eu/index.php?action=history&amp;feed=atom&amp;title=MarketDB_API"/>
	<link rel="alternate" type="text/html" href="https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;action=history"/>
	<updated>2026-04-14T15:04:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.4</generator>
	<entry>
		<id>https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59477&amp;oldid=prev</id>
		<title>Muh: /* Authentication, Rate Limits, and Compression */</title>
		<link rel="alternate" type="text/html" href="https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59477&amp;oldid=prev"/>
		<updated>2026-04-12T06:01:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Authentication, Rate Limits, and Compression&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:01, 12 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l120&quot;&gt;Line 120:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 120:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;MarketDbCache.ApiCacheSeconds = 300&amp;lt;/code&amp;gt; (5 minutes)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;MarketDbCache.ApiCacheSeconds = 300&amp;lt;/code&amp;gt; (5 minutes)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Authentication, &lt;/del&gt;Rate Limits&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, and Compression &lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Rate Limits ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Rate Limiting ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Rate Limiting ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Muh</name></author>
	</entry>
	<entry>
		<id>https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59476&amp;oldid=prev</id>
		<title>Muh: /* Authentication, Rate Limits, and Compression */</title>
		<link rel="alternate" type="text/html" href="https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59476&amp;oldid=prev"/>
		<updated>2026-04-12T06:01:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Authentication, Rate Limits, and Compression&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:01, 12 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Rate Limiting ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Rate Limiting ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Simple per-IP rate limiting is controlled by &amp;lt;code&gt;MarketDbCache.ApiRatePerMinute&amp;lt;/code&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Default setting:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;120&amp;lt;/code&amp;gt; requests per minute&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;120&amp;lt;/code&amp;gt; requests per minute&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Gzip Compression ===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If &amp;lt;code&gt;MarketDbCache.ApiEnableGzip&amp;lt;/code&gt; is enabled and the client sends &amp;lt;code&gt;Accept-Encoding: gzip&amp;lt;/code&gt;, the API returns a gzipped response body.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Status Codes ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Status Codes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Muh</name></author>
	</entry>
	<entry>
		<id>https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59475&amp;oldid=prev</id>
		<title>Muh: Created page with &quot;== MarketDB API ==  The MarketDB API serves pre-generated JSON snapshot files for vending, buying and trend data.  This endpoint is snapshot-based: * API requests do &#039;&#039;not&#039;&#039; execute live database queries. * Responses are served from JSON files which are usually refreshed every 5 minutes.  == Endpoint ==  Typical request format:  &lt;pre&gt; https://flux.muhro.eu/?module=marketdb&amp;action=api&amp;name=&amp;lt;dataset&amp;gt; &lt;/pre&gt;  == Query Parameters ==  {| class=&quot;wikitable&quot; ! Parameter !...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.muhro.eu/index.php?title=MarketDB_API&amp;diff=59475&amp;oldid=prev"/>
		<updated>2026-04-12T06:00:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== MarketDB API ==  The MarketDB API serves pre-generated JSON snapshot files for vending, buying and trend data.  This endpoint is snapshot-based: * API requests do &amp;#039;&amp;#039;not&amp;#039;&amp;#039; execute live database queries. * Responses are served from JSON files which are usually refreshed every 5 minutes.  == Endpoint ==  Typical request format:  &amp;lt;pre&amp;gt; https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=&amp;lt;dataset&amp;gt; &amp;lt;/pre&amp;gt;  == Query Parameters ==  {| class=&amp;quot;wikitable&amp;quot; ! Parameter !...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== MarketDB API ==&lt;br /&gt;
&lt;br /&gt;
The MarketDB API serves pre-generated JSON snapshot files for vending, buying and trend data.&lt;br /&gt;
&lt;br /&gt;
This endpoint is snapshot-based:&lt;br /&gt;
* API requests do &amp;#039;&amp;#039;not&amp;#039;&amp;#039; execute live database queries.&lt;br /&gt;
* Responses are served from JSON files which are usually refreshed every 5 minutes.&lt;br /&gt;
&lt;br /&gt;
== Endpoint ==&lt;br /&gt;
&lt;br /&gt;
Typical request format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=&amp;amp;lt;dataset&amp;amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Query Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Required&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;&lt;br /&gt;
| Yes&lt;br /&gt;
| Dataset to fetch.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;key&amp;lt;/code&amp;gt;&lt;br /&gt;
| No&lt;br /&gt;
| currently not used&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Available Datasets ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Dataset&lt;br /&gt;
! Description&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vendings&amp;lt;/code&amp;gt;&lt;br /&gt;
| Current vendor shop list.&lt;br /&gt;
| Shop-level snapshot.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;v_vending&amp;lt;/code&amp;gt;&lt;br /&gt;
| Items currently for sale.&lt;br /&gt;
| Full rows from the vending cache view.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;v_buying&amp;lt;/code&amp;gt;&lt;br /&gt;
| Items currently being bought.&lt;br /&gt;
| Full rows from the buying cache view.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;buyingstores&amp;lt;/code&amp;gt;&lt;br /&gt;
| Current buying shop list.&lt;br /&gt;
| Shop-level snapshot.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_trend_daily&amp;lt;/code&amp;gt;&lt;br /&gt;
| Full daily sales trend dataset.&lt;br /&gt;
| Includes all available day buckets and items.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_trend_hourly&amp;lt;/code&amp;gt;&lt;br /&gt;
| Full hourly sales trend dataset.&lt;br /&gt;
| Includes all available hour buckets and items.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_last_sales&amp;lt;/code&amp;gt;&lt;br /&gt;
| Latest sales log snapshot.&lt;br /&gt;
| Currently limited to 1000 rows.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_trend_daily_latest&amp;lt;/code&amp;gt;&lt;br /&gt;
| Rolling summary for the last 24 hours.&lt;br /&gt;
| Ordered by &amp;lt;code&amp;gt;sales_count&amp;lt;/code&amp;gt; descending.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_trend_hourly_latest&amp;lt;/code&amp;gt;&lt;br /&gt;
| Rolling summary for the last 60 minutes.&lt;br /&gt;
| Ordered by &amp;lt;code&amp;gt;sales_count&amp;lt;/code&amp;gt; descending.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vending_last_sales_latest&amp;lt;/code&amp;gt;&lt;br /&gt;
| Latest sales feed.&lt;br /&gt;
| Currently the same 1000-row payload as &amp;lt;code&amp;gt;vending_last_sales&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;meta&amp;lt;/code&amp;gt;&lt;br /&gt;
| Snapshot metadata.&lt;br /&gt;
| Includes &amp;lt;code&amp;gt;generated_at&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;server&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example Requests ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=vendings&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=v_vending&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=v_buying&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=buyingstores&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=vending_trend_daily_latest&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=vending_trend_hourly_latest&lt;br /&gt;
https://flux.muhro.eu/?module=marketdb&amp;amp;action=api&amp;amp;name=vending_last_sales_latest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Response Headers ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Header&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Content-Type&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;application/json; charset=utf-8&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Cache-Control&amp;lt;/code&amp;gt;&lt;br /&gt;
| Public cache header with &amp;lt;code&amp;gt;max-age&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;MarketDbCache.ApiCacheSeconds&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ETag&amp;lt;/code&amp;gt;&lt;br /&gt;
| Entity tag based on the snapshot file and modification time.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Last-Modified&amp;lt;/code&amp;gt;&lt;br /&gt;
| Snapshot file modification timestamp in GMT.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Content-Encoding&amp;lt;/code&amp;gt;&lt;br /&gt;
| Set to &amp;lt;code&amp;gt;gzip&amp;lt;/code&amp;gt; when gzip is enabled and supported by the client.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Default cache TTL:&lt;br /&gt;
* &amp;lt;code&amp;gt;MarketDbCache.ApiCacheSeconds = 300&amp;lt;/code&amp;gt; (5 minutes)&lt;br /&gt;
&lt;br /&gt;
== Authentication, Rate Limits, and Compression ==&lt;br /&gt;
&lt;br /&gt;
=== Rate Limiting ===&lt;br /&gt;
&lt;br /&gt;
Simple per-IP rate limiting is controlled by &amp;lt;code&amp;gt;MarketDbCache.ApiRatePerMinute&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Default setting:&lt;br /&gt;
* &amp;lt;code&amp;gt;120&amp;lt;/code&amp;gt; requests per minute&lt;br /&gt;
&lt;br /&gt;
=== Gzip Compression ===&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;MarketDbCache.ApiEnableGzip&amp;lt;/code&amp;gt; is enabled and the client sends &amp;lt;code&amp;gt;Accept-Encoding: gzip&amp;lt;/code&amp;gt;, the API returns a gzipped response body.&lt;br /&gt;
&lt;br /&gt;
== Status Codes ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;200&amp;lt;/code&amp;gt;&lt;br /&gt;
| Snapshot returned successfully.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;304&amp;lt;/code&amp;gt;&lt;br /&gt;
| The client cache is still valid for the current &amp;lt;code&amp;gt;ETag&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;403&amp;lt;/code&amp;gt;&lt;br /&gt;
| Invalid or missing API key when key protection is enabled.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;404&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unknown dataset name or snapshot file missing.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;429&amp;lt;/code&amp;gt;&lt;br /&gt;
| Rate limit exceeded.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;500&amp;lt;/code&amp;gt;&lt;br /&gt;
| MarketDb cache configuration is missing.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muh</name></author>
	</entry>
</feed>