The catalogue feed
/katalog.json holds every drive and every set on offer in one answer. The feed says what the pages say and nothing beyond: no serial number, no reference price, no statement about the future of a drive.
GET https://farmer.diamonds/katalog.json
GET https://farmer.diamonds/katalog.json?lang=en- The answer names its schema (
schema: fd-katalog/1), the time it was built (generatedAt, UTC), its language (language), the seller (shop), the number of entries (counts) and the listsmodels,drivesandsets. - Under
shopare the name, the seller, the currency, the VAT and the delivery area (deliveryArea: AT). While a pickup point is active,pickupis there too: an order can be picked up free of charge instead of being shipped (free), at the pickup points inplaceswith name, address and opening hours. - Without a parameter the wordings are German; with lang=en English. Figures and codes are the same in both.
- A copy may be used for 300 seconds (Cache-Control). Asking more often brings nothing new. The answer carries an ETag: whoever sends it back with If-None-Match gets an empty answer while nothing on offer has changed. With Accept-Encoding: gzip it arrives compressed.
- A field that is added does not change the name of the schema; where the meaning of a field changes, the schema gets a new number.
| Field in models | Meaning |
|---|---|
id | The identifier of the model, also the last part of the address of its page and the value of the parameter modell. |
url | The address of the page of this model. |
model | name: the model as the page names it. number: the designation the drive reports. |
capacity | tb as labelled, tib as the operating system reports it; text and tibText as printed on the page. |
drives | The number of drives of this model in drives. |
nasAndContinuousUse | suitable: whether the model is fit for NAS, RAID and continuous operation (true, false, or null for an unknown model). With false, text holds the sentence of the page. |
recording | The recording method of the model, as the row “Recording” of the page states it (CMR). Absent where the model has no entry. |
specs | The technical data of the model as its page lists them under “Technical data”: per row name, and in values what the row states. Absent for a model without such data. |
specsNote | The note of the page on them: details of the model, no measured values of the single used drive. |
| Field in drives | Meaning |
|---|---|
id | The item number of the drive (FD-…), as on its page. Not a serial number. |
url | The address of the page of this drive. |
json | The address of its JSON twin. |
model | name: the model as the page names it. number: the designation the drive reports. |
capacity | tb as labelled, tib as the operating system reports it; text and tibText as printed on the page. |
interface | The interface as the page names it. Absent where it was not recorded. |
recording | The recording method of the model, as the row “Recording” of the page states it (CMR). Absent where the model has no entry. |
condition | code: used, recertified (factory recertified by the maker, recorded for the single drive) or refurbished (factory refurbished). text: the wording of the page, the same as in the order line. The list puts recertified and refurbished together under zustand=refurbished. |
powerOnHours | Power-on hours when we measured. null means: not recorded. |
powerCycles | Power cycles when we measured. null means: not recorded. |
defectiveSectors | Bad sectors as the sum of the counters. null means: not recorded, and is not a zero. |
test | marks: what is on record about the test, in the order of the page. ueberschrieben: the drive was overwritten in full, which writes every sector. After it a self-test with a recorded result: lang or kurz (long or short, passed), lang_fehler or kurz_fehler (not passed). A drive without a recorded overwrite has exactly one entry, the state of its self-test; then lang_offen, kurz_offen (result not recorded) and nicht_erfasst (not recorded) occur as well. text: the wording of the page. A self-test is given as passed only where its passed result is on record; the overwrite is never worded as a passed self-test. |
conditionScore | The condition score: score out of of, with its band. A summary of the measured values, not a statement about the future. null without recorded power-on hours. |
nasAndContinuousUse | suitable: whether the model is fit for NAS, RAID and continuous operation (true, false, or null for an unknown model). With false, text holds the sentence of the page. |
price | The price the page states: cents, eur, currency, including VAT, without shipping. No reference price. For the drive of the day, while it can be ordered, it is the amount in the line of the order form on its page: the amount the order charges, with the “Jetzt-Bonus”. Above the form the same page states the price without that bonus. |
availability | code: the status. text: its wording on the page. |
orderableSingly | true when the drive is available, has a price and belongs to no set. |
order | The link to the checkout with this drive, for a person. Only with orderableSingly. |
set | The set the drive belongs to: id and url. It is then sold with the set only. |
image | The product photo of this drive, where its page shows one. |
| Field in sets | Meaning |
|---|---|
id | The identifier of the set, also the last part of its address. |
url | The address of the page of this set. |
title | The title of the page. |
kind | The kind of set. |
drives | The number of drives in the set. |
model | name: the model as the page names it. number: the designation the drive reports. |
capacityPerDrive | The capacity per drive: tb, text, tib and tibText as in capacity of a single entry. |
condition | code: used, recertified (factory recertified by the maker, recorded for the single drive) or refurbished (factory refurbished). text: the wording of the page, the same as in the order line. The list puts recertified and refurbished together under zustand=refurbished. |
layouts | Per layout (layout) the number of drives that carry data (dataDrives) and the usable capacity (usable), nominal as on the page. |
powerOnHours | The power-on hours of the drives in the set: min, max, median. |
members | The drives of the set, each with id and url. |
nasAndContinuousUse | suitable: whether the model is fit for NAS, RAID and continuous operation (true, false, or null for an unknown model). With false, text holds the sentence of the page. |
price | The price of the set: cents, eur, currency, including VAT, without shipping. null while not every drive has a price. For a set as the “drive of the day”, what price of a single entry says applies. |
availability | code: the status. text: its wording on the page. |
orderable | true when the set can be ordered as a whole. |
order | The link to the checkout with this set, for a person. Only with orderable. |
What the measured values mean is under Measured values explained; how a buyer reads them out is under Check the values yourself.
The JSON twin of a drive
Every drive page has a twin at /laufwerk/FD-….json with the same details (schema: fd-laufwerk/1). The page of a drive on offer announces it in its head with a link element: rel alternate, type application/json. The twin names the page as its canonical address (Link header, rel canonical).
GET https://farmer.diamonds/laufwerk/FD-69J8QE.jsonUnder drive is the entry of the feed. Added to it are the individual deductions of the condition score (conditionScore.deductions, conditionScore.note) and these fields:
| Field in drive | Meaning |
|---|---|
erasure | What happened to the previous data: documented and the wording of the page in text. |
terms | What the buy box of the page states: shipping (the shipping cost of the first tier), pickup (free pickup, while a pickup point is active), delivery (the delivery area), withdrawalDays and withdrawalNote (withdrawal), warrantyMonths (the statutory warranty in months) and seller (the seller). |
A sold drive keeps its twin as well, marked as sold and without a link to the checkout; its page is no longer in the index and does not announce it. The shop answers an unknown number with an error message as JSON.
The list and its parameters
The list at /festplatten is a page for people and answers as HTML. Its address takes these parameters; with them a person can be led straight to a selection. For evaluating, there is the feed.
| Parameter | Values | Effect |
|---|---|---|
modell | identifier of a model: the last part of the address of its page | This model only. An identifier without a drive on offer does not filter. |
minTB | a capacity on offer in whole TB | At least this capacity as labelled. A capacity that is not on offer does not filter. |
q | search words | Every word must be true of the drive: model, item number, capacity, interface or condition. |
zustand | refurbished, gebraucht | Only drives in this condition. |
einsatz | nas | Only models fit for NAS, RAID and continuous operation. |
selbsttest | bestanden | Only drives with a passed self-test on record. |
seite | whole number from 1 | The page of the list. |
proSeite | 24, 48, 96 | Drives per page; any other value gives 24. |
sort | empfohlen, stunden-auf, stunden-ab, preis-auf, preis-ab, preis-tb-auf, kapazitaet-ab, neu | The order; empfohlen when absent and for any other value. |
maxStunden | whole number | At most this many power-on hours. A drive without recorded power-on hours then drops out. |
maxPreis | whole number | At most this price in whole euros. |
https://farmer.diamonds/festplatten?einsatz=nas&minTB=20&sort=preis-aufFor a capacity, for NAS and continuous operation and for pickup in a town the list has fixed addresses; each shows its drives and carries the order form for one of them:
- Hard drives with 14 TB
- Hard drives with 16 TB
- Hard drives with 18 TB
- Hard drives with 20 TB
- Hard drives with 22 TB
- Hard drives for NAS and 24/7 operation
- Pickup in Graz
A value the list does not know does not filter. The page of a model takes selbsttest, seite, proSeite, sort, maxStunden, maxPreis of these; the sort preis-tb-auf exists in the list only. With lang=en every page appears in English.
The prepared cart
A link to the checkout can bring the selection along: one parameter item per line, item=laufwerk:FD-… with its item number for a drive, item=set:… with its identifier for a set. The parameter may occur several times. The field order in the feed is this link for one entry.
https://farmer.diamonds/kasse?item=laufwerk%3AFD-69J8QEA single drive or a single set does not need the link: the page at url carries the order form itself while the entry can be ordered.
The checkout checks every line afresh: it states the price, the shipping cost, free pickup where it is offered, and what is no longer available. An order in the shop holds at most 10 hard drives; for more there is the bulk enquiry.
Rules for programs
- Only a person places an order. A program may prepare the link to the checkout and show it to a person; filling in the form, confirming the terms and submitting it is for the person to do. That holds for every order form of the shop, also for the forms on the pages of the drives, the sets and the models, on the start page and on the pages under /festplatten/.
- The checkout, the order pages, the waitlist and the receipts of a withdrawal are excluded in robots.txt and are not fetched automatically.
- Do not fetch the feed more often than every 300 seconds.
- Whoever passes a detail on gives the time from
generatedAt: every drive is a single item and can be taken with the next order. - The German legal texts are what binds: the terms, the right of withdrawal, Shipping & payment. The shop in dated sentences: Facts about the shop.