Agenda stats (ad table)
Totals of the metrics for a chosen period for the individual ads of one section (moto, dily or prislusenstvi): ad detail views, impressions in result lists, click-throughs to the dealer's website, replies to the ad, saves to favourites, video plays and promotion boxes. One record = one ad, with sorting, filtering and pagination. You thus get thousands of ads with one request instead of the statistics of each ad separately.
Based on the same counters and rules as the statistics in the dealer administration, the statistics of a single ad and the dealer statistics. The agenda is read-only and requires the statsperm permission. How the numbers are produced and how to read them is described in detail in the Statistics methodology.
- Only ads with traffic in the range – an ad that has not a single visit in any metric of the section in the range is not in the table, see Table rows.
- Deleted ads are in the table (
archiv=1); thestatspermpermission is enough for them. - The table has no time series – the course of a single ad by day, week or month is returned by the ad statistics.
Agenda features
| Name | Options |
|---|---|
| Supported methods | GET |
| Support for detail levels | ✔ (own selection of metrics, see detail levels) |
| Support for filtering | ✔ (see Sorting and filter) |
| Support for full-text search | ✘ |
| Support for pagination | ✔ (with an exception, see Pagination) |
| Support for sorting | ✔ (see Sorting and filter) |
| Support for external identifiers | ✘ |
Support for schemas |
https://api.tipmoto.com/schemas/stats/{moto|dily|prislusenstvi}.{xsd|rng} |
Support for ?fail-on-warning |
✘ |
| Support for dry-run | ✘ |
Returns location |
✘ |
Address
https://api.tipmoto.com/c/{dealer ID}/stats/{moto|dily|prislusenstvi}.{xml|json|html}
- The section is in the address; the API has no table across all sections at once (ad IDs repeat between sections). Another section in the address returns
404. - The records are named after the section:
statsmoto,statsdily,statsprislusenstvi. - Whether the login has the
statspermpermission for the dealer is given by thestatsPermissionselement in the dealers list. - Totals for the whole section are returned by the dealer statistics, the course of a single ad by the ad statistics.
Permissions
- The table requires the
statspermpermission of the login for the dealer. The dealer turns it on for the login in the administration (menu 'Web / export' → 'API propojení', checkbox 'Statistiky' next to the login); by default it is off. Without it the agenda returns402. - Deleted ads are in the table even without the permission at the 'archive' level. That permission protects the full data of a deleted ad (agenda
archive), not the statistics: theid@reflink of a deleted ad leads to the archive, and opening it requires the permission at the 'archive' level. - Ads that the dealer has hidden from the login's export server (the “do not export” setting) are left out of the table, just like in the list of the
moto,dilyandprislusenstviagendas, so that the table can be joined with that list. This applies only to ads on the server – deleted ads in the archive are not hidden.
Parameters
| Parameter | Values | Default | Description |
|---|---|---|---|
from, to |
YYYY-MM-DD |
see Range | First and last day of the range (inclusive). If from is later than to, they are swapped. Only from: to = today. Only to: from = to − 27 days. |
location |
1, 2, 3, 4 (several separated by commas, e.g. 1,2) |
all placements | Filter by placement. The totals and the selection of rows (traffic in the range) are calculated only from the chosen placements. Any filter excludes the reconstructed history (placement 0), so the metrics then start on the day when measurement by placement began. A metric that does not arise in the selected placements is missing from the document. A repeated value is merged, an empty location= means no filter, 0 is an invalid value. |
detail |
id, summary, full, custom:… |
summary |
Which columns and metrics the records contain, see detail levels. Neither the selection of rows nor the pages depend on the detail level. |
order |
column and direction (ASC, DESC), several separated by commas |
zobrazeni DESC |
Sorting, see Sorting and filter. |
filter |
expression, e.g. zobrazeni > 10 and archiv = '0' |
– | Filtering, see Sorting and filter. |
limit, start |
non-negative integer | 500, 0 |
Pagination, see Pagination. limit=0 and a limit above 5000 both mean 5000. |
period |
day, week, month |
The table has no time series, so the value is only validated (an invalid one returns 400) and has no effect on the output. The table chooses the data source itself, see Range. |
|
add-row-count, no-series |
Change nothing: rowCount is always in the output and the table has no time series. no-series is ignored even with an invalid value. |
||
| standard | lang, xpath, code-in-response, no-http-errors, sessionid |
Work as everywhere in the API, see URL parameters. xpath returns XML even for .json. |
|
| not supported | section, breakdown, fulltext, ftx-loc, usrval-show |
The table does not support them (the section is in the address; breakdown by placement and full-text search are not available for it) and returns 406 as soon as the parameter has a non-empty value, even 0. A parameter with an empty value (section=) is treated as not given. |
An invalid value of the period, from, to, location, detail or limit parameter returns 400 with a message that lists the allowed values. Values are case-sensitive.
Detail levels
| Value | Content of the record |
|---|---|
id |
Only id, idApi and archiv – without numbers. The metriky block is as for summary. |
summary (default) |
id, idApi, nazev, archiv, vlozeniCas, smazaniCas and five basic metrics: zobrazeni, vypis, urlKliknuti, odpovedi, schranka. |
full |
In addition videoPrehrani, videoDokoukano and the akcniOkno and vybirame blocks. |
custom:… |
The columns id, idApi, nazev, archiv, vlozeniCas, smazaniCas as for summary (they are not listed) and only the listed metrics and blocks, separated by commas: zobrazeni, vypis, urlKliknuti, odpovedi, schranka, videoPrehrani, videoDokoukano, akcniOkno, vybirame. E.g. detail=custom:zobrazeni,odpovedi. Unknown items are ignored, as everywhere in the API (including videoUdrzeni, which is only in the ad statistics); if the list contains only unknown items, the records have only these columns and the document has no metriky block. |
The metrics proklikFirma and proklikLogo from the dealer statistics are not in the table – they are metrics of the dealer, not of the ad.
Placements
Where the visitor saw the ad (1 main website www.tipmoto.com, 2 dealer subdomain, 3 widget on the dealer's website, 4 MotoInzerce.cz). Details are in the placement table of the ad statistics; the list is in the agenda lists/lokacestats.
Range
- Default range: the last 28 days (today − 27 days to today).
- The API only narrows the range, it never widens it: a
toin the future is cut to today and afrombefore the start of the available data is moved to that start. Procedure: fill in a missingfrom/to, swap, narrow. - Data source: within the daily window (from the first day of the month 13 months ago; in September 2026 this is 1 August 2025) daily data are summed, before it whole months from the monthly totals. A boundary of the range in the middle of such a month is therefore narrowed inwards to whole months (it is not snapped outwards, which would return numbers for days that were not requested). The
periodparameter has no effect on this. By month,zobrazeniandodpovedihave data from May 2022; metrics measured only since 2026 have data from the start of measurement. - The range actually used is in
rozsah/odandrozsah/do. If it differs from the requested one,rozsahalso contains the requested values inpozadovanoOdandpozadovanoDo. E.g.from=2025-03-15&to=2026-09-26:<rozsah> <od>2025-04-01</od> <do>2026-09-26</do> <pozadovanoOd>2025-03-15</pozadovanoOd> </rozsah>
locationis inrozsahonly when the parameter was used (normalised: ascending, without repetition).periodis not in therozsahof the table.- An empty range (e.g. entirely before the start of the data) is not an error: it returns
200,rowCount0androzsahwithoutod/do, withoutmetrikyand without records. E.g.from=2020-01-01&to=2020-02-01:<rowCount>0</rowCount> <rozsah> <pozadovanoOd>2020-01-01</pozadovanoOd> <pozadovanoDo>2020-02-01</pozadovanoDo> </rozsah>
- All dates and day boundaries are in the Europe/Prague time zone.
Table rows
- The table contains only ads with traffic in the range (and in the chosen placements) in any metric of the section, regardless of
detail– the pages are the same for all detail levels. If you also want ads without traffic, join the table with the list/c/{dealer ID}/{moto|dily|prislusenstvi}byid. - Deleted ads are in the table:
archiv=1,id@refleads to the archive andsmazaniCasis filled in. - A re-published ad (deleted and later inserted again under its original ID) is one row like an ad on the server:
archiv=0,vlozeniCasis the first insertion and the totals include all its lifetime segments in the range. - An ad that is no longer on the server nor in the archive has only
id(withoutref),archiv=1and the metrics in its record. Its metrics follow only the coverage of the metrics; it never has the reasonzivot. - The totals of the rows for the same range give the totals of the section in the dealer statistics with
period=dayorweek(withperiod=monththe dealer statistics take closed months from the monthly totals and may differ), with one exception: the table leaves out ads hidden from the login's export server (the dealer statistics include them in the totals). A row contains all data of the ad in the range, including traffic recorded outside the ad lifetime according to the records on the server and in the archive (e.g. after the ad was deleted). A metric that has data only outside the lifetime hasdni="0"andneuplne="zivot". The statistics of a single ad add up (withperiod=dayandweek) only the days of the lifetime, so for such ads they show less than the table row.
Zero and not measured
0means “measured and nobody came”. A missing metric in a row means “not measured” – the ad did not exist at the time when the metric was measured, the metric was not measured in the range or does not arise in the placement, or (for video) the ad had no video. So do not read zero as “data missing”, nor a missing element as zero.- The main number (text of the metric element) = people and unidentified visitors, without bots – i.e. the same as the chart in the administration. Bots are in the attributes.
- A metric that was not measured at all in the range is missing from all rows and from the
metrikyblock. - The
akcniOknoandvybirameblocks are output for every placement where they arise according to the catalogue, where measurement took place in the range and where the ad was alive, even if there are no data in it – a dealer that did not buy the promotion box (akční okno) in a given placement sees zeros there.
Incomplete values (neuplne, dni)
The value of a metric in a row is the total for the range. If the metric covers only part of the range, it has the neuplne attribute with the reason and the dni attribute; a metric that covers the whole range has neither. Several reasons are separated by commas in this order:
| Reason | Meaning |
|---|---|
mereni |
The metric started to be measured in the range, has a gap in the data in it, or the range contains an incomplete first day of measurement (4 September 2026 for urlKliknuti, 7 September 2026 for schranka, 24 September 2026 for video); for video also when the ad got the video only during the range. It is enough if this applies in one of the summed placements. |
zivot |
The ad was not alive for the whole range: it was inserted or deleted within the range, or there is a gap between the lifetime segments of a re-published ad, or the metric has data only outside the lifetime (then dni="0"). The day of insertion and deletion counts as a whole day. |
bezi |
The range contains today, which has not ended yet. With the default range every metric therefore has it. |
dni= number of complete days of the range on which the metric was measured and the ad existed – without days in a gap in the data, without incomplete first days of measurement and without today.- The value contains everything measured including incomplete days;
dnionly counts them. Value /dniis therefore an upper estimate of the daily average. The table does not return an average (prumerDen). - The reason
rozsahfrom the ad statistics does not occur in the table – a row covers exactly the range used.
Bots
- The
roboti(bots) andaiRoboti(AI bots) attributes are next to the main number (people and unidentified visitors); the groups do not overlap, all visitors = value +roboti+aiRoboti. - Whether a metric has the attributes is decided by the start of the range of the document, the same for all rows: the attributes are present if the range (or, if the metric starts later, the first day with data of the metric according to
metriky) does not start before therobotiOdof the metric. E.g. a range from 1 September 2026:urlKliknuti(measured since 4 September =robotiOd) has the attributes,odpovedi(reconstructed from backups already before 1 September,robotiOd8 September) does not. - The range decides, not the insertion of the ad: an ad inserted after
robotiOdhas bot attributes in the ad statistics, but not in the table with a range starting beforerobotiOd.
Coverage of the metrics (metriky)
The metriky block appears once in the document, before the records, and has the same form as in the ad statistics: for every selected metric klic, nazev, od, uplneOd, dopoctenoDo, merenoOd, robotiOd, dira, pokryti and poznamka. It describes what was measured in the range and in the chosen placements, not the lifetime of the individual ads.
od– first day with data of the metric for the chosen placements (forzobrazeniandodpovediincluding the monthly totals before the daily window).dopoctenoDo,merenoOd,robotiOddescribe the methodology of the data and are output even when they lie beforeod.diraandpokryti(forakcniOknoandvybirame) as in the ad statistics.- A metric that was not measured in the range or does not arise in the selected placements or in the section (e.g. video for parts or for a dealer that has never had a video) is not in the block.
nazevandpoznamkaare texts for people (in English withlang=en); do not process them by machine.
Metric catalogue
| Key | Name | Sections and placements where it arises | Detail |
|---|---|---|---|
zobrazeni |
Ad detail views | moto: 1, 2, 3dily: 1, 2prislusenstvi: 1, 2 |
summary |
vypis |
Impressions in result lists | moto: 1, 2, 3dily: 1, 2prislusenstvi: 1, 2 |
summary |
urlKliknuti |
Click-through to the dealer's website | moto: 1, 2dily: 1, 2prislusenstvi: 1 |
summary |
odpovedi |
Replies to the ad | moto: 1, 2dily: 1, 2prislusenstvi: 1 |
summary |
schranka |
Saved to favourites | moto: 1, 2dily: 1, 2prislusenstvi: 1 |
summary |
videoPrehrani |
Video plays | moto: 1, 2 |
full |
videoDokoukano |
Watched to the end (video) | moto: 1, 2; only for a video uploaded to TipMoto |
full |
akcniOkno |
Promotion box (akční okno) – block with lokace and the metrics zobrazeni (promotion box impressions) and proklik (click-through from the promotion box) |
moto: 1, 2, 4dily: 2prislusenstvi: none |
full |
vybirame |
“Our pick” list on MotoInzerce.cz (Vybíráme z nabídky) – block with lokace and the metrics zobrazeni (list impressions) and proklik (click-through to the ad) |
moto: 4 |
full |
Since when the metrics have data, the gaps in the data and the incomplete first days of measurement are given in the metric catalogue of the ad statistics. A combination of section and placement outside this table does not exist and is missing from the document.
Video
videoPrehrani= video plays (all sources including YouTube),videoDokoukano= video watched to the end (at least 90 % of the time actually played). Only themotosection, only placements 1 and 2, in detail levelsfullandcustom:.- In a row the video metrics exist only for the days on which the ad had a video (for a YouTube video from the insertion of the ad, for a video uploaded to TipMoto from the day of the upload, in any case at the latest from the first measured play). An ad that had no video in the range has no video metrics;
videoDokoukanois also missing for an ad with a YouTube video only (YouTube does not measure watching to the end). - The
videoUdrzeniblock is only in the ad statistics.
Sorting and filter
orderandfilterwork on the columnsid,idApi,nazev,archiv,vlozeniCas,smazaniCasand on the metrics that the record outputs (not on the metrics inside theakcniOknoandvybirameblocks). Sorting and filtering use the totals for the range.- The default sorting is
zobrazeni DESC, even withdetail=id, wherezobrazeniis not output. Whenzobrazeniis not measured in the range and the selected placements (e.g.location=4), the rows are sorted only byidin ascending order. An unknown key inorderis ignored, as everywhere in the API. - When sorting by a metric, a row without its value (not measured) is always at the end, in both directions. Equal values are always resolved by
id, so pagination is stable. filterhas the standard syntax; values are written in single quotes:filter=zobrazeni > 10 and archiv = '0'. A row without the metric (not measured) does not pass a filter on that metric (filter=schranka = '0'does not find it) and is not counted inrowCount.orderorfilteron a column that the chosendetaillevel does not output (e.g.detail=id&order=nazevororder=videoPrehraniwithoutdetail=full) returns406– sorting and filtering are possible only by output columns.406is also returned for a metric that was not measured in the chosen range (the message says since when it is measured) for a metric that does not arise in the section or in the chosen placements (e.g.location=4&order=zobrazeni), and for video at a dealer who has never had a video (for watching to the end, a video uploaded directly to TipMoto). With an empty range (e.g. a range entirely before the start of the data) the metric is not checked and the result is200without records.
Pagination
limithas the default value500and a maximum of5000;limit=0and alimitabove5000both mean5000(not “without limit” as in other agendas). You get further rows viastart.rowCount(the number of ads with traffic in the range after the filter) is always in the output, regardless ofadd-row-count. It tells you whether you need to paginate.
Agenda elements
| Machine name | Name | Type | Information |
|---|---|---|---|
rowCount |
Number of records | integer |
Number of ads with traffic in the range after the filter, regardless of limit and start; always. |
rozsah/od, rozsah/do |
Range used | date |
Missing for an empty range. |
rozsah/pozadovanoOd, rozsah/pozadovanoDo |
Requested range | date |
The requested boundary (after filling in default values and swapping), only if it differs from the one used; always for an empty range. |
rozsah/location |
Placement filter | string |
Only if the parameter was used, e.g. 1,2. |
metriky/metrika |
Coverage of a metric | element |
Children klic, nazev, od, uplneOd, dopoctenoDo, merenoOd, robotiOd, dira, pokryti, poznamka, see Coverage of the metrics. |
statsmoto, statsdily, statsprislusenstvi |
Record = one ad | element |
According to the section in the address. |
id |
Ad ID | integer |
|
id@ref |
Link to the ad record | href |
For a deleted ad to the archive agenda (opening it requires the permission at the 'archive' level). Missing for an ad that is no longer on the server nor in the archive. |
idApi |
External ad ID | string 64 |
Empty if the ad has no external ID. |
nazev |
Ad title | string |
As in the administration (for motorcycles category and title, for parts and accessories manufacturer and title). Not with detail=id. |
archiv |
Deleted ad | select |
Possible values:
|
vlozeniCas |
Insertion of the ad | datetime |
For a re-published ad the first insertion. Not with detail=id. |
smazaniCas |
Deletion of the ad | datetime |
Empty for an ad on the server. Not with detail=id. |
{metrika} |
Total of the metric for the range | integer |
People and unidentified visitors, see the catalogue. Missing = not measured. |
{metrika}@neuplne, {metrika}@dni |
Incomplete value, number of complete days | set, integer |
mereni, zivot, bezi (separated by commas); only for a metric that covers only part of the range. |
{metrika}@roboti, {metrika}@aiRoboti |
Bots, AI bots | integer |
See Bots. |
akcniOkno, vybirame |
Blocks by placement | element |
The placement is in the child lokace, followed by the metrics zobrazeni and proklik. The blocks are sorted by lokace in ascending order. |
The order is fixed: in tipmoto rowCount, rozsah, metriky and the records; in a record id, idApi, nazev, archiv, vlozeniCas, smazaniCas, the metrics in catalogue order, the akcniOkno and vybirame blocks.
Example
GET /c/95/stats/moto.xml?from=2026-09-01&to=2026-09-26&limit=2&start=1 (shortened, output with lang=en):
<!--Agenda documentation at: https://api.tipmoto.com/docs/agendas/stats/inzeraty/
Schemas (more about them at https://api.tipmoto.com/docs/ref/schemata/ ):
https://api.tipmoto.com/schemas/stats/moto.xsd
https://api.tipmoto.com/schemas/stats/moto.rng-->
<tipmoto>
<!--Number of ads with traffic in the range (after the filter). The table always returns it; paging uses the parameters limit (default 500, at most 5000) and start.-->
<rowCount>4</rowCount>
<!--The range actually used. pozadovanoOd/pozadovanoDo are present only when the API narrowed the range (future, start of the data, whole months outside the daily data); location only when the parameter was used.-->
<rozsah>
<od>2026-09-01</od>
<do>2026-09-26</do>
</rozsah>
<!--Coverage of the metrics in this document: od = first day with data (for the chosen placements), dopoctenoDo = until when the values are reconstructed from backups, merenoOd = since when it is the new measurement, robotiOd = since when bots are separated (attributes roboti and aiRoboti).-->
<metriky>
<metrika>
<klic>zobrazeni</klic>
<nazev>Ad detail views</nazev>
<od>2022-05-01</od>
<dopoctenoDo>2026-08-28</dopoctenoDo>
<merenoOd>2026-08-29</merenoOd>
<robotiOd>2026-08-29</robotiOd>
</metrika>
<!-- … vypis, urlKliknuti, odpovedi -->
<metrika>
<klic>schranka</klic>
<nazev>Saved to favourites</nazev>
<od>2026-09-07</od>
<merenoOd>2026-09-07</merenoOd>
<robotiOd>2026-09-07</robotiOd>
</metrika>
</metriky>
<!--One ad with traffic in the range: totals for the range. Value 0 = measured and nobody came, a missing metric = not measured (the ad did not exist then, the metric was not measured or the ad had no video). dni and neuplne only for a metric that covers only part of the range (dni = whole days without incomplete days and without today).-->
<statsmoto>
<id ref="/c/95/moto/618162.xml">618162</id>
<idApi/>
<nazev>Moto Morini X-Cape 650</nazev>
<!--1 = deleted ad (ref leads to the archive; opening it requires the archiveperm permission), 0 = the ad is on the server-->
<archiv>0</archiv>
<vlozeniCas>2026-09-22 15:13:04</vlozeniCas>
<smazaniCas/>
<zobrazeni dni="5" neuplne="zivot" roboti="11" aiRoboti="1">45</zobrazeni>
<vypis dni="5" neuplne="zivot" roboti="97" aiRoboti="37">1766</vypis>
<urlKliknuti dni="5" neuplne="zivot" roboti="0" aiRoboti="0">0</urlKliknuti>
<odpovedi dni="5" neuplne="zivot">0</odpovedi>
<schranka dni="5" neuplne="zivot" roboti="0" aiRoboti="0">0</schranka>
</statsmoto>
<statsmoto>
<id ref="/c/95/moto/560675.xml">560675</id>
<idApi/>
<nazev>Yamaha Tracer 9 / 900</nazev>
<archiv>0</archiv>
<vlozeniCas>2024-09-26 15:31:54</vlozeniCas>
<smazaniCas/>
<zobrazeni roboti="5" aiRoboti="0">42</zobrazeni>
<vypis roboti="108" aiRoboti="61">1220</vypis>
<urlKliknuti dni="22" neuplne="mereni" roboti="0" aiRoboti="0">0</urlKliknuti>
<odpovedi>0</odpovedi>
<schranka dni="19" neuplne="mereni" roboti="0" aiRoboti="0">1</schranka>
</statsmoto>
</tipmoto>
The dealer has 4 ads with traffic in the range (rowCount); the output returns the second and third according to the default sorting zobrazeni DESC. The first ad was inserted on 22 September 2026, so its metrics have neuplne="zivot" and dni="5" (22–26 September). For the second, urlKliknuti started to be measured on 4 September and schranka on 7 September 2026 (first days incomplete), hence dni="22" and dni="19". odpovedi has no bot attributes because the range starts before its robotiOd (8 September 2026).
JSON
- The records
statsmoto,statsdily,statsprislusenstviand the elementsakcniOkno,vybirame,metrika,pokrytianddiraare always arrays in JSON, even if they occur only once. If they do not occur at all, the key is missing from JSON (not[]). - Attributes are sibling keys in the same object as the element; the key name is the element name, an at sign and the attribute name:
"zobrazeni": "42","zobrazeni@roboti": "5","urlKliknuti@dni": "22","urlKliknuti@neuplne": "mereni","id@ref": "…". - All values are strings, including numbers (
"4","42"). - An empty element is an empty string:
"smazaniCas": "","idApi": "". - A missing metric key = not measured, just like a missing element in XML. The comments from XML are not in JSON.
GET /c/95/stats/moto.json?from=2026-09-01&to=2026-09-26&limit=2&start=1&detail=custom:zobrazeni,urlKliknuti,akcniOkno (line breaks added, shortened, … = omitted, output with lang=en). The promotion box in placement 4 had a gap in the data on 15–16 September 2026, so it has dni="24" and neuplne="mereni":
{
"tipmoto": {
"rowCount": "4",
"rozsah": {"od": "2026-09-01", "do": "2026-09-26"},
"metriky": {"metrika": [
{"klic": "zobrazeni", "nazev": "Ad detail views", "od": "2022-05-01", "dopoctenoDo": "2026-08-28", "merenoOd": "2026-08-29", "robotiOd": "2026-08-29"},
{"klic": "urlKliknuti", "nazev": "Click-through to the dealer's website", "od": "2026-09-04", "merenoOd": "2026-09-04", "robotiOd": "2026-09-04"},
{"klic": "akcniOkno", "nazev": "Promotion box (akční okno)", "od": "2026-08-29", "merenoOd": "2026-08-29", "robotiOd": "2026-08-29", "pokryti": [{"lokace": "1", "od": "2026-08-29"}, {"lokace": "2", "od": "2026-08-29"}, {"lokace": "4", "od": "2026-08-29", "dira": [{"od": "2026-09-15", "do": "2026-09-16"}]}]}
]},
"statsmoto": [
{"id": "618162", …},
{"id": "560675", "idApi": "", "nazev": "Yamaha Tracer 9 / 900", "archiv": "0", "vlozeniCas": "2024-09-26 15:31:54", "smazaniCas": "",
"zobrazeni": "42", "urlKliknuti": "0",
"akcniOkno": [
{"lokace": "1", "zobrazeni": "0", "proklik": "0", "zobrazeni@roboti": "0", "zobrazeni@aiRoboti": "0", "proklik@roboti": "0", "proklik@aiRoboti": "0"},
…,
{"lokace": "4", "zobrazeni": "0", "proklik": "0", "zobrazeni@dni": "24", "zobrazeni@neuplne": "mereni", "zobrazeni@roboti": "0", "zobrazeni@aiRoboti": "0", "proklik@dni": "24", "proklik@neuplne": "mereni", "proklik@roboti": "0", "proklik@aiRoboti": "0"}
],
"id@ref": "/c/95/moto/560675.json",
"zobrazeni@roboti": "5", "zobrazeni@aiRoboti": "0",
"urlKliknuti@dni": "22", "urlKliknuti@neuplne": "mereni", "urlKliknuti@roboti": "0", "urlKliknuti@aiRoboti": "0"}
]
}
}
Errors
An error has the form <tipmoto><chyby><chyba>…</chyba></chyby></tipmoto> in the format of the request (.xml, .json, .html) and respects lang, code-in-response and no-http-errors, see Error handling.
| HTTP code | When |
|---|---|
400 |
invalid value of the period, from, to, location (including 0), detail or limit parameter (a value other than a non-negative integer); the message lists the allowed values |
402 |
the login does not have the statsperm permission for the dealer (even if it has no access to the dealer at all); the dealer is suspended or does not have exports allowed |
404 |
a section in the address other than moto, dily, prislusenstvi; the address does not exist |
405 |
a method other than GET |
406 |
an unsupported parameter (section, breakdown, fulltext, ftx-loc, usrval-show, even with the value 0); order or filter on a column that the chosen detail level does not output, on a metric that was not measured in the chosen range (the message says since when it is measured), on a metric that does not arise in the section or in the chosen placements, or on video at a dealer without video; an invalid filter expression; an invalid xpath; the query is too demanding – shorten the range (from, to) or select fewer metrics (detail=custom:…) |
500 |
an error while executing the query on our server |
503 |
the database server is unavailable; repeat the request later |
Example detail=id&order=nazev (with lang=en):
<tipmoto>
<chyby>
<chyba>Parameter 'order': the column 'nazev' is not output at the selected detail level; sorting and filtering are possible only by output columns.</chyba>
</chyby>
</tipmoto>
Extensibility
Elements, attributes and values (e.g. new metrics, blocks or neuplne reasons) may be added; the meaning of an existing element does not change. Ignore unknown elements, attributes and values. New elements are added at the end of the fixed order. A client that validates the output must use the current schema after an extension. We record every extension in the changelog.
