Line 31: |
Line 31: |
| | | |
| === Searching for products === | | === Searching for products === |
− | | + | ==== Advanced Search ==== |
− | ==== Parameters ==== | + | ===== Parameters ===== |
| * sort_by=unique_scans_n | | * sort_by=unique_scans_n |
| * page_size=50 (20 by default, 1000 at most) | | * page_size=50 (20 by default, 1000 at most) |
Line 38: |
Line 38: |
| * jqm=1 to search results pages on the web site to get results in a jquerymobile format. | | * jqm=1 to search results pages on the web site to get results in a jquerymobile format. |
| Example: <sup>(remember to do tests on .net)</sup> | | Example: <sup>(remember to do tests on .net)</sup> |
− | <pre> | + | <pre>http://world.openfoodfacts.org/cgi/search.pl?search_terms=coke&search_simple=1&jqm=1</pre> |
− | http://world.openfoodfacts.org/cgi/search.pl?search_terms=coke&search_simple=1&jqm=1 | + | <pre>http://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&json=1</pre> |
− | </pre> | + | ==== Combining Tags to get custom results ==== |
− | ==== Combining Tags ==== | |
| Combining tags works, letting you create thousands of APIs | | Combining tags works, letting you create thousands of APIs |
| * http://world.openfoodfacts.org/packager-code/emb-35069c/brand/sojasun.json | | * http://world.openfoodfacts.org/packager-code/emb-35069c/brand/sojasun.json |
− | ====Search results====
| |
− | * http://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&json=1
| |
| ====Labels==== | | ====Labels==== |
| =====List of labels===== | | =====List of labels===== |
Line 150: |
Line 147: |
| * http://world.openfoodfacts.org/packager-code/emb-35069c.json | | * http://world.openfoodfacts.org/packager-code/emb-35069c.json |
| * http://world.openfoodfacts.org/packager-code/emb-35069c.xml | | * http://world.openfoodfacts.org/packager-code/emb-35069c.xml |
| + | |
| == WRITE API Documentation == | | == WRITE API Documentation == |
| === Posting photos === | | === Posting photos === |