Changes

Jump to navigation Jump to search
1,547 bytes added ,  14:52, 7 October 2022
Created page with "== Getting taxonomies files == === Finding new opportunities for taxonomization === * A good trick to find candidates for taxonomization is * https://world.openfoodfacts.or..."
== Getting taxonomies files ==

=== Finding new opportunities for taxonomization ===
* A good trick to find candidates for taxonomization is
* https://world.openfoodfacts.org/categories?filter=-
* https://world.openfoodfacts.org/labels?filter=-
* https://world.openfoodfacts.org/origins?filter=-
* https://world.openfoodfacts.org/ingredients?filter=-
* Everything in italics is up for grabs

=== Taxonomies in JSON format ===
Every taxonomy is also available as a json on OpenFoodFacts. Use
* <code><nowiki>https://static.openfoodfacts.org/data/taxonomies/</nowiki><taxonomy name>.json</code>
* or <code><nowiki>https://static.openfoodfacts.org/data/taxonomies/</nowiki><taxonomy name>.full.json</code> to get additional properties

Example for categories:
* https://static.openfoodfacts.org/data/taxonomies/categories.json
* https://static.openfoodfacts.org/data/taxonomies/categories-full.json

=== Taxonomy API ===
We have a basic taxonomy API to get information about a taxonomy.

Eg. to get information about ''en:carrots'' entry in ''categories'' taxonomy:

https://world.openfoodfacts.org/api/v2/taxonomy?tagtype=categories&tags=en:carrots

you can add ''lc'' (language code) parameter to ask for more than one language. ''cc'' is used for country code.

Eg. to add french information on previous request:

[https://world.openfoodfacts.org/api/v2/taxonomy?tagtype=categories&tags=en:carrots&lc=en%2Cfr&cc=fr https://world.openfoodfacts.org/api/v2/taxonomy?tagtype=categories&tags=en:carrots&lc=en,fr&cc=fr]
[[Category:Taxonomies]]
4,561

edits

Navigation menu