Discover/Net API
live

Net APItbca.net.br ↗

Access Brazil's TBCA food composition database via API. Get nutritional profiles, statistical data, household measures, and regional foods for thousands of items.

Endpoint health
verified 5h ago
list_foods
list_food_types
list_biodiversity_regional_foods
list_institutional_foods
list_food_groups
7/8 passing latest checkself-healing
Endpoints
9
Updated
12d ago

What is the Net API?

The TBCA API exposes 9 endpoints covering the Tabela Brasileira de Composição de Alimentos, Brazil's national food composition database. You can search thousands of food items by name or code with list_foods, retrieve per-100g nutrient values and household measure breakdowns with get_food_nutritional_profile, and run component-based queries to rank foods by a specific nutrient using search_by_component. Regional biodiversity foods and institutional foods each have dedicated listing endpoints.

This call costs1 credit / call— charged only on success
Try it
Page number for pagination (1-based).
Search query for food name or code (e.g. 'arroz').
Filter by food group ID from list_food_groups (e.g. '65' for CEREAIS E DERIVADOS). Omitting returns all groups.
Filter by food type ID from list_food_types (e.g. '70' for PREPARO SIMPLES DO ALIMENTO). Omitting returns all types.
→ api.parse.bot/scraper/f3f96c01-69e8-48d9-8e26-b6765980f9d6/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/f3f96c01-69e8-48d9-8e26-b6765980f9d6/list_foods?page=1&query=arroz' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 9 totalmissing one? ·

Search for food items with filters and pagination. Returns a paginated list of foods matching the query, group, and type filters. Use list_food_groups and list_food_types to discover valid filter IDs. Paginates via integer page counter.

Input
ParamTypeDescription
pageintegerPage number for pagination (1-based).
querystringSearch query for food name or code (e.g. 'arroz').
group_idstringFilter by food group ID from list_food_groups (e.g. '65' for CEREAIS E DERIVADOS). Omitting returns all groups.
food_typestringFilter by food type ID from list_food_types (e.g. '70' for PREPARO SIMPLES DO ALIMENTO). Omitting returns all types.
Response
{
  "type": "object",
  "fields": {
    "foods": "array of food objects each containing code, name, scientific_name, group, brand, and detail_id",
    "total_pages": "integer total number of pages available"
  },
  "sample": {
    "data": {
      "foods": [
        {
          "code": "BRC0012A",
          "name": "Arroz, creme, cozido, s/ tempero, Brasil",
          "brand": "",
          "group": "Cereais e derivados",
          "detail_id": "n0REd3kv7e86D%2BViXWYUnQ%3D%3D=qVFrIUJyMsGsU0SmbrckEQ%3D%3D",
          "scientific_name": "Orysa sativa L."
        }
      ],
      "total_pages": 1
    },
    "status": "success"
  }
}

About the Net API

Searching and Filtering Foods

The list_foods endpoint accepts a free-text query (food name or code such as arroz), a group_id from list_food_groups, and a food_type from list_food_types. Results are paginated and each item in the foods array includes code, name, scientific_name, group, brand, and a detail_id used to fetch deeper data. list_food_groups and list_food_types return plain id/name arrays that act as the filter vocabulary for both list_foods and search_by_component.

Nutritional Profiles and Statistical Data

get_food_nutritional_profile takes a detail_id and returns a metadata object (código, grupo, tipo_de_alimento, nome_científico, descrição, name_en, name_es) plus a nutrients array. Each nutrient row has component, units, value_per_100g, and dynamic columns for each household measure defined for that food. The columns vary per item, so get_food_composition_household_measures (which accepts a food_code) is useful for understanding the measure names and weights before parsing those dynamic columns.

get_food_statistical_info surfaces the analytical depth of the database: for each nutrient component it returns desvio_padrão (standard deviation), valor_mínimo, valor_máximo, número_de_dados (data point count), plus a references field and a flag distinguishing analytical from calculated values. This is relevant for research applications where measurement uncertainty matters.

Specialty Food Lists and Component Search

list_biodiversity_regional_foods and list_institutional_foods expose two subsets of the database that are not reachable through list_foods. Regional/biodiversity foods use a cod_produto=XXXC format for detail_id, while institutional foods use the standard encrypted format with BRD-prefixed codes. search_by_component accepts a component in unit|TAGNAME pipe-delimited format (e.g. kJ|ENERGIA), an optional group_id, and an optional food_type, returning foods ranked by that nutrient's value_per_100g.

Reliability & maintenanceVerified

The Net API is a managed, monitored endpoint for tbca.net.br — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when tbca.net.br changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official tbca.net.br API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5h ago
Latest check
7/8 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Brazilian diet tracker that displays per-100g and household-portion nutrient values for thousands of foods.
  • Rank foods within a specific group (e.g. cereals) by energy or protein content using search_by_component.
  • Research regional and biodiversity foods native to Brazil via list_biodiversity_regional_foods for food security studies.
  • Generate nutrient comparison tables for institutional meal planning using list_institutional_foods and nutritional profiles.
  • Display standard deviation and data-point counts from get_food_statistical_info in scientific nutrition publications.
  • Build a household-measure converter by combining get_food_composition_household_measures with nutrient profile data.
  • Filter and export food composition data by group and type for academic food science databases.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does TBCA have an official developer API?+
TBCA (tbca.net.br) does not publish a documented public developer API. The data is available through the TBCA website maintained by UNICAMP, but there is no official REST API with documentation or keys for third-party use.
How does the `search_by_component` endpoint work, and what format does the `component` parameter require?+
You submit a POST request with a component value in unit|TAGNAME pipe-delimited format — for example kJ|ENERGIA. The tagname and unit must match identifiers used in the TBCA database; kJ|ENERGIA is a verified working value. You can optionally narrow results with group_id and food_type. The response returns foods sorted by value_per_100g for that nutrient, each with a detail_id you can pass to get_food_nutritional_profile.
Why do household measure columns in nutritional profiles vary between foods?+
Each food in TBCA can have a different set of household measures (e.g. 'colher de sopa', 'xícara', 'fatia'). The get_food_nutritional_profile response reflects these as dynamic columns on each nutrient row. To know the measure names and their gram weights before parsing those columns, call get_food_composition_household_measures with the food's code field first.
Does the API expose preparation method details or recipe-level ingredient breakdowns?+
Not currently. The API covers food-level nutritional profiles, statistical metadata, household measures, and component-based search, but does not expose recipe decomposition or step-by-step preparation data. You can fork this API on Parse and revise it to add an endpoint targeting any TBCA recipe or preparation detail pages.
Are there any quirks with `detail_id` values for regional foods versus standard foods?+
Yes. Foods returned by list_biodiversity_regional_foods use a cod_produto=XXXC string as their detail_id, which is a different format from the encrypted IDs returned by list_foods and list_institutional_foods. If you are iterating across multiple listing endpoints, you need to handle both formats when passing detail_id to profile or statistical endpoints.
Page content last updated . Spec covers 9 endpoints from tbca.net.br.
Related APIs in Food DiningSee all →
fdc.nal.usda.gov API
Search across thousands of foods to get detailed nutritional information, serving sizes, and ingredient data from USDA's comprehensive food database. Find nutrition facts for branded products, legacy foods, and foundation foods all in one place.
pnp.co.za API
Search for groceries, browse products by category, and discover current specials at Pick n Pay stores, while accessing detailed product information, store locations, and fresh produce availability all in one place.
fao.org API
Access data from fao.org.
portalcompraspublicas.com.br API
Search and access detailed information about public tenders, bids, and procurement documents from Brazilian municipalities and states. Retrieve tender items, clarification logs, winner details, and all related documentation to monitor and analyze public purchasing activity across Brazil.
beveragetradenetwork.com API
Search beverage industry brands, discover buying leads and supplier contacts, compare membership pricing, and browse a comprehensive company directory to grow your beverage business network. Access real-time competition results from beverage industry rankings to stay informed on market standings.
continente.pt API
Browse and retrieve product data from Continente.pt, Portugal's leading supermarket chain. Search by keyword, browse categories, fetch full product details including nutritional info, and access current promotions and new arrivals.
drnutrition.com API
Access data from drnutrition.com.
pncp.gov.br API
Search and retrieve detailed information about Brazil's public procurement contracts, including bidding results, price registries, and annual contracting plans from the official PNCP portal. Monitor government procurement activities by looking up specific contracts, procurement processes, and procurement records all in one place.