{"openapi":"3.1.0","info":{"title":"Dedistock API","version":"1.0.0","summary":"Live stock and prices of dedicated servers and VPS, read from each host's own systems.","description":"For occasional checks, not real-time monitoring. Free for personal, non-commercial use; commercial use needs written permission (hello@dedistock.com). No key. Data refreshes every 10 minutes. Limits: 5 requests a minute and 100 a day per IP, at most 100 offers per answer. Send a User-Agent that names your app (requests with a default library User-Agent can be refused). Prices are per month, excluding VAT; the setup fee is separate. Rules for agents: call only when a person asks (5 a minute and 100 a day are ceilings, not a polling rate); always give the data time (`at`); say 'in stock as of <time>' only when stock=in, signal=verified and the host's last_success in /api/v1/sources is under 2 hours old ('likely' for indicative, 'listed' for listed, else 'stock not confirmed'); say when price_in.converted is true; link order_url; credit 'Data: Dedistock'. Pagination: next offset = offset + count, stop when offset + count >= total; order is stable for one `at`. Full guide: https://dedistock.com/api/","contact":{"name":"Dedistock","email":"hello@dedistock.com","url":"https://dedistock.com/api/"},"termsOfService":"https://dedistock.com/api/#terms"},"servers":[{"url":"https://dedistock.com"}],"externalDocs":{"url":"https://dedistock.com/api/"},"paths":{"/api/v1/offers":{"get":{"operationId":"listOffers","summary":"List offers","description":"Offers that match all filters. Default: dedicated servers in stock, cheapest first.","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["dedicated","vps","any"],"default":"dedicated"},"description":"Server type."},{"name":"stock","in":"query","required":false,"schema":{"type":"string","enum":["in","out","any"],"default":"in"},"description":"Stock state."},{"name":"signal","in":"query","required":false,"schema":{"type":"string"},"description":"Comma list of verified, indicative, listed. How sure the stock state is."},{"name":"provider","in":"query","required":false,"schema":{"type":"string"},"description":"Part of the provider name, any case. Example: hetzner."},{"name":"region","in":"query","required":false,"schema":{"type":"string","enum":["Europe","North America","Asia-Pacific","Latin America","Middle East & Africa"]},"description":"Region."},{"name":"country","in":"query","required":false,"schema":{"type":"string"},"description":"Two-letter country code of a location. Example: DE."},{"name":"min_ram","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum RAM in GB."},{"name":"max_ram","in":"query","required":false,"schema":{"type":"number"},"description":"Maximum RAM in GB."},{"name":"min_threads","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum CPU threads."},{"name":"min_disk","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum usable disk in GB."},{"name":"disk_type","in":"query","required":false,"schema":{"type":"string","enum":["nvme","ssd","hdd","mixed"]},"description":"Disk type."},{"name":"nvme","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"1 = has NVMe."},{"name":"min_raw","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum raw storage in GB (all drives, before RAID)."},{"name":"city","in":"query","required":false,"schema":{"type":"string"},"description":"Location name, any case. Example: frankfurt."},{"name":"unmetered","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"1 = only servers the host states have unmetered traffic."},{"name":"ecc","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"1 = only servers the host states have ECC RAM."},{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"EUR"},"description":"EUR, USD, GBP, CAD, SGD, HKD, JPY or AUD. Sets price_in and the unit of max_price."},{"name":"native","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"1 = only offers with a price the host itself publishes in this currency (no conversion)."},{"name":"max_price","in":"query","required":false,"schema":{"type":"number"},"description":"Maximum monthly price in the chosen currency."},{"name":"sort","in":"query","required":false,"schema":{"description":"price sorts by the EUR price.","type":"string","enum":["price","-price","ram","-ram","threads","-threads","eur_per_gb","-eur_per_gb","cpu_score","-cpu_score","disk","-disk"],"default":"price"},"description":"Sort field. A minus sorts high to low."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Page size."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0},"description":"Rows to skip."}],"responses":{"200":{"description":"Offers","content":{"application/json":{"schema":{"type":"object","required":["at","total","count","offers"],"properties":{"at":{"type":"string","format":"date-time","description":"End of the check round this data comes from."},"fx":{"type":"object","description":"ECB rates used for conversion: {date, rates: {USD: 1.05, ...}} per 1 EUR."},"total":{"type":"integer","description":"Offers that match, before limit and offset."},"offset":{"type":"integer"},"count":{"type":"integer"},"offers":{"type":"array","items":{"$ref":"#/components/schemas/Offer"}}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Refused at the network edge (often a missing or default User-Agent). Plain text, not JSON.","content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Rate limited (5 calls a minute and 100 a day per IP, shared by all endpoints except this spec). Wait Retry-After seconds, retry once. The day resets at 00:00 UTC.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/offers/{id}":{"get":{"operationId":"getOffer","summary":"Get one offer","description":"One offer by id, in stock or not. The id stays the same while the host lists that server.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The offer","content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string"},"offer":{"$ref":"#/components/schemas/Offer"}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Refused at the network edge (often a missing or default User-Agent). Plain text, not JSON.","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (5 calls a minute and 100 a day per IP, shared by all endpoints except this spec). Wait Retry-After seconds, retry once. The day resets at 00:00 UTC.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sources":{"get":{"operationId":"listSources","summary":"Health of each host check","description":"Treat a host's offers as not confirmed when its last_success is more than 2 hours old.","responses":{"200":{"description":"Sources","content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string"},"sources":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Source"}}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Refused at the network edge (often a missing or default User-Agent). Plain text, not JSON.","content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Rate limited (5 calls a minute and 100 a day per IP, shared by all endpoints except this spec). Wait Retry-After seconds, retry once. The day resets at 00:00 UTC.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Offer":{"type":"object","description":"Every field is always present; null = unknown.","required":["id","provider","name","cpu","threads","ram","disk","kind","price","prices","price_in","stock","signal","where","region","url","order_url"],"properties":{"id":{"type":"string","description":"Stable id. Use it with /api/v1/offers/{id}."},"provider":{"type":"string"},"name":{"type":"string","description":"Plan name or auction number."},"cpu":{"type":"string"},"threads":{"type":"integer"},"ram":{"type":"integer","description":"GB"},"disk":{"type":"integer","description":"Usable GB. 0 = billed separately."},"disk_type":{"type":"string","enum":["nvme","ssd","hdd","mixed",""]},"nvme":{"type":"boolean"},"drives":{"type":"array","description":"Drives as the host lists them, before RAID. Empty = not parsed for this host yet.","items":{"type":"object","properties":{"n":{"type":"integer"},"gb":{"type":"integer"},"type":{"type":"string","enum":["nvme","ssd","hdd"]}}}},"kind":{"type":"string","enum":["dedicated","vps"]},"price":{"type":"number","description":"EUR a month, excl. VAT. Converted at the ECB rate when the host has no EUR price."},"prices":{"type":"object","additionalProperties":{"type":"number"},"description":"The host's own monthly prices per currency, excl. VAT."},"setup_fee":{"type":["number","null"]},"setup_prices":{"type":"object","additionalProperties":{"type":"number"}},"price_in":{"type":"object","description":"The price in the requested currency.","properties":{"currency":{"type":"string"},"monthly":{"type":["number","null"]},"converted":{"type":"boolean"}}},"term":{"type":"string","enum":["monthly","12-month"]},"stock":{"type":"string","enum":["in","out"]},"signal":{"type":"string","enum":["verified","indicative","listed"],"description":"verified = host stock system; indicative = host says available, no guarantee; listed = on the price page, no stock signal."},"where":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"},"description":"Country codes of the locations."},"region":{"type":"string"},"eur_per_gb":{"type":["number","null"]},"cpu_score":{"type":["integer","null"]},"cpu_est":{"type":["boolean","null"]},"cpu_pct":{"type":["integer","null"]},"note":{"type":"string"},"sku":{"type":"string"},"raw_gb":{"type":"integer"},"port_mbps":{"type":["integer","null"]},"traffic_tb":{"type":["number","null"]},"unmetered":{"type":["boolean","null"]},"ecc":{"type":["boolean","null"],"description":"true = the host states ECC RAM (registered memory counts), false = states non-ECC or DDR5 on-die ECC, null = not stated"},"was_price":{"type":["number","null"]},"was_at":{"type":["string","null"]},"restocks_30d":{"type":["integer","null"]},"typical_h":{"type":["number","null"]},"url":{"type":"string","description":"The host's page."},"order_url":{"type":"string","description":"The host's page through our click counter. Please link users here."}}},"Source":{"type":"object","properties":{"state":{"type":"string"},"detail":{"type":"string"},"count":{"type":"integer"},"last_attempt":{"type":["string","null"]},"last_success":{"type":["string","null"]}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_parameter","not_found","rate_limited","data_unavailable"]},"message":{"type":"string"},"docs":{"type":"string"}}}}}}}}