Trashures API v1 (0.14.0-dev+3942413)

Photo or item + postal code -> the correct bin, for licensed territories. Authorization: Bearer with an API key or a token. Keys are given on request with a contract; limits, territory and the notices a client has to show are set out in the rules for customers (https://developers.trashures.app/regeln).

v1

Token for an app

Trade the API key for a short-lived token for the customer's app. Only the key itself may do this, never a token. The token has the territory, limits and expiry of the key and at most its scopes.

Authorizations:
api_key
Request Body schema: application/json
Any of
Array of Scopes (strings) or Scopes (null) (Scopes)

Scopes of the token; default: all scopes of the key. Never more than the key has

Any of
Array
string
Enum: "data" "scan" "feedback"

Responses

Response Schema: application/json
token
required
string (Token)

Send as Authorization: Bearer <token> to /v1 from the app

expires_in
required
integer (Expires In)

Seconds until the token expires

scopes
required
Array of strings (Scopes)
Items Enum: "data" "scan" "feedback"
token_type
string (Token Type)
Default: "Bearer"
Value: "Bearer"
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Request samples

Content type
application/json
Example
{
  • "scopes": [
    • "data"
    ]
}

Response samples

Content type
application/json
{
  • "token": "string",
  • "token_type": "Bearer",
  • "expires_in": 0,
  • "scopes": [
    • "data"
    ]
}

Region of a postal code

Region for a postal code, within the territory of the key.

Authorizations:
api_key
query Parameters
postal_code
required
string (Postal Code) ^\d{5}$
language
string (Language)
Default: "de"
Enum: "de" "en"

Responses

Response Schema: application/json
id
required
string (Id)
name
required
string (Name)
known
required
boolean (Known)

False: region not researched yet, baseline rules are used

status
required
string (Status)
Enum: "requested" "research" "live" "verified" "official"

Place status in five steps: requested and research for an unknown district (research once its new-region issue exists; only GET /api/region checks that, scan, resolve and popular report requested), live for rules at vorlaeufig, verified at geprueft, official while a signed agreement with the örE is active

territory
required
string (Territory)
Enum: "licensed" "baseline"

licensed: the place lies in the territory of the key, the rules of its region apply. baseline: the place lies outside, the answer is the general rule for Germany and must be shown as such

Locality (string) or Locality (null) (Locality)
Any of
string (Locality)
District (string) or District (null) (District)
Any of
string (District)
District Key (string) or District Key (null) (District Key)
Any of
string (District Key)
"first_region" (string) or Achievement Unlocked (null) (Achievement Unlocked)

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Any of
string ("first_region")

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Array of objects (Household Bins)

Only GET /api/region (and /v1/region): the household bins the place has, with name and colour from the rules, in the order restmuell, bio, papier, verpackung; a bin the örE does not have is missing. An unknown place gets the baseline bins for Germany. Empty in scan, resolve and popular responses

Array
code
required
string (Code)
Enum: "restmuell" "bio" "papier" "verpackung"
name
required
string (Name)

Name of the bin at this place, e.g. Grüne Papiertonne

required
Color (string) or Color (null) (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

Any of
string (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

colors_hex
required
Array of strings (Colors Hex)

Swatch colours of the bin, same mapping as answer.rows[].colors_hex (the client computes no colour); empty without a colour

plain_name
required
string (Plain Name)

Name without a colour word, shown when the household gives the bin its own colour, the same name the answer then uses

kind
required
string (Kind)

tonne or sack

Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "known": true,
  • "status": "requested",
  • "locality": "string",
  • "district": "string",
  • "district_key": "string",
  • "achievement_unlocked": "first_region",
  • "household_bins": [
    • {
      • "code": "restmuell",
      • "name": "string",
      • "color": "string",
      • "colors_hex": [
        • "string"
        ],
      • "plain_name": "string",
      • "kind": "string"
      }
    ],
  • "territory": "licensed"
}

Search items

Ranked search over names and synonyms of the items in both languages, tolerant of typos. The items are the same everywhere; the bin of an item for a place comes from /v1/resolve.

Authorizations:
api_key
query Parameters
q
required
string (Q) >= 2 characters
language
string (Language)
Default: "de"
Enum: "de" "en"
limit
integer (Limit) [ 1 .. 50 ]
Default: 10

Responses

Response Schema: application/json
Array
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

Matched Synonym (string) or Matched Synonym (null) (Matched Synonym)

The synonym of the item (original spelling) through which the query found the item, null when a name matches as well; may be one beyond synonyms. Show it as "gefunden über „…“"

Any of
string (Matched Synonym)

The synonym of the item (original spelling) through which the query found the item, null when a name matches as well; may be one beyond synonyms. Show it as "gefunden über „…“"

Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Response samples

Content type
application/json
[
  • {
    • "id": "string",
    • "name": "string",
    • "icon": "string",
    • "generic": false,
    • "synonyms": [
      • "string"
      ],
    • "matched_synonym": "string"
    }
]

Bin of an item

Item + postal code -> bin, also the answer to the question of a scan (same parameters as /api/resolve).

Authorizations:
api_key
query Parameters
item_id
required
string (Item Id)
postal_code
required
string (Postal Code) ^\d{5}$
language
string (Language)
Default: "de"
Enum: "de" "en"
Array of Has Bins (strings) or Has Bins (null) (Has Bins)
Array of Compost (strings) or Compost (null) (Compost)

Compost forms of the household, like profile.compost of a scan: with them result.compost says whether the item belongs on the compost. Leave it out for no compost or not answered (an empty list cannot be sent as a query)

Array of Bin Colors (strings) or Bin Colors (null) (Bin Colors)

Own colour of household bins, like profile.bin_colors of a scan, one <code>:<colour> per value, e.g. papier:blau. Codes restmuell, bio, papier, verpackung; colours grau, schwarz, braun, blau, gelb, grün, weiß, rot, orange, lila. The result and answer then show the bin in that colour and without the colour word in its name; 422 invalid_bin_colors otherwise

Answer Family (string) or Answer Family (null) (Answer Family)

Only when this call answers the yes/no question of a scan

Answer (string) or Answer (null) (Answer)
answer_first
boolean (Answer First)
Default: false
Array of Part Item Ids (strings) or Part Item Ids (null) (Part Item Ids)

Separable parts of the scan this call belongs to (answer.question.options[].resolve): answer then keeps their rows

Responses

Response Schema: application/json
required
object (RegionOut)
id
required
string (Id)
name
required
string (Name)
known
required
boolean (Known)

False: region not researched yet, baseline rules are used

status
required
string (Status)
Enum: "requested" "research" "live" "verified" "official"

Place status in five steps: requested and research for an unknown district (research once its new-region issue exists; only GET /api/region checks that, scan, resolve and popular report requested), live for rules at vorlaeufig, verified at geprueft, official while a signed agreement with the örE is active

Locality (string) or Locality (null) (Locality)
Any of
string (Locality)
District (string) or District (null) (District)
Any of
string (District)
District Key (string) or District Key (null) (District Key)
Any of
string (District Key)
"first_region" (string) or Achievement Unlocked (null) (Achievement Unlocked)

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Any of
string ("first_region")

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Array of objects (Household Bins)

Only GET /api/region (and /v1/region): the household bins the place has, with name and colour from the rules, in the order restmuell, bio, papier, verpackung; a bin the örE does not have is missing. An unknown place gets the baseline bins for Germany. Empty in scan, resolve and popular responses

Array
code
required
string (Code)
Enum: "restmuell" "bio" "papier" "verpackung"
name
required
string (Name)

Name of the bin at this place, e.g. Grüne Papiertonne

required
Color (string) or Color (null) (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

Any of
string (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

colors_hex
required
Array of strings (Colors Hex)

Swatch colours of the bin, same mapping as answer.rows[].colors_hex (the client computes no colour); empty without a colour

plain_name
required
string (Plain Name)

Name without a colour word, shown when the household gives the bin its own colour, the same name the answer then uses

kind
required
string (Kind)

tonne or sack

required
object (ResolutionOut)
required
object (ItemOut)
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

required
object (BinOut)
code
required
string (Code)
name
required
string (Name)

Short name without facts in parentheses

required
Color (string) or Color (null) (Color)
Any of
string (Color)
kind
required
string (Kind)
Detail (string) or Detail (null) (Detail)

One short line about the bin, e.g. the collection rhythm

Any of
string (Detail)

One short line about the bin, e.g. the collection rhythm

Array of objects (Places)

Sites of the bin, empty if not listed

Array
name
required
string (Name)

Name of the site, e.g. a recycling centre; the app builds a map search from it

Array of objects (Slots)

Openings of a container (glass colours), empty if it has only one

Array
code
required
string (Code)
name
required
string (Name)
Color (string) or Color (null) (Color)
Any of
string (Color)
trust
required
string (Trust)

basis | vorlaeufig | geprueft

hints
required
Array of strings (Hints)
sources
required
Array of strings (Sources)
substituted_from
required
Array of strings (Substituted From)

Bins that were not available and replaced

profile_conflict
boolean (Profile Conflict)
Default: false

True if the bin is not available here or the household lacks it and nothing replaces it

Slot (string) or Slot (null) (Slot)

Code of the slot in bin.slots the item goes into

Any of
string (Slot)

Code of the slot in bin.slots the item goes into

WhyOut (object) or null

Why the rule is as it is, with its source

Any of
text
required
string (Text)
source
required
string (Source)

URL backing the explanation; not part of sources, no effect on trust

Array of objects (Seasonal)

Hints that hold only between two fixed dates and hold today, e.g. the Christmas tree collection; empty outside their windows

Array
text
required
string (Text)
until
required
string <date> (Until)

Last day the hint holds (Europe/Berlin)

source
required
string (Source)
required
Calendar Url (string) or Calendar Url (null) (Calendar Url)

Official calendar of the local waste authority, if known

Any of
string (Calendar Url)

Official calendar of the local waste authority, if known

Covered By (string) or Covered By (null) (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

Any of
string (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

CompostOut (object) or null

Own compost next to the bin; null without compost forms in the profile (compost of the scan profile or of /api/resolve) or without a suitability for the item

Any of
suitability
required
string (Suitability)
Enum: "geeignet" "in_massen" "ungeeignet"

geeignet: good on the compost; in_massen: small amounts only; ungeeignet: not on the compost

offered
required
boolean (Offered)

True: the compost is a way for this item, show it next to the bin (answer.compost has the toggle). False: only the note, e.g. for meat; or the household has only a worm bin or bokashi

preferred
required
boolean (Preferred)

True: the compost is the suggestion and preselected; false: the bin is

source
required
string (Source)

URL backing the suitability (e.g. UBA); not part of sources, no effect on trust

Hint (string) or Hint (null) (Hint)

How ('In kleinen Mengen') or why not, in the language asked

Any of
string (Hint)

How ('In kleinen Mengen') or why not, in the language asked

BeforeBinOut (object) or null

What can be done before the bin: a sourced tip and an offer of the örE (offers in its rule file); null if there is neither, and in an uncertain scan

Any of
TipOut (object) or null
Any of
kind
required
string (Kind)
Enum: "regrow" "weiterverwerten" "weitergeben" "reparieren" "zurueckgeben" "pfand"

What to do instead of the bin: let it sprout, use it up, give it away, repair it, return it, deposit

text
required
string (Text)

One or two sentences in the language asked

source
required
string (Source)

URL backing every statement of the tip

OfferOut (object) or null
Any of
kind
required
string (Kind)
Enum: "weitergeben" "reparieren" "zurueckgeben"
name
required
string (Name)

Name of the place, e.g. the second-hand store of the örE

url
required
string (Url)

Page of the offer; no dates or opening hours in the answer, they go stale

source
required
string (Source)

Official page that says what it takes

Hint (string) or Hint (null) (Hint)

What it takes and how, in the language asked

Any of
string (Hint)

What it takes and how, in the language asked

FactOut (object) or null

One fact or myth about the item or its group, picked at random on every call; small note below the bin, never in place of the answer. Null if there is none. Only set on the main result of a recognized /api/scan and on /api/resolve, not on parts or tiles.

Any of
kind
required
string (Kind)
Enum: "fakt" "mythos" "wusstest_du"

fakt: sourced fact; mythos: a common myth with its correction; wusstest_du: a plain note

text
required
string (Text)
Source (string) or Source (null) (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

Any of
string (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

territory
required
string (Territory)
Enum: "licensed" "baseline"

licensed: the place lies in the territory of the key, the rules of its region apply. baseline: the place lies outside, the answer is the general rule for Germany and must be shown as such

Achievement Unlocked (string) or Achievement Unlocked (null) (Achievement Unlocked)

Achievement unlocked by this result for a registered account: lookup_25 Nachschlagewerk, first_region Ortsentdecker:in (second place), places_3 Ortskundige:r, places_10 Weltenbummler:in; scouts: hazardous_scout Schadstoff-Scout, electrical_scout Elektro-Scout; Mystery: parts_split Zerlegekünstler:in, special_bin Sonderfall; seasonal: season_christmas_tree Oh Tannenbaum, season_new_year Guten Rutsch; bin tiers: bin_<1..5> at 1, 5, 10, 50, 100 items of the bin; streak: streak at 1, 2, 3, 7, 14, 30 days in a row; only the first time. If one result unlocks several, this is the first, GET /api/me lists all

Any of
string (Achievement Unlocked)
Enum: "lookup_25" "first_region" "places_3" "places_10" "season_christmas_tree" "season_new_year" "hazardous_scout" "electrical_scout" "parts_split" "special_bin" "bin_restmuell_1" "bin_restmuell_2" "bin_restmuell_3" "bin_restmuell_4" "bin_restmuell_5" "bin_bio_1" "bin_bio_2" "bin_bio_3" "bin_bio_4" "bin_bio_5" "bin_papier_1" "bin_papier_2" "bin_papier_3" "bin_papier_4" "bin_papier_5" "bin_verpackung_1" "bin_verpackung_2" "bin_verpackung_3" "bin_verpackung_4" "bin_verpackung_5" "bin_glas_1" "bin_glas_2" "bin_glas_3" "bin_glas_4" "bin_glas_5" "bin_kompost_1" "bin_kompost_2" "bin_kompost_3" "bin_kompost_4" "bin_kompost_5" "streak_1" "streak_2" "streak_3" "streak_7" "streak_14" "streak_30"

Achievement unlocked by this result for a registered account: lookup_25 Nachschlagewerk, first_region Ortsentdecker:in (second place), places_3 Ortskundige:r, places_10 Weltenbummler:in; scouts: hazardous_scout Schadstoff-Scout, electrical_scout Elektro-Scout; Mystery: parts_split Zerlegekünstler:in, special_bin Sonderfall; seasonal: season_christmas_tree Oh Tannenbaum, season_new_year Guten Rutsch; bin tiers: bin_<1..5> at 1, 5, 10, 50, 100 items of the bin; streak: streak at 1, 2, 3, 7, 14, 30 days in a row; only the first time. If one result unlocks several, this is the first, GET /api/me lists all

AnswerOut (object) or null

The finished answer built from the other fields: headline, bins, one row per item and part, certainty, the open question with the resolve parameters of each option, reliability, status of the place, sources with titles and the notices a client has to show. Texts in language, each with its code. Always set by this API version; the other fields stay as they are

Any of
kind
required
string (Kind)
Enum: "bins" "not_accepted" "unknown"

bins: the item goes into the bins of rows; not_accepted: the local waste authority does not accept it (bin kind extern), bins_text says where it goes instead; unknown: no item

required
Certainty (string) or Certainty (null) (Certainty)

probable: the scan is uncertain, question is open; suggestion: a catch-all by material was recognized, show it as a suggestion; null for kind unknown

Any of
string (Certainty)
Enum: "sure" "probable" "suggestion"

probable: the scan is uncertain, question is open; suggestion: a catch-all by material was recognized, show it as a suggestion; null for kind unknown

split
required
boolean (Split)

True: parts go into other bins than the main item, the headline says so

headline
required
string (Headline)

e.g. 'Eierkarton gehört in', 'Getrennt entsorgen', ' nimmt das nicht an'

headline_code
required
string (Headline Code)
Enum: "goes_in" "probably_goes_in" "dispose_separately" "probably_dispose_separately" "not_accepted_by" "not_accepted_here" "not_recognized"
bins_text
required
string (Bins Text)

The bins as one line, main bin first, each once ('Papiertonne / Altpapier und Biotonne'); 'Stattdessen: ' for not_accepted; empty for unknown

required
Item Text (string) or Item Text (null) (Item Text)

The main item as a line of its own, with ', wahrscheinlich' while the answer is not sure; for layouts whose headline does not name the item (not_accepted). Null for unknown

Any of
string (Item Text)

The main item as a line of its own, with ', wahrscheinlich' while the answer is not sure; for layouts whose headline does not name the item (not_accepted). Null for unknown

required
Array of objects (Rows)

Main item first, then parts in another bin, then the other parts

Array
item_id
required
string (Item Id)
item
required
string (Item)
role
required
string (Role)
Enum: "main" "part"
separate
required
boolean (Separate)

True for a part that goes into another bin than the main item: show it next to the main item at the top. False for the main item and for parts in the same bin

bin_code
required
string (Bin Code)
bin
required
string (Bin)
bin_kind
required
string (Bin Kind)
required
Color Hex (string) or Color Hex (null) (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

Any of
string (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

colors_hex
required
Array of strings (Colors Hex)

All colours as stripes, e.g. the three openings of a glass container when the rule names no slot; one entry otherwise, empty without a colour

hints
required
Array of strings (Hints)
AnswerSlotOut (object) or null

Opening of the container the item goes into

Any of
code
required
string (Code)
name
required
string (Name)
required
AnswerReliabilityOut (object) or null

Null for kind unknown

Any of
level
required
string (Level)
Enum: "basis" "vorlaeufig" "geprueft"

Trust level of the rule (result.trust); an unknown value counts as basis

label
required
string (Label)

The level in a word, e.g. Allgemein, Vorläufig, Offizielle Quelle

text
required
string (Text)

What the level means for this answer

text_code
required
string (Text Code)
Enum: "basis" "basis_known" "vorlaeufig" "geprueft"

basis_known: baseline rule in a researched place, the local authority says nothing on the item

required
Array of objects (Levels)

All levels with their general explanation, for a legend

Array
level
required
string (Level)
Enum: "basis" "vorlaeufig" "geprueft"
label
required
string (Label)
text
required
string (Text)
Covered By (string) or Covered By (null) (Covered By)

Sentence for result.covered_by: the item is not named by the authority, it falls under a wording of its page

Any of
string (Covered By)

Sentence for result.covered_by: the item is not named by the authority, it falls under a wording of its page

required
object (AnswerPlaceStatusOut)
pending
required
boolean (Pending)

True: the place is not researched yet, the baseline rule for Germany applies

place
required
string (Place)

Name of the place as the person knows it (locality, else district, else region)

Text (string) or Text (null) (Text)

One status line; null for a researched place

Any of
string (Text)

One status line; null for a researched place

Title (string) or Title (null) (Title)
Any of
string (Title)
Detail (string) or Detail (null) (Detail)
Any of
string (Detail)
required
Array of objects (Sources)

Sources of the main rule (result.sources) with a readable title

Array
url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
required
Array of objects (Attribution)

Notices a client has to show next to the answer

Array
code
required
string (Code)
Enum: "trashures" "openstreetmap" "openplz" "destatis"
text
required
string (Text)
url
required
string (Url)
Help (string) or Help (null) (Help)

What to try next; only for kind unknown

Any of
string (Help)

What to try next; only for kind unknown

AnswerConfirmedOut (object) or null

Set while certainty is not sure: the lines after the person confirmed the shown item

Any of
headline
required
string (Headline)
headline_code
required
string (Headline Code)
Enum: "goes_in" "probably_goes_in" "dispose_separately" "probably_dispose_separately" "not_accepted_by" "not_accepted_here" "not_recognized"
item_text
required
string (Item Text)
AnswerQuestionOut (object) or null
Any of
kind
required
string (Kind)
Enum: "yes_no" "choice"
label
required
string (Label)

Small line above the question, e.g. Kurze Frage

text
required
string (Text)
text_code
required
string (Text Code)
Enum: "condition" "confusion" "generic_suggestion" "which_one"

condition: yes/no question of a condition family; confusion: look-alike items; generic_suggestion: a catch-all was recognized; which_one: no question in the data

required
Array of objects (Options)

Empty: only the question, no control

Array
id
required
string (Id)

yes | no for a yes/no question, else the item id

label
required
string (Label)
selected
required
boolean (Selected)

Preselected: the recognized item of a choice; never an answer of a yes/no question

confirms
required
boolean (Confirms)

The option is the item already shown: no request is needed, show answer.confirmed instead (nothing is counted then)

required
object (AnswerResolveOut)

Query parameters of GET /api/resolve for one option, next to the ones the client knows itself (postal_code, language, has_bins, location_source).

item_id
required
string (Item Id)
part_item_ids
Array of strings (Part Item Ids)

The parts of the scan: with them the answer of resolve keeps the rows of the parts

Answer Family (string) or Answer Family (null) (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Any of
string (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Answer (string) or Answer (null) (Answer)
Any of
string (Answer)
Enum: "yes" "no"
Answer First (boolean) or Answer First (null) (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Any of
boolean (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Family (string) or Family (null) (Family)

Condition family of a yes/no question

Any of
string (Family)

Condition family of a yes/no question

AnswerReportOut (object) or null
Any of
text
required
string (Text)
placeholder
required
string (Placeholder)
send_label
required
string (Send Label)
confirm_label
required
string (Confirm Label)

Label of the button that confirms the suggestion without a request

thanks
required
string (Thanks)
feedback_kind
required
string (Feedback Kind)

POST /api/scan/{scan_id}/feedback with this kind and the text as note

Value: "missing_item"
AnswerAlternativesOut (object) or null

'Meintest du ...?' of a scan without an open question (sure or unknown); null while question is set, for a lookup and without alternatives

Any of
text
required
string (Text)
required
Array of objects (Options)

Each with the parameters of GET /api/resolve; none is preselected

Array
id
required
string (Id)

yes | no for a yes/no question, else the item id

label
required
string (Label)
selected
required
boolean (Selected)

Preselected: the recognized item of a choice; never an answer of a yes/no question

confirms
required
boolean (Confirms)

The option is the item already shown: no request is needed, show answer.confirmed instead (nothing is counted then)

required
object (AnswerResolveOut)

Query parameters of GET /api/resolve for one option, next to the ones the client knows itself (postal_code, language, has_bins, location_source).

item_id
required
string (Item Id)
part_item_ids
Array of strings (Part Item Ids)

The parts of the scan: with them the answer of resolve keeps the rows of the parts

Answer Family (string) or Answer Family (null) (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Any of
string (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Answer (string) or Answer (null) (Answer)
Any of
string (Answer)
Enum: "yes" "no"
Answer First (boolean) or Answer First (null) (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Any of
boolean (Answer First)

Send true for the first answer to this question, false when the person changes the answer

AnswerCompostOut (object) or null

Own compost next to the bin: only for a sure answer whose result.compost.offered is true

Any of
suitability
required
string (Suitability)
Enum: "geeignet" "in_massen"

Like result.compost.suitability

label
required
string (Label)

Line above the toggle, e.g. Wohin damit?

required
Array of objects (Options)

Two options: compost, then the bin

Array
id
required
string (Id)
Enum: "compost" "bin"
label
required
string (Label)

Kompost, or the name of the bin of rows[0]

selected
required
boolean (Selected)

Preselected: the suggested way (a client may replace it by the person's own choice for this item)

headline
required
string (Headline)

e.g. 'Kaffeesatz gehört auf den Kompost'

bins_text
required
string (Bins Text)

Eigener Kompost

required
object (AnswerRowOut)

The main item on the compost (bin_code and bin_kind kompost)

item_id
required
string (Item Id)
item
required
string (Item)
role
required
string (Role)
Enum: "main" "part"
separate
required
boolean (Separate)

True for a part that goes into another bin than the main item: show it next to the main item at the top. False for the main item and for parts in the same bin

bin_code
required
string (Bin Code)
bin
required
string (Bin)
bin_kind
required
string (Bin Kind)
required
Color Hex (string) or Color Hex (null) (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

Any of
string (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

colors_hex
required
Array of strings (Colors Hex)

All colours as stripes, e.g. the three openings of a glass container when the rule names no slot; one entry otherwise, empty without a colour

hints
required
Array of strings (Hints)
AnswerSlotOut (object) or null

Opening of the container the item goes into

Any of
code
required
string (Code)
name
required
string (Name)
required
object (AnswerSourceOut)

Source of the suitability (e.g. UBA)

url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
reliability_label
required
string (Reliability Label)

With compost selected: in place of reliability.label (the trust level belongs to the bin's rule)

reliability_text
required
string (Reliability Text)

With compost selected: in place of reliability.text

headline_code
string (Headline Code)
Default: "compost_goes_on"
Enum: "compost_goes_on" "compost_goes_on_limited"

compost_goes_on_limited: small amounts only, see warning

AnswerCompostWarningOut (object) or null

Only for in_massen: a warning box on the compost side (the reason is not in row.hints then)

Any of
title
required
string (Title)

e.g. Nur wenig

fallback
required
string (Fallback)

e.g. 'Im Zweifel: Biotonne', the bin of the answer

Text (string) or Text (null) (Text)

Why, from the rules (e.g. fungicides on peels); null without

Any of
string (Text)

Why, from the rules (e.g. fungicides on peels); null without

AnswerConfirmOut (object) or null

Texts to confirm item and bins; set whenever there is an item, the client shows them only for a scan (with scan_id), not for a text search. Only the app's /api has the endpoint to send a confirmation; /v1 clients ignore it

Any of
item_question
required
string (Item Question)

Kept for older clients (two steps); not shown any more

item_yes
required
string (Item Yes)
item_no
required
string (Item No)
item_thanks
required
string (Item Thanks)
bin_question
required
string (Bin Question)
bin_yes
required
string (Bin Yes)
bin_no
required
string (Bin No)
bin_thanks
required
string (Bin Thanks)
thanks
required
string (Thanks)

Kept for older clients; now item_thanks and bin_thanks

undo
required
string (Undo)
Array of objects (Seasonal)

Seasonal hints of the main item that hold today, with the link to the calendar of the local waste authority; empty outside their windows

Array
text
required
string (Text)
until
required
string <date> (Until)

Last day the hint holds (Europe/Berlin)

until_text
required
string (Until Text)

'Gilt bis 9. Januar 2027'

required
object (AnswerSourceOut)
url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
required
Calendar Url (string) or Calendar Url (null) (Calendar Url)

Official calendar or app of the local waste authority with the dates; null if the region has none

Any of
string (Calendar Url)

Official calendar or app of the local waste authority with the dates; null if the region has none

required
Calendar Label (string) or Calendar Label (null) (Calendar Label)

'Termine im Abfallkalender'; null without calendar_url

Any of
string (Calendar Label)

'Termine im Abfallkalender'; null without calendar_url

AnswerSynonymsOut (object) or null

Other names of the main item; null without synonyms and for unknown

Any of
title
required
string (Title)

Title of the sheet, e.g. Auch so genannt

line
required
string (Line)

e.g. 'auch: Küchenschwamm, Mikrofasertuch': up to 3 synonyms in order while the line has at most 45 characters, at least one

more
required
integer (More)

How many synonyms are not in line (show '+n'); 0: none left

all
required
Array of strings (All)

Every synonym in the language asked (the item's own list first, then reviewed ones), none equal to the name

explanation
required
string (Explanation)

Why they are disposed of alike, with the first synonym; names the bin of the main item only when the region is known and the kind is not not_accepted

explanation_code
required
string (Explanation Code)
Enum: "same_item" "same_item_here"

same_item_here: the sentence names the bin of the place

explanation_template
required
string (Explanation Template)

explanation with the placeholder {term} in place of the first synonym: a client that knows the word the person searched for puts it there

Array of objects (Notices)
Array
code
required
string (Code)
Enum: "substituted" "profile_conflict" "compost"

compost: the item does not belong on the household's compost (the text says why)

text
required
string (Text)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Response samples

Content type
application/json
{
  • "region": {
    • "id": "string",
    • "name": "string",
    • "known": true,
    • "status": "requested",
    • "locality": "string",
    • "district": "string",
    • "district_key": "string",
    • "achievement_unlocked": "first_region",
    • "household_bins": [
      • {
        • "code": "restmuell",
        • "name": "string",
        • "color": "string",
        • "colors_hex": [
          • "string"
          ],
        • "plain_name": "string",
        • "kind": "string"
        }
      ]
    },
  • "result": {
    • "item": {
      • "id": "string",
      • "name": "string",
      • "icon": "string",
      • "generic": false,
      • "synonyms": [
        • "string"
        ]
      },
    • "bin": {
      • "code": "string",
      • "name": "string",
      • "color": "string",
      • "kind": "string",
      • "detail": "string",
      • "places": [
        • {
          • "name": "string"
          }
        ],
      • "slots": [
        • {
          • "code": "string",
          • "name": "string",
          • "color": "string"
          }
        ]
      },
    • "trust": "string",
    • "hints": [
      • "string"
      ],
    • "sources": [
      • "string"
      ],
    • "substituted_from": [
      • "string"
      ],
    • "profile_conflict": false,
    • "slot": "string",
    • "why": {
      • "text": "string",
      • "source": "string"
      },
    • "seasonal": [
      • {
        • "text": "string",
        • "until": "2019-08-24",
        • "source": "string",
        • "calendar_url": "string"
        }
      ],
    • "covered_by": "string",
    • "compost": {
      • "suitability": "geeignet",
      • "offered": true,
      • "preferred": true,
      • "hint": "string",
      • "source": "string"
      },
    • "before_bin": {
      • "tip": {
        • "kind": "regrow",
        • "text": "string",
        • "source": "string"
        },
      • "offer": {
        • "kind": "weitergeben",
        • "name": "string",
        • "url": "string",
        • "hint": "string",
        • "source": "string"
        }
      },
    • "fact": {
      • "kind": "fakt",
      • "text": "string",
      • "source": "string"
      }
    },
  • "achievement_unlocked": "lookup_25",
  • "answer": {
    • "kind": "bins",
    • "certainty": "sure",
    • "split": true,
    • "headline": "string",
    • "headline_code": "goes_in",
    • "bins_text": "string",
    • "item_text": "string",
    • "help": "string",
    • "confirmed": {
      • "headline": "string",
      • "headline_code": "goes_in",
      • "item_text": "string"
      },
    • "rows": [
      • {
        • "item_id": "string",
        • "item": "string",
        • "role": "main",
        • "separate": true,
        • "bin_code": "string",
        • "bin": "string",
        • "bin_kind": "string",
        • "color_hex": "string",
        • "colors_hex": [
          • "string"
          ],
        • "slot": {
          • "code": "string",
          • "name": "string"
          },
        • "hints": [
          • "string"
          ]
        }
      ],
    • "reliability": {
      • "level": "basis",
      • "label": "string",
      • "text": "string",
      • "text_code": "basis",
      • "covered_by": "string",
      • "levels": [
        • {
          • "level": "basis",
          • "label": "string",
          • "text": "string"
          }
        ]
      },
    • "place_status": {
      • "pending": true,
      • "place": "string",
      • "text": "string",
      • "title": "string",
      • "detail": "string"
      },
    • "question": {
      • "kind": "yes_no",
      • "label": "string",
      • "text": "string",
      • "text_code": "condition",
      • "family": "string",
      • "options": [
        • {
          • "id": "string",
          • "label": "string",
          • "selected": true,
          • "confirms": true,
          • "resolve": {
            • "item_id": "string",
            • "part_item_ids": [
              • "string"
              ],
            • "answer_family": "string",
            • "answer": "yes",
            • "answer_first": true
            }
          }
        ],
      • "report": {
        • "text": "string",
        • "placeholder": "string",
        • "send_label": "string",
        • "confirm_label": "string",
        • "thanks": "string",
        • "feedback_kind": "missing_item"
        }
      },
    • "alternatives": {
      • "text": "string",
      • "options": [
        • {
          • "id": "string",
          • "label": "string",
          • "selected": true,
          • "confirms": true,
          • "resolve": {
            • "item_id": "string",
            • "part_item_ids": [
              • "string"
              ],
            • "answer_family": "string",
            • "answer": "yes",
            • "answer_first": true
            }
          }
        ]
      },
    • "compost": {
      • "suitability": "geeignet",
      • "label": "string",
      • "options": [
        • {
          • "id": "compost",
          • "label": "string",
          • "selected": true
          }
        ],
      • "headline": "string",
      • "headline_code": "compost_goes_on",
      • "bins_text": "string",
      • "row": {
        • "item_id": "string",
        • "item": "string",
        • "role": "main",
        • "separate": true,
        • "bin_code": "string",
        • "bin": "string",
        • "bin_kind": "string",
        • "color_hex": "string",
        • "colors_hex": [
          • "string"
          ],
        • "slot": {
          • "code": "string",
          • "name": "string"
          },
        • "hints": [
          • "string"
          ]
        },
      • "source": {
        • "url": "string",
        • "title": "string",
        • "host": "string"
        },
      • "reliability_label": "string",
      • "reliability_text": "string",
      • "warning": {
        • "title": "string",
        • "text": "string",
        • "fallback": "string"
        }
      },
    • "confirm": {
      • "item_question": "string",
      • "item_yes": "string",
      • "item_no": "string",
      • "item_thanks": "string",
      • "bin_question": "string",
      • "bin_yes": "string",
      • "bin_no": "string",
      • "bin_thanks": "string",
      • "thanks": "string",
      • "undo": "string"
      },
    • "seasonal": [
      • {
        • "text": "string",
        • "until": "2019-08-24",
        • "until_text": "string",
        • "source": {
          • "url": "string",
          • "title": "string",
          • "host": "string"
          },
        • "calendar_url": "string",
        • "calendar_label": "string"
        }
      ],
    • "synonyms": {
      • "title": "string",
      • "line": "string",
      • "more": 0,
      • "all": [
        • "string"
        ],
      • "explanation": "string",
      • "explanation_code": "same_item",
      • "explanation_template": "string"
      },
    • "notices": [
      • {
        • "code": "substituted",
        • "text": "string"
        }
      ],
    • "sources": [
      • {
        • "url": "string",
        • "title": "string",
        • "host": "string"
        }
      ],
    • "attribution": [
      • {
        • "code": "trashures",
        • "text": "string",
        • "url": "string"
        }
      ]
    },
  • "territory": "licensed"
}

Local news

Approved news of one district ("Vor Ort"). Outside the territory of the key: 403, or an empty list for a key with outside: baseline (news belong to the örE, there is no baseline).

Authorizations:
api_key
query Parameters
district_key
required
string (District Key) ^[0-9]{5}$

Kreis, five digits

Responses

Response Schema: application/json
Array
id
required
string (Id)
kind
required
string (Kind)
Enum: "mitteilung" "ort_neu" "regeln_aktualisiert"

mitteilung: Meldung des örE, ort_neu: für den Kreis liegen erstmals Regeln vor, regeln_aktualisiert: die Regeln wurden geprüft und aktualisiert

title
required
string (Title)
summary
required
string (Summary)
source_url
required
string (Source Url)

Official page the entry is based on

published_at
required
string <date-time> (Published At)
expires_at
required
string <date-time> (Expires At)
Municipality (string) or Municipality (null) (Municipality)

Gemeinde as text, no filter

Any of
string (Municipality)

Gemeinde as text, no filter

Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Response samples

Content type
application/json
[
  • {
    • "id": "string",
    • "kind": "mitteilung",
    • "title": "string",
    • "summary": "string",
    • "source_url": "string",
    • "municipality": "string",
    • "published_at": "2019-08-24T14:15:22Z",
    • "expires_at": "2019-08-24T14:15:22Z"
    }
]

Scan a photo

Photo + postal code -> item + bin, same recognition and rules as the Trashures app.

The photo is never stored. The scan counts against the monthly quota of the key; a scan without a result for the user (provider down, timeout) is given back. quota and achievement_unlocked are always null here.

Authorizations:
api_key
Request Body schema: application/json
required
image
required
string (Image) <= 10000000 characters

Base64 encoded JPEG or PNG, a data: URL prefix is allowed

postal_code
required
string (Postal Code) ^\d{5}$
language
string (Language)
Default: "de"
Enum: "de" "en"
Profile (object) or null
Any of
Array of Has Bins (strings) or Has Bins (null) (Has Bins)

Household bins the user has, e.g. ['restmuell', 'papier', 'verpackung']

Any of
Array
string
Housing (string) or Housing (null) (Housing)
Any of
string (Housing)
Enum: "haus" "wohnung"
Shared Bins (boolean) or Shared Bins (null) (Shared Bins)
Any of
boolean (Shared Bins)
Array of Compost (strings) or Compost (null) (Compost)

Compost forms of the household: null = not answered, [] = no compost, else any of garten, thermo, wurmkiste, bokashi

Any of
Array
string
Enum: "garten" "thermo" "wurmkiste" "bokashi"
Bin Colors (object) or Bin Colors (null) (Bin Colors)

Own colour of household bins where the household's bin differs from the rules of the place, e.g. {"papier": "blau"}. The result and answer show the bin in that colour and without the colour word in its name. null or {} = the colours of the rules

Any of
property name*
additional property
string
Enum: "grau" "schwarz" "braun" "blau" "gelb" "grün" "weiß" "rot" "orange" "lila"
Hint (string) or Hint (null) (Hint)

Optional user hint or correction

Any of
<= 200 characters
string (Hint) <= 200 characters

Optional user hint or correction

Responses

Response Schema: application/json
required
object (RegionOut)
id
required
string (Id)
name
required
string (Name)
known
required
boolean (Known)

False: region not researched yet, baseline rules are used

status
required
string (Status)
Enum: "requested" "research" "live" "verified" "official"

Place status in five steps: requested and research for an unknown district (research once its new-region issue exists; only GET /api/region checks that, scan, resolve and popular report requested), live for rules at vorlaeufig, verified at geprueft, official while a signed agreement with the örE is active

Locality (string) or Locality (null) (Locality)
Any of
string (Locality)
District (string) or District (null) (District)
Any of
string (District)
District Key (string) or District Key (null) (District Key)
Any of
string (District Key)
"first_region" (string) or Achievement Unlocked (null) (Achievement Unlocked)

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Any of
string ("first_region")

Always null: first_region comes with the second place of the account (GET /api/resolve and POST /api/scan). Kept so older apps keep parsing

Array of objects (Household Bins)

Only GET /api/region (and /v1/region): the household bins the place has, with name and colour from the rules, in the order restmuell, bio, papier, verpackung; a bin the örE does not have is missing. An unknown place gets the baseline bins for Germany. Empty in scan, resolve and popular responses

Array
code
required
string (Code)
Enum: "restmuell" "bio" "papier" "verpackung"
name
required
string (Name)

Name of the bin at this place, e.g. Grüne Papiertonne

required
Color (string) or Color (null) (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

Any of
string (Color)

Colour word from the rules, e.g. grün; several words with / are stripes

colors_hex
required
Array of strings (Colors Hex)

Swatch colours of the bin, same mapping as answer.rows[].colors_hex (the client computes no colour); empty without a colour

plain_name
required
string (Plain Name)

Name without a colour word, shown when the household gives the bin its own colour, the same name the answer then uses

kind
required
string (Kind)

tonne or sack

status
required
string (Status)
Enum: "recognized" "uncertain" "unknown"

uncertain: show question (with clarification, if set, as yes/no buttons) and alternatives before trusting the result; also set for a generic item (result.item.generic) and when an alternative ends in another bin here; unknown: offer /items search or a new photo with a hint

description
required
string (Description)
confidence
required
number (Confidence)

Self-reported by the model, not calibrated; for logging only

required
ResolutionOut (object) or null

None if the item was not recognized

Any of
required
object (ItemOut)
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

required
object (BinOut)
code
required
string (Code)
name
required
string (Name)

Short name without facts in parentheses

required
Color (string) or Color (null) (Color)
Any of
string (Color)
kind
required
string (Kind)
Detail (string) or Detail (null) (Detail)

One short line about the bin, e.g. the collection rhythm

Any of
string (Detail)

One short line about the bin, e.g. the collection rhythm

Array of objects (Places)

Sites of the bin, empty if not listed

Array
name
required
string (Name)

Name of the site, e.g. a recycling centre; the app builds a map search from it

Array of objects (Slots)

Openings of a container (glass colours), empty if it has only one

Array
code
required
string (Code)
name
required
string (Name)
Color (string) or Color (null) (Color)
Any of
string (Color)
trust
required
string (Trust)

basis | vorlaeufig | geprueft

hints
required
Array of strings (Hints)
sources
required
Array of strings (Sources)
substituted_from
required
Array of strings (Substituted From)

Bins that were not available and replaced

profile_conflict
boolean (Profile Conflict)
Default: false

True if the bin is not available here or the household lacks it and nothing replaces it

Slot (string) or Slot (null) (Slot)

Code of the slot in bin.slots the item goes into

Any of
string (Slot)

Code of the slot in bin.slots the item goes into

WhyOut (object) or null

Why the rule is as it is, with its source

Any of
text
required
string (Text)
source
required
string (Source)

URL backing the explanation; not part of sources, no effect on trust

Array of objects (Seasonal)

Hints that hold only between two fixed dates and hold today, e.g. the Christmas tree collection; empty outside their windows

Array
text
required
string (Text)
until
required
string <date> (Until)

Last day the hint holds (Europe/Berlin)

source
required
string (Source)
required
Calendar Url (string) or Calendar Url (null) (Calendar Url)

Official calendar of the local waste authority, if known

Any of
string (Calendar Url)

Official calendar of the local waste authority, if known

Covered By (string) or Covered By (null) (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

Any of
string (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

CompostOut (object) or null

Own compost next to the bin; null without compost forms in the profile (compost of the scan profile or of /api/resolve) or without a suitability for the item

Any of
suitability
required
string (Suitability)
Enum: "geeignet" "in_massen" "ungeeignet"

geeignet: good on the compost; in_massen: small amounts only; ungeeignet: not on the compost

offered
required
boolean (Offered)

True: the compost is a way for this item, show it next to the bin (answer.compost has the toggle). False: only the note, e.g. for meat; or the household has only a worm bin or bokashi

preferred
required
boolean (Preferred)

True: the compost is the suggestion and preselected; false: the bin is

source
required
string (Source)

URL backing the suitability (e.g. UBA); not part of sources, no effect on trust

Hint (string) or Hint (null) (Hint)

How ('In kleinen Mengen') or why not, in the language asked

Any of
string (Hint)

How ('In kleinen Mengen') or why not, in the language asked

BeforeBinOut (object) or null

What can be done before the bin: a sourced tip and an offer of the örE (offers in its rule file); null if there is neither, and in an uncertain scan

Any of
TipOut (object) or null
Any of
kind
required
string (Kind)
Enum: "regrow" "weiterverwerten" "weitergeben" "reparieren" "zurueckgeben" "pfand"

What to do instead of the bin: let it sprout, use it up, give it away, repair it, return it, deposit

text
required
string (Text)

One or two sentences in the language asked

source
required
string (Source)

URL backing every statement of the tip

OfferOut (object) or null
Any of
kind
required
string (Kind)
Enum: "weitergeben" "reparieren" "zurueckgeben"
name
required
string (Name)

Name of the place, e.g. the second-hand store of the örE

url
required
string (Url)

Page of the offer; no dates or opening hours in the answer, they go stale

source
required
string (Source)

Official page that says what it takes

Hint (string) or Hint (null) (Hint)

What it takes and how, in the language asked

Any of
string (Hint)

What it takes and how, in the language asked

FactOut (object) or null

One fact or myth about the item or its group, picked at random on every call; small note below the bin, never in place of the answer. Null if there is none. Only set on the main result of a recognized /api/scan and on /api/resolve, not on parts or tiles.

Any of
kind
required
string (Kind)
Enum: "fakt" "mythos" "wusstest_du"

fakt: sourced fact; mythos: a common myth with its correction; wusstest_du: a plain note

text
required
string (Text)
Source (string) or Source (null) (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

Any of
string (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

territory
required
string (Territory)
Enum: "licensed" "baseline"

licensed: the place lies in the territory of the key, the rules of its region apply. baseline: the place lies outside, the answer is the general rule for Germany and must be shown as such

Array of objects (Alternatives)

Other plausible items ('Meintest du ...?'). With a condition question the other variant comes first, also when the model did not name it

Array
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

Question (string) or Question (null) (Question)

Clarifying question (at most one per scan): the result depends on a condition the photo does not show, or the item is easy to confuse

Any of
string (Question)

Clarifying question (at most one per scan): the result depends on a condition the photo does not show, or the item is easy to confuse

ClarificationOut (object) or null

Set when question is a yes/no question about the item's condition: the item to resolve for each answer. None for other questions (answer them via alternatives)

Any of
kind
required
string (Kind)

Answer form; only yes_no so far

Value: "yes_no"
text
required
string (Text)

The question in the requested language, same text as question

family
required
string (Family)

Condition family of the taxonomy the question belongs to, e.g. pizzakarton

yes_item_id
required
string (Yes Item Id)

Item for the answer yes: call GET /api/resolve with it

no_item_id
required
string (No Item Id)

Item for the answer no: call GET /api/resolve with it

Array of objects (Parts)

Separable parts sorted differently

Array
required
object (ItemOut)
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

required
object (BinOut)
code
required
string (Code)
name
required
string (Name)

Short name without facts in parentheses

required
Color (string) or Color (null) (Color)
Any of
string (Color)
kind
required
string (Kind)
Detail (string) or Detail (null) (Detail)

One short line about the bin, e.g. the collection rhythm

Any of
string (Detail)

One short line about the bin, e.g. the collection rhythm

Array of objects (Places)

Sites of the bin, empty if not listed

Array
name
required
string (Name)

Name of the site, e.g. a recycling centre; the app builds a map search from it

Array of objects (Slots)

Openings of a container (glass colours), empty if it has only one

Array
code
required
string (Code)
name
required
string (Name)
Color (string) or Color (null) (Color)
Any of
string (Color)
trust
required
string (Trust)

basis | vorlaeufig | geprueft

hints
required
Array of strings (Hints)
sources
required
Array of strings (Sources)
substituted_from
required
Array of strings (Substituted From)

Bins that were not available and replaced

profile_conflict
boolean (Profile Conflict)
Default: false

True if the bin is not available here or the household lacks it and nothing replaces it

Slot (string) or Slot (null) (Slot)

Code of the slot in bin.slots the item goes into

Any of
string (Slot)

Code of the slot in bin.slots the item goes into

WhyOut (object) or null

Why the rule is as it is, with its source

Any of
text
required
string (Text)
source
required
string (Source)

URL backing the explanation; not part of sources, no effect on trust

Array of objects (Seasonal)

Hints that hold only between two fixed dates and hold today, e.g. the Christmas tree collection; empty outside their windows

Array
text
required
string (Text)
until
required
string <date> (Until)

Last day the hint holds (Europe/Berlin)

source
required
string (Source)
required
Calendar Url (string) or Calendar Url (null) (Calendar Url)

Official calendar of the local waste authority, if known

Any of
string (Calendar Url)

Official calendar of the local waste authority, if known

Covered By (string) or Covered By (null) (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

Any of
string (Covered By)

Wording on the örE page (first source) the item falls under when the örE does not name it explicitly; null if named explicitly or the rule is a baseline rule

CompostOut (object) or null

Own compost next to the bin; null without compost forms in the profile (compost of the scan profile or of /api/resolve) or without a suitability for the item

Any of
suitability
required
string (Suitability)
Enum: "geeignet" "in_massen" "ungeeignet"

geeignet: good on the compost; in_massen: small amounts only; ungeeignet: not on the compost

offered
required
boolean (Offered)

True: the compost is a way for this item, show it next to the bin (answer.compost has the toggle). False: only the note, e.g. for meat; or the household has only a worm bin or bokashi

preferred
required
boolean (Preferred)

True: the compost is the suggestion and preselected; false: the bin is

source
required
string (Source)

URL backing the suitability (e.g. UBA); not part of sources, no effect on trust

Hint (string) or Hint (null) (Hint)

How ('In kleinen Mengen') or why not, in the language asked

Any of
string (Hint)

How ('In kleinen Mengen') or why not, in the language asked

BeforeBinOut (object) or null

What can be done before the bin: a sourced tip and an offer of the örE (offers in its rule file); null if there is neither, and in an uncertain scan

Any of
TipOut (object) or null
Any of
kind
required
string (Kind)
Enum: "regrow" "weiterverwerten" "weitergeben" "reparieren" "zurueckgeben" "pfand"

What to do instead of the bin: let it sprout, use it up, give it away, repair it, return it, deposit

text
required
string (Text)

One or two sentences in the language asked

source
required
string (Source)

URL backing every statement of the tip

OfferOut (object) or null
Any of
kind
required
string (Kind)
Enum: "weitergeben" "reparieren" "zurueckgeben"
name
required
string (Name)

Name of the place, e.g. the second-hand store of the örE

url
required
string (Url)

Page of the offer; no dates or opening hours in the answer, they go stale

source
required
string (Source)

Official page that says what it takes

Hint (string) or Hint (null) (Hint)

What it takes and how, in the language asked

Any of
string (Hint)

What it takes and how, in the language asked

FactOut (object) or null

One fact or myth about the item or its group, picked at random on every call; small note below the bin, never in place of the answer. Null if there is none. Only set on the main result of a recognized /api/scan and on /api/resolve, not on parts or tiles.

Any of
kind
required
string (Kind)
Enum: "fakt" "mythos" "wusstest_du"

fakt: sourced fact; mythos: a common myth with its correction; wusstest_du: a plain note

text
required
string (Text)
Source (string) or Source (null) (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

Any of
string (Source)

URL backing the note; always set for fakt and mythos, optional for wusstest_du

Scan Id (string) or Scan Id (null) (Scan Id)

Random id of this scan for feedback and deletion (keep it on the device); None if the scan log is switched off or failed

Any of
string (Scan Id)

Random id of this scan for feedback and deletion (keep it on the device); None if the scan log is switched off or failed

photo_stored
boolean (Photo Stored)
Default: false

True if the photo was kept (only with store_photo)

QuotaOut (object) or null

The account's scan quota after this scan

Any of
tier
required
string (Tier)
Enum: "guest" "registered"
required
Remaining (integer) or Remaining (null) (Remaining)

Scans left in the current window; None = no limit

Any of
integer (Remaining)

Scans left in the current window; None = no limit

required
Resets At (string) or Resets At (null) (Resets At)

ISO 8601 (UTC) when the window resets: guests 24 h after their first scan, registered accounts at local midnight; None if no limit or the guest window has not started

Any of
string (Resets At)

ISO 8601 (UTC) when the window resets: guests 24 h after their first scan, registered accounts at local midnight; None if no limit or the guest window has not started

Limit (integer) or Limit (null) (Limit)

Scans per window of this tier ('noch 2 von 3'); None = no limit

Any of
integer (Limit)

Scans per window of this tier ('noch 2 von 3'); None = no limit

BBoxOut (object) or null

Box around the recognized item in the photo the app sent (after EXIF rotation), for a soft highlight. None if the feature is off (SCAN_BBOX), the model gave no usable box or the box covers nearly the whole photo. Describes the photo, not the rule; never stored.

Any of
x
required
number (X) [ 0 .. 1 ]

Left edge

y
required
number (Y) [ 0 .. 1 ]

Top edge

w
required
number (W) [ 0 .. 1 ]

Width

h
required
number (H) [ 0 .. 1 ]

Height

Achievement Unlocked (string) or Achievement Unlocked (null) (Achievement Unlocked)

Achievement unlocked by this result for a registered account: lookup_25 Nachschlagewerk, first_region Ortsentdecker:in (second place), places_3 Ortskundige:r, places_10 Weltenbummler:in; scouts: hazardous_scout Schadstoff-Scout, electrical_scout Elektro-Scout; Mystery: parts_split Zerlegekünstler:in, special_bin Sonderfall; seasonal: season_christmas_tree Oh Tannenbaum, season_new_year Guten Rutsch; bin tiers: bin_<1..5> at 1, 5, 10, 50, 100 items of the bin; streak: streak at 1, 2, 3, 7, 14, 30 days in a row; only the first time. If one result unlocks several, this is the first, GET /api/me lists all

Any of
string (Achievement Unlocked)
Enum: "lookup_25" "first_region" "places_3" "places_10" "season_christmas_tree" "season_new_year" "hazardous_scout" "electrical_scout" "parts_split" "special_bin" "bin_restmuell_1" "bin_restmuell_2" "bin_restmuell_3" "bin_restmuell_4" "bin_restmuell_5" "bin_bio_1" "bin_bio_2" "bin_bio_3" "bin_bio_4" "bin_bio_5" "bin_papier_1" "bin_papier_2" "bin_papier_3" "bin_papier_4" "bin_papier_5" "bin_verpackung_1" "bin_verpackung_2" "bin_verpackung_3" "bin_verpackung_4" "bin_verpackung_5" "bin_glas_1" "bin_glas_2" "bin_glas_3" "bin_glas_4" "bin_glas_5" "bin_kompost_1" "bin_kompost_2" "bin_kompost_3" "bin_kompost_4" "bin_kompost_5" "streak_1" "streak_2" "streak_3" "streak_7" "streak_14" "streak_30"

Achievement unlocked by this result for a registered account: lookup_25 Nachschlagewerk, first_region Ortsentdecker:in (second place), places_3 Ortskundige:r, places_10 Weltenbummler:in; scouts: hazardous_scout Schadstoff-Scout, electrical_scout Elektro-Scout; Mystery: parts_split Zerlegekünstler:in, special_bin Sonderfall; seasonal: season_christmas_tree Oh Tannenbaum, season_new_year Guten Rutsch; bin tiers: bin_<1..5> at 1, 5, 10, 50, 100 items of the bin; streak: streak at 1, 2, 3, 7, 14, 30 days in a row; only the first time. If one result unlocks several, this is the first, GET /api/me lists all

AnswerOut (object) or null

The finished answer built from the other fields: headline, bins, one row per item and part, certainty, the open question with the resolve parameters of each option, reliability, status of the place, sources with titles and the notices a client has to show. Texts in language, each with its code. Always set by this API version; the other fields stay as they are

Any of
kind
required
string (Kind)
Enum: "bins" "not_accepted" "unknown"

bins: the item goes into the bins of rows; not_accepted: the local waste authority does not accept it (bin kind extern), bins_text says where it goes instead; unknown: no item

required
Certainty (string) or Certainty (null) (Certainty)

probable: the scan is uncertain, question is open; suggestion: a catch-all by material was recognized, show it as a suggestion; null for kind unknown

Any of
string (Certainty)
Enum: "sure" "probable" "suggestion"

probable: the scan is uncertain, question is open; suggestion: a catch-all by material was recognized, show it as a suggestion; null for kind unknown

split
required
boolean (Split)

True: parts go into other bins than the main item, the headline says so

headline
required
string (Headline)

e.g. 'Eierkarton gehört in', 'Getrennt entsorgen', ' nimmt das nicht an'

headline_code
required
string (Headline Code)
Enum: "goes_in" "probably_goes_in" "dispose_separately" "probably_dispose_separately" "not_accepted_by" "not_accepted_here" "not_recognized"
bins_text
required
string (Bins Text)

The bins as one line, main bin first, each once ('Papiertonne / Altpapier und Biotonne'); 'Stattdessen: ' for not_accepted; empty for unknown

required
Item Text (string) or Item Text (null) (Item Text)

The main item as a line of its own, with ', wahrscheinlich' while the answer is not sure; for layouts whose headline does not name the item (not_accepted). Null for unknown

Any of
string (Item Text)

The main item as a line of its own, with ', wahrscheinlich' while the answer is not sure; for layouts whose headline does not name the item (not_accepted). Null for unknown

required
Array of objects (Rows)

Main item first, then parts in another bin, then the other parts

Array
item_id
required
string (Item Id)
item
required
string (Item)
role
required
string (Role)
Enum: "main" "part"
separate
required
boolean (Separate)

True for a part that goes into another bin than the main item: show it next to the main item at the top. False for the main item and for parts in the same bin

bin_code
required
string (Bin Code)
bin
required
string (Bin)
bin_kind
required
string (Bin Kind)
required
Color Hex (string) or Color Hex (null) (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

Any of
string (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

colors_hex
required
Array of strings (Colors Hex)

All colours as stripes, e.g. the three openings of a glass container when the rule names no slot; one entry otherwise, empty without a colour

hints
required
Array of strings (Hints)
AnswerSlotOut (object) or null

Opening of the container the item goes into

Any of
code
required
string (Code)
name
required
string (Name)
required
AnswerReliabilityOut (object) or null

Null for kind unknown

Any of
level
required
string (Level)
Enum: "basis" "vorlaeufig" "geprueft"

Trust level of the rule (result.trust); an unknown value counts as basis

label
required
string (Label)

The level in a word, e.g. Allgemein, Vorläufig, Offizielle Quelle

text
required
string (Text)

What the level means for this answer

text_code
required
string (Text Code)
Enum: "basis" "basis_known" "vorlaeufig" "geprueft"

basis_known: baseline rule in a researched place, the local authority says nothing on the item

required
Array of objects (Levels)

All levels with their general explanation, for a legend

Array
level
required
string (Level)
Enum: "basis" "vorlaeufig" "geprueft"
label
required
string (Label)
text
required
string (Text)
Covered By (string) or Covered By (null) (Covered By)

Sentence for result.covered_by: the item is not named by the authority, it falls under a wording of its page

Any of
string (Covered By)

Sentence for result.covered_by: the item is not named by the authority, it falls under a wording of its page

required
object (AnswerPlaceStatusOut)
pending
required
boolean (Pending)

True: the place is not researched yet, the baseline rule for Germany applies

place
required
string (Place)

Name of the place as the person knows it (locality, else district, else region)

Text (string) or Text (null) (Text)

One status line; null for a researched place

Any of
string (Text)

One status line; null for a researched place

Title (string) or Title (null) (Title)
Any of
string (Title)
Detail (string) or Detail (null) (Detail)
Any of
string (Detail)
required
Array of objects (Sources)

Sources of the main rule (result.sources) with a readable title

Array
url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
required
Array of objects (Attribution)

Notices a client has to show next to the answer

Array
code
required
string (Code)
Enum: "trashures" "openstreetmap" "openplz" "destatis"
text
required
string (Text)
url
required
string (Url)
Help (string) or Help (null) (Help)

What to try next; only for kind unknown

Any of
string (Help)

What to try next; only for kind unknown

AnswerConfirmedOut (object) or null

Set while certainty is not sure: the lines after the person confirmed the shown item

Any of
headline
required
string (Headline)
headline_code
required
string (Headline Code)
Enum: "goes_in" "probably_goes_in" "dispose_separately" "probably_dispose_separately" "not_accepted_by" "not_accepted_here" "not_recognized"
item_text
required
string (Item Text)
AnswerQuestionOut (object) or null
Any of
kind
required
string (Kind)
Enum: "yes_no" "choice"
label
required
string (Label)

Small line above the question, e.g. Kurze Frage

text
required
string (Text)
text_code
required
string (Text Code)
Enum: "condition" "confusion" "generic_suggestion" "which_one"

condition: yes/no question of a condition family; confusion: look-alike items; generic_suggestion: a catch-all was recognized; which_one: no question in the data

required
Array of objects (Options)

Empty: only the question, no control

Array
id
required
string (Id)

yes | no for a yes/no question, else the item id

label
required
string (Label)
selected
required
boolean (Selected)

Preselected: the recognized item of a choice; never an answer of a yes/no question

confirms
required
boolean (Confirms)

The option is the item already shown: no request is needed, show answer.confirmed instead (nothing is counted then)

required
object (AnswerResolveOut)

Query parameters of GET /api/resolve for one option, next to the ones the client knows itself (postal_code, language, has_bins, location_source).

item_id
required
string (Item Id)
part_item_ids
Array of strings (Part Item Ids)

The parts of the scan: with them the answer of resolve keeps the rows of the parts

Answer Family (string) or Answer Family (null) (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Any of
string (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Answer (string) or Answer (null) (Answer)
Any of
string (Answer)
Enum: "yes" "no"
Answer First (boolean) or Answer First (null) (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Any of
boolean (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Family (string) or Family (null) (Family)

Condition family of a yes/no question

Any of
string (Family)

Condition family of a yes/no question

AnswerReportOut (object) or null
Any of
text
required
string (Text)
placeholder
required
string (Placeholder)
send_label
required
string (Send Label)
confirm_label
required
string (Confirm Label)

Label of the button that confirms the suggestion without a request

thanks
required
string (Thanks)
feedback_kind
required
string (Feedback Kind)

POST /api/scan/{scan_id}/feedback with this kind and the text as note

Value: "missing_item"
AnswerAlternativesOut (object) or null

'Meintest du ...?' of a scan without an open question (sure or unknown); null while question is set, for a lookup and without alternatives

Any of
text
required
string (Text)
required
Array of objects (Options)

Each with the parameters of GET /api/resolve; none is preselected

Array
id
required
string (Id)

yes | no for a yes/no question, else the item id

label
required
string (Label)
selected
required
boolean (Selected)

Preselected: the recognized item of a choice; never an answer of a yes/no question

confirms
required
boolean (Confirms)

The option is the item already shown: no request is needed, show answer.confirmed instead (nothing is counted then)

required
object (AnswerResolveOut)

Query parameters of GET /api/resolve for one option, next to the ones the client knows itself (postal_code, language, has_bins, location_source).

item_id
required
string (Item Id)
part_item_ids
Array of strings (Part Item Ids)

The parts of the scan: with them the answer of resolve keeps the rows of the parts

Answer Family (string) or Answer Family (null) (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Any of
string (Answer Family)

Only for a yes/no question: counts the answer. Like answer and answer_first: leave a parameter out when it is null here

Answer (string) or Answer (null) (Answer)
Any of
string (Answer)
Enum: "yes" "no"
Answer First (boolean) or Answer First (null) (Answer First)

Send true for the first answer to this question, false when the person changes the answer

Any of
boolean (Answer First)

Send true for the first answer to this question, false when the person changes the answer

AnswerCompostOut (object) or null

Own compost next to the bin: only for a sure answer whose result.compost.offered is true

Any of
suitability
required
string (Suitability)
Enum: "geeignet" "in_massen"

Like result.compost.suitability

label
required
string (Label)

Line above the toggle, e.g. Wohin damit?

required
Array of objects (Options)

Two options: compost, then the bin

Array
id
required
string (Id)
Enum: "compost" "bin"
label
required
string (Label)

Kompost, or the name of the bin of rows[0]

selected
required
boolean (Selected)

Preselected: the suggested way (a client may replace it by the person's own choice for this item)

headline
required
string (Headline)

e.g. 'Kaffeesatz gehört auf den Kompost'

bins_text
required
string (Bins Text)

Eigener Kompost

required
object (AnswerRowOut)

The main item on the compost (bin_code and bin_kind kompost)

item_id
required
string (Item Id)
item
required
string (Item)
role
required
string (Role)
Enum: "main" "part"
separate
required
boolean (Separate)

True for a part that goes into another bin than the main item: show it next to the main item at the top. False for the main item and for parts in the same bin

bin_code
required
string (Bin Code)
bin
required
string (Bin)
bin_kind
required
string (Bin Kind)
required
Color Hex (string) or Color Hex (null) (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

Any of
string (Color Hex)

Colour of the bin as a hex value, of the slot the item goes into if the bin has slots; null if the bin has no colour (e.g. a recycling centre) and for a bin of the kind extern

colors_hex
required
Array of strings (Colors Hex)

All colours as stripes, e.g. the three openings of a glass container when the rule names no slot; one entry otherwise, empty without a colour

hints
required
Array of strings (Hints)
AnswerSlotOut (object) or null

Opening of the container the item goes into

Any of
code
required
string (Code)
name
required
string (Name)
required
object (AnswerSourceOut)

Source of the suitability (e.g. UBA)

url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
reliability_label
required
string (Reliability Label)

With compost selected: in place of reliability.label (the trust level belongs to the bin's rule)

reliability_text
required
string (Reliability Text)

With compost selected: in place of reliability.text

headline_code
string (Headline Code)
Default: "compost_goes_on"
Enum: "compost_goes_on" "compost_goes_on_limited"

compost_goes_on_limited: small amounts only, see warning

AnswerCompostWarningOut (object) or null

Only for in_massen: a warning box on the compost side (the reason is not in row.hints then)

Any of
title
required
string (Title)

e.g. Nur wenig

fallback
required
string (Fallback)

e.g. 'Im Zweifel: Biotonne', the bin of the answer

Text (string) or Text (null) (Text)

Why, from the rules (e.g. fungicides on peels); null without

Any of
string (Text)

Why, from the rules (e.g. fungicides on peels); null without

AnswerConfirmOut (object) or null

Texts to confirm item and bins; set whenever there is an item, the client shows them only for a scan (with scan_id), not for a text search. Only the app's /api has the endpoint to send a confirmation; /v1 clients ignore it

Any of
item_question
required
string (Item Question)

Kept for older clients (two steps); not shown any more

item_yes
required
string (Item Yes)
item_no
required
string (Item No)
item_thanks
required
string (Item Thanks)
bin_question
required
string (Bin Question)
bin_yes
required
string (Bin Yes)
bin_no
required
string (Bin No)
bin_thanks
required
string (Bin Thanks)
thanks
required
string (Thanks)

Kept for older clients; now item_thanks and bin_thanks

undo
required
string (Undo)
Array of objects (Seasonal)

Seasonal hints of the main item that hold today, with the link to the calendar of the local waste authority; empty outside their windows

Array
text
required
string (Text)
until
required
string <date> (Until)

Last day the hint holds (Europe/Berlin)

until_text
required
string (Until Text)

'Gilt bis 9. Januar 2027'

required
object (AnswerSourceOut)
url
required
string (Url)
title
required
string (Title)
host
required
string (Host)
required
Calendar Url (string) or Calendar Url (null) (Calendar Url)

Official calendar or app of the local waste authority with the dates; null if the region has none

Any of
string (Calendar Url)

Official calendar or app of the local waste authority with the dates; null if the region has none

required
Calendar Label (string) or Calendar Label (null) (Calendar Label)

'Termine im Abfallkalender'; null without calendar_url

Any of
string (Calendar Label)

'Termine im Abfallkalender'; null without calendar_url

AnswerSynonymsOut (object) or null

Other names of the main item; null without synonyms and for unknown

Any of
title
required
string (Title)

Title of the sheet, e.g. Auch so genannt

line
required
string (Line)

e.g. 'auch: Küchenschwamm, Mikrofasertuch': up to 3 synonyms in order while the line has at most 45 characters, at least one

more
required
integer (More)

How many synonyms are not in line (show '+n'); 0: none left

all
required
Array of strings (All)

Every synonym in the language asked (the item's own list first, then reviewed ones), none equal to the name

explanation
required
string (Explanation)

Why they are disposed of alike, with the first synonym; names the bin of the main item only when the region is known and the kind is not not_accepted

explanation_code
required
string (Explanation Code)
Enum: "same_item" "same_item_here"

same_item_here: the sentence names the bin of the place

explanation_template
required
string (Explanation Template)

explanation with the placeholder {term} in place of the first synonym: a client that knows the word the person searched for puts it there

Array of objects (Notices)
Array
code
required
string (Code)
Enum: "substituted" "profile_conflict" "compost"

compost: the item does not belong on the household's compost (the text says why)

text
required
string (Text)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
Array of objects (Detail)
Array
required
Array of strings or integers (Location)
Array
Any of
string
msg
required
string (Message)
type
required
string (Error Type)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Request samples

Content type
application/json
{
  • "image": "string",
  • "postal_code": "string",
  • "language": "de",
  • "profile": {
    • "has_bins": [
      • "string"
      ],
    • "housing": "haus",
    • "shared_bins": true,
    • "compost": [
      • "garten"
      ],
    • "bin_colors": {
      • "property1": "grau",
      • "property2": "grau"
      }
    },
  • "hint": "string"
}

Response samples

Content type
application/json
{
  • "region": {
    • "id": "string",
    • "name": "string",
    • "known": true,
    • "status": "requested",
    • "locality": "string",
    • "district": "string",
    • "district_key": "string",
    • "achievement_unlocked": "first_region",
    • "household_bins": [
      • {
        • "code": "restmuell",
        • "name": "string",
        • "color": "string",
        • "colors_hex": [
          • "string"
          ],
        • "plain_name": "string",
        • "kind": "string"
        }
      ]
    },
  • "status": "recognized",
  • "description": "string",
  • "confidence": 0,
  • "result": {
    • "item": {
      • "id": "string",
      • "name": "string",
      • "icon": "string",
      • "generic": false,
      • "synonyms": [
        • "string"
        ]
      },
    • "bin": {
      • "code": "string",
      • "name": "string",
      • "color": "string",
      • "kind": "string",
      • "detail": "string",
      • "places": [
        • {
          • "name": "string"
          }
        ],
      • "slots": [
        • {
          • "code": "string",
          • "name": "string",
          • "color": "string"
          }
        ]
      },
    • "trust": "string",
    • "hints": [
      • "string"
      ],
    • "sources": [
      • "string"
      ],
    • "substituted_from": [
      • "string"
      ],
    • "profile_conflict": false,
    • "slot": "string",
    • "why": {
      • "text": "string",
      • "source": "string"
      },
    • "seasonal": [
      • {
        • "text": "string",
        • "until": "2019-08-24",
        • "source": "string",
        • "calendar_url": "string"
        }
      ],
    • "covered_by": "string",
    • "compost": {
      • "suitability": "geeignet",
      • "offered": true,
      • "preferred": true,
      • "hint": "string",
      • "source": "string"
      },
    • "before_bin": {
      • "tip": {
        • "kind": "regrow",
        • "text": "string",
        • "source": "string"
        },
      • "offer": {
        • "kind": "weitergeben",
        • "name": "string",
        • "url": "string",
        • "hint": "string",
        • "source": "string"
        }
      },
    • "fact": {
      • "kind": "fakt",
      • "text": "string",
      • "source": "string"
      }
    },
  • "alternatives": [
    • {
      • "id": "string",
      • "name": "string",
      • "icon": "string",
      • "generic": false,
      • "synonyms": [
        • "string"
        ]
      }
    ],
  • "question": "string",
  • "clarification": {
    • "kind": "yes_no",
    • "text": "string",
    • "family": "string",
    • "yes_item_id": "string",
    • "no_item_id": "string"
    },
  • "parts": [
    • {
      • "item": {
        • "id": "string",
        • "name": "string",
        • "icon": "string",
        • "generic": false,
        • "synonyms": [
          • "string"
          ]
        },
      • "bin": {
        • "code": "string",
        • "name": "string",
        • "color": "string",
        • "kind": "string",
        • "detail": "string",
        • "places": [
          • {
            • "name": "string"
            }
          ],
        • "slots": [
          • {
            • "code": "string",
            • "name": "string",
            • "color": "string"
            }
          ]
        },
      • "trust": "string",
      • "hints": [
        • "string"
        ],
      • "sources": [
        • "string"
        ],
      • "substituted_from": [
        • "string"
        ],
      • "profile_conflict": false,
      • "slot": "string",
      • "why": {
        • "text": "string",
        • "source": "string"
        },
      • "seasonal": [
        • {
          • "text": "string",
          • "until": "2019-08-24",
          • "source": "string",
          • "calendar_url": "string"
          }
        ],
      • "covered_by": "string",
      • "compost": {
        • "suitability": "geeignet",
        • "offered": true,
        • "preferred": true,
        • "hint": "string",
        • "source": "string"
        },
      • "before_bin": {
        • "tip": {
          • "kind": "regrow",
          • "text": "string",
          • "source": "string"
          },
        • "offer": {
          • "kind": "weitergeben",
          • "name": "string",
          • "url": "string",
          • "hint": "string",
          • "source": "string"
          }
        },
      • "fact": {
        • "kind": "fakt",
        • "text": "string",
        • "source": "string"
        }
      }
    ],
  • "scan_id": "string",
  • "photo_stored": false,
  • "quota": {
    • "tier": "guest",
    • "remaining": 0,
    • "limit": 0,
    • "resets_at": "string"
    },
  • "bbox": {
    • "x": 1,
    • "y": 1,
    • "w": 1,
    • "h": 1
    },
  • "achievement_unlocked": "lookup_25",
  • "answer": {
    • "kind": "bins",
    • "certainty": "sure",
    • "split": true,
    • "headline": "string",
    • "headline_code": "goes_in",
    • "bins_text": "string",
    • "item_text": "string",
    • "help": "string",
    • "confirmed": {
      • "headline": "string",
      • "headline_code": "goes_in",
      • "item_text": "string"
      },
    • "rows": [
      • {
        • "item_id": "string",
        • "item": "string",
        • "role": "main",
        • "separate": true,
        • "bin_code": "string",
        • "bin": "string",
        • "bin_kind": "string",
        • "color_hex": "string",
        • "colors_hex": [
          • "string"
          ],
        • "slot": {
          • "code": "string",
          • "name": "string"
          },
        • "hints": [
          • "string"
          ]
        }
      ],
    • "reliability": {
      • "level": "basis",
      • "label": "string",
      • "text": "string",
      • "text_code": "basis",
      • "covered_by": "string",
      • "levels": [
        • {
          • "level": "basis",
          • "label": "string",
          • "text": "string"
          }
        ]
      },
    • "place_status": {
      • "pending": true,
      • "place": "string",
      • "text": "string",
      • "title": "string",
      • "detail": "string"
      },
    • "question": {
      • "kind": "yes_no",
      • "label": "string",
      • "text": "string",
      • "text_code": "condition",
      • "family": "string",
      • "options": [
        • {
          • "id": "string",
          • "label": "string",
          • "selected": true,
          • "confirms": true,
          • "resolve": {
            • "item_id": "string",
            • "part_item_ids": [
              • "string"
              ],
            • "answer_family": "string",
            • "answer": "yes",
            • "answer_first": true
            }
          }
        ],
      • "report": {
        • "text": "string",
        • "placeholder": "string",
        • "send_label": "string",
        • "confirm_label": "string",
        • "thanks": "string",
        • "feedback_kind": "missing_item"
        }
      },
    • "alternatives": {
      • "text": "string",
      • "options": [
        • {
          • "id": "string",
          • "label": "string",
          • "selected": true,
          • "confirms": true,
          • "resolve": {
            • "item_id": "string",
            • "part_item_ids": [
              • "string"
              ],
            • "answer_family": "string",
            • "answer": "yes",
            • "answer_first": true
            }
          }
        ]
      },
    • "compost": {
      • "suitability": "geeignet",
      • "label": "string",
      • "options": [
        • {
          • "id": "compost",
          • "label": "string",
          • "selected": true
          }
        ],
      • "headline": "string",
      • "headline_code": "compost_goes_on",
      • "bins_text": "string",
      • "row": {
        • "item_id": "string",
        • "item": "string",
        • "role": "main",
        • "separate": true,
        • "bin_code": "string",
        • "bin": "string",
        • "bin_kind": "string",
        • "color_hex": "string",
        • "colors_hex": [
          • "string"
          ],
        • "slot": {
          • "code": "string",
          • "name": "string"
          },
        • "hints": [
          • "string"
          ]
        },
      • "source": {
        • "url": "string",
        • "title": "string",
        • "host": "string"
        },
      • "reliability_label": "string",
      • "reliability_text": "string",
      • "warning": {
        • "title": "string",
        • "text": "string",
        • "fallback": "string"
        }
      },
    • "confirm": {
      • "item_question": "string",
      • "item_yes": "string",
      • "item_no": "string",
      • "item_thanks": "string",
      • "bin_question": "string",
      • "bin_yes": "string",
      • "bin_no": "string",
      • "bin_thanks": "string",
      • "thanks": "string",
      • "undo": "string"
      },
    • "seasonal": [
      • {
        • "text": "string",
        • "until": "2019-08-24",
        • "until_text": "string",
        • "source": {
          • "url": "string",
          • "title": "string",
          • "host": "string"
          },
        • "calendar_url": "string",
        • "calendar_label": "string"
        }
      ],
    • "synonyms": {
      • "title": "string",
      • "line": "string",
      • "more": 0,
      • "all": [
        • "string"
        ],
      • "explanation": "string",
      • "explanation_code": "same_item",
      • "explanation_template": "string"
      },
    • "notices": [
      • {
        • "code": "substituted",
        • "text": "string"
        }
      ],
    • "sources": [
      • {
        • "url": "string",
        • "title": "string",
        • "host": "string"
        }
      ],
    • "attribution": [
      • {
        • "code": "trashures",
        • "text": "string",
        • "url": "string"
        }
      ]
    },
  • "territory": "licensed"
}

Report a wrong result

Report a wrong result of a scan ("Stimmt nicht?"); part of the licence. No account is linked.

Authorizations:
api_key
path Parameters
scan_id
required
string (Scan Id)
Request Body schema: application/json
required
kind
string (Kind)
Default: "wrong_item"
Enum: "wrong_item" "missing_item" "wrong_bin" "rule_outdated" "other"

wrong_item: the photo shows another item (exactly one of correct_item_id or item_term); missing_item: 'Nicht in der Liste', the item is not in the taxonomy (no correct_item_id, optional item_term); wrong_bin: the item belongs in another bin here (bin_shown and correct_bin required); rule_outdated: the rule for this place is outdated or differs (reason required); other: something else, the note says what (note required, optional bin_shown)

Correct Item Id (string) or Correct Item Id (null) (Correct Item Id)

Item id from GET /api/items that the photo really shows

Any of
string (Correct Item Id)

Item id from GET /api/items that the photo really shows

Item Term (string) or Item Term (null) (Item Term)

"Was ist es?": what the photo really shows in the person's words, when the search found nothing. Only wrong_item (instead of correct_item_id) and missing_item (besides the note). At most 60 characters after trimming (422 feedback_term_too_long); stored with e-mail addresses, links and phone numbers masked, shown to admins and in the GitHub issue; never logged. Empty or only spaces counts as not sent.

Any of
string (Item Term)

"Was ist es?": what the photo really shows in the person's words, when the search found nothing. Only wrong_item (instead of correct_item_id) and missing_item (besides the note). At most 60 characters after trimming (422 feedback_term_too_long); stored with e-mail addresses, links and phone numbers masked, shown to admins and in the GitHub issue; never logged. Empty or only spaces counts as not sent.

Note (string) or Note (null) (Note)

Short text, required for other. Stored with the scan and, with e-mail addresses, links and phone numbers masked, in the report that goes to the team (GitHub issue); never logged.

Any of
<= 200 characters
string (Note) <= 200 characters

Short text, required for other. Stored with the scan and, with e-mail addresses, links and phone numbers masked, in the report that goes to the team (GitHub issue); never logged.

Bin Shown (string) or Bin Shown (null) (Bin Shown)

Bin code the app showed (wrong_bin, rule_outdated, other)

Any of
<= 32 characters
string (Bin Shown) <= 32 characters ^[a-z0-9_]+$

Bin code the app showed (wrong_bin, rule_outdated, other)

Correct Bin (string) or Correct Bin (null) (Correct Bin)

wrong_bin: bin code of this region the item really belongs in

Any of
<= 32 characters
string (Correct Bin) <= 32 characters ^[a-z0-9_]+$

wrong_bin: bin code of this region the item really belongs in

Reason (string) or Reason (null) (Reason)

rule_outdated: bin_missing 'Ich habe diese Tonne nicht', new_bin 'Seit kurzem gibt es hier eine neue Tonne', district_differs 'Mein Ortsteil hat eine andere Abfuhr', other

Any of
string (Reason)
Enum: "bin_missing" "new_bin" "district_differs" "other"

rule_outdated: bin_missing 'Ich habe diese Tonne nicht', new_bin 'Seit kurzem gibt es hier eine neue Tonne', district_differs 'Mein Ortsteil hat eine andere Abfuhr', other

Source Url (string) or Source Url (null) (Source Url)

wrong_bin, rule_outdated: official page that shows the rule (https)

Any of
<= 500 characters
string (Source Url) <= 500 characters ^https://[^\s]+$

wrong_bin, rule_outdated: official page that shows the rule (https)

Shown Item Id (string) or Shown Item Id (null) (Shown Item Id)

wrong_bin, rule_outdated, other: item whose bin was shown, if the person switched to another item ('Meintest du ...?'); default: the recognized item

Any of
string (Shown Item Id)

wrong_bin, rule_outdated, other: item whose bin was shown, if the person switched to another item ('Meintest du ...?'); default: the recognized item

App Version (string) or App Version (null) (App Version)
Any of
<= 32 characters
string (App Version) <= 32 characters ^[0-9A-Za-z.+_-]+$

Responses

Response Schema: application/json
scan_id
required
string (Scan Id)
kind
required
string (Kind)
Enum: "wrong_item" "missing_item" "wrong_bin" "rule_outdated" "other"
required
ItemOut (object) or null

Only for wrong_item

Any of
id
required
string (Id)
name
required
string (Name)
Icon (string) or Icon (null) (Icon)

Lucide icon name for tiles, None if not set

Any of
string (Icon)

Lucide icon name for tiles, None if not set

generic
boolean (Generic)
Default: false

Catch-all by material and kind: a scan on it is always uncertain, show it as a suggestion and ask what the object is

synonyms
Array of strings (Synonyms)

Up to 3 synonyms in the language asked, without those equal to the name; a synonym that is part of the name stays ("Kaffeesatz" at "Kaffeesatz mit Filter"). Show them as "auch: ..."

photo_stored
required
boolean (Photo Stored)

True if the photo of this scan is kept for review

Achievement Unlocked (string) or Achievement Unlocked (null) (Achievement Unlocked)

first_feedback the first time a registered account sends a report or feedback, else scan_report (Mitdenker:in mit Blick) for its first report on a photo result, stored photo or not; GET /api/me lists all

Any of
string (Achievement Unlocked)
Enum: "first_feedback" "scan_report"

first_feedback the first time a registered account sends a report or feedback, else scan_report (Mitdenker:in mit Blick) for its first report on a photo result, stored photo or not; GET /api/me lists all

Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)
Response Schema: application/json
required
object (ErrorOut)
code
required
string (Code)

Stable error code for the client, e.g. recognition_rate_limited

message
required
string (Message)

Request samples

Content type
application/json
{
  • "kind": "wrong_item",
  • "correct_item_id": "string",
  • "item_term": "string",
  • "note": "string",
  • "bin_shown": "string",
  • "correct_bin": "string",
  • "reason": "bin_missing",
  • "source_url": "string",
  • "shown_item_id": "string",
  • "app_version": "string"
}

Response samples

Content type
application/json
{
  • "scan_id": "string",
  • "kind": "wrong_item",
  • "correct_item": {
    • "id": "string",
    • "name": "string",
    • "icon": "string",
    • "generic": false,
    • "synonyms": [
      • "string"
      ]
    },
  • "photo_stored": true,
  • "achievement_unlocked": "first_feedback"
}