Products API
Define our Open Food Facts API endpoints. All REST methods such as GET, POST, PUT, UPDATE, DELETE can be stated in here.
Types
Functions
Link copied to clipboard
@GET(value = "contributor/{contributor}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "nutrient-level/{nutrient_level}.json" )
Content copied to clipboard
Link copied to clipboard
@GET
Content copied to clipboard
Link copied to clipboard
@GET(value = "/cgi/product_image_crop.pl" )
Content copied to clipboard
This method is to crop images server side
Link copied to clipboard
@GET(value = "state/to-be-completed/{page}.json?nocache=1" )
Content copied to clipboard
This method gives a list of incomplete products
Link copied to clipboard
@GET(value = "informer/{contributor}/state/to-be-completed/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "informer/{contributor}/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "api/v0/product/{barcode}.json?fields=ingredients" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "photographer/{contributor}/state/to-be-completed/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "/photographer/{contributor}/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "api/v0/product/{barcode}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "brand/{brand}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "category/{category}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "store/{store}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "api/v0/product/{barcode}.json?fields=images" )
Content copied to clipboard
Returns images for the current product
Link copied to clipboard
@GET(value = "additive/{Additive}.json" )
Content copied to clipboard
@GET(value = "additive/{additive}/{page}.json" )
Content copied to clipboard
call API service to return products using Additives
Link copied to clipboard
@GET(value = "allergen/{allergen}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "code/{Code}.json" )
Content copied to clipboard
@GET(value = "api/v0/search" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "brand/{brand}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "category/{category}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "city/{city}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "contributor/{contributor}/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "country/{country}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "entry-dates/{EntryDates}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "informer/{informer}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "ingredient/{ingredient}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "label/{label}.json" )
Content copied to clipboard
@GET(value = "label/{label}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "language/{language}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "last-edit-date/{LastEditDate}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "manufacturing-place/{manufacturing-place}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "nutrition-grade/{nutriscore}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "origin/{origin}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "packager-code/{packager_code}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "packaging/{packaging}.json" )
Content copied to clipboard
@GET(value = "packaging/{packaging}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "period-after-opening/{PeriodAfterOpening}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "photographer/{Photographer}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "purchase-place/{purchasePlace}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "state/{state}.json" )
Content copied to clipboard
@GET(value = "state/{State}/{page}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "store/{store}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "trace/{trace}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "unknown-nutrient/{UnknownNutrient}.json" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "cgi/suggest.pl" )
Content copied to clipboard
Link copied to clipboard
@GET
Content copied to clipboard
This method gives the news in all languages
Link copied to clipboard
@GET(value = "contributor/{contributor}/state/to-be-completed/{page}.json?nocache=1" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "/1.json?fields=null" )
Content copied to clipboard
This method is used to get the number of products on Open X Facts
Link copied to clipboard
@GET(value = "/cgi/ingredients.pl?process_image=1&ocr_engine=google_cloud_vision" )
Content copied to clipboard
Link copied to clipboard
@Multipart
@POST(value = "/cgi/product_image_upload.pl" )
Content copied to clipboard
Link copied to clipboard
@FormUrlEncoded
@POST(value = "cgi/product_jqm2.pl" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "cgi/search.pl?search_simple=1&json=1&action=process" )
Content copied to clipboard
Link copied to clipboard
@GET(value = "/cgi/product_image_unselect.pl" )
Content copied to clipboard