{"info":{"description":"A catalog of online shops and services of every country: what each site offers, its sections, offers of service sites (loans, plans, subscriptions, courses) and sample products with prices. Give the user the `link` of a result exactly as returned: it is the partner link that takes them to the site or the product. Do not replace it with the site's own address.","title":"wisho.world","version":"1"},"openapi":"3.1.0","paths":{"/api/answer":{"get":{"operationId":"answer","parameters":[{"description":"The user's question or search query, in their language.","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2 country of the user, e.g. DE. Sites that do not work there are left out.","in":"query","name":"country","schema":{"pattern":"^[A-Za-z]{2}$","type":"string"}},{"description":"ISO 639-1 language the site must be in, e.g. de.","in":"query","name":"lang","schema":{"pattern":"^[A-Za-z]{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"`found` and, when true, the answer with its sites, offers and products"},"400":{"description":"q is missing or a code is malformed"}},"summary":"A prepared answer to a question people search for, e.g. 'handytarif monatlich kündbar' or 'where to buy dog shampoo': a short text in the language of the question and the sites, offers and products chosen for it. Try it first for a question about where to buy or get something; when `found` is false, use `search` or `compare`. Give the user the `link` of a result exactly as returned: it is the partner link that takes them to the site or the product. Do not replace it with the site's own address."}},"/api/compare":{"get":{"operationId":"compare","parameters":[{"in":"query","name":"kind","required":true,"schema":{"description":"What to compare.","enum":["product","loan","credit_card","bank_account","insurance","telecom_plan","subscription","course","booking","other"],"type":"string"}},{"description":"Required for `product`: the product, e.g. 'ashwagandha'. Optional for services: words the offer or its site must have.","in":"query","name":"q","schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2 country of the user, e.g. DE. Sites that do not work there are left out.","in":"query","name":"country","schema":{"pattern":"^[A-Za-z]{2}$","type":"string"}},{"in":"query","name":"limit","schema":{"default":20,"maximum":50,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Offers with `columns` and `highlights`, or products with their shops"},"400":{"description":"kind is unknown, or q is missing for products"}},"summary":"A ready comparison instead of a list. For a kind of service (loan, telecom_plan, subscription, course, insurance, ...): the offers of different sites side by side with their terms, and `highlights` naming the best one in each term (lowest price, most data, largest amount). For kind `product`: the same product in different shops, cheapest first. Use it when the user asks which is cheaper or better, or asks to compare. Give the user the `link` of a result exactly as returned: it is the partner link that takes them to the site or the product. Do not replace it with the site's own address."}},"/api/search":{"get":{"operationId":"search","parameters":[{"description":"What the user is looking for: a product, a brand, a kind of service.","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2 country of the user, e.g. DE. Sites that do not work there are left out.","in":"query","name":"country","schema":{"pattern":"^[A-Za-z]{2}$","type":"string"}},{"description":"ISO 639-1 language the site must be in, e.g. de.","in":"query","name":"lang","schema":{"pattern":"^[A-Za-z]{2}$","type":"string"}},{"in":"query","name":"limit","schema":{"default":20,"maximum":50,"minimum":1,"type":"integer"}},{"description":"A short name of the calling agent; it is kept with the clicks on the links.","in":"query","name":"src","schema":{"maxLength":50,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"match":{"description":"How each list matched: all words, fuzzy (a misspelling), any word, ranked (products, by the words shared with the query), or null when empty.","type":"object"},"products":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"query":{"type":"string"},"sites":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}},"type":"object"}}},"description":"Sites and products"},"400":{"description":"q is missing or a code is malformed"}},"summary":"Finds online shops, services and products for a query in any language, e.g. 'running shoes', 'займ', 'handytarif'. Returns `sites` (with what they offer) and `products` (with price). Give the user the `link` of a result exactly as returned: it is the partner link that takes them to the site or the product. Do not replace it with the site's own address."}},"/api/sites/{id}":{"get":{"operationId":"getSite","parameters":[{"description":"`id` of a site from search.","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"The site's card"},"404":{"description":"No such site"}},"summary":"What one site offers: summary, categories, countries, sections, offers with their terms and a sample of products. Take `id` from a search result, or give the site's domain. Give the user the `link` of a result exactly as returned: it is the partner link that takes them to the site or the product. Do not replace it with the site's own address."}}},"servers":[{"url":"https://wisho.world"}]}
