Data Access and API

Introduction

Our API is free to use and does not require authentication. In general endpoints follow the same structure as URLs on the site with the addition of .json or .csv appended to them. For example transparentfarms.org/es/facilities?query=farm is accessible via the API at transparentfarms.org/es/facilities.json?query=farm or transparentfarms.org/es/facilities.csv?query=farm.

Need help accessing the data? Contact us for assistance.

Facilities

Facilities Index

List all facilities.

GET
transparentfarms.org/es/facilities.json

Parameters

classifications[]
Optional
Allowed values of Granja Acuicultura GranjaAvícolaIntensiva GranjaPorcinaIntensiva GranjaPorcinaIntensivaDeCerdas .

Including a parent classification (eg Slaughterhouse) will include all facilities that match child classifications.
country[]
Optional
Allowed values of Extremadura Aragón Andalucía Castilla y León Castilla-La Mancha Comunidad Valenciana La Rioja Euskadi Región de Murcia Comunidad de Madrid Catalunya Cataluña Navarra Canarias Cantabria País Vasco Illes Balears .
county[]
Optional
Allowed values of Badajoz Huesca Sevilla Almería Huelva Granada Málaga Córdoba Ávila Ourense Albacete Cuenca Salamanca Valladolid León Zamora Castelló Soria Segovia Castellón Burgos Teruel Valencia La Rioja Araba Zaragoza Murcia Madrid Guadalajara Lleida Lérida Tarragona Barcelona Girona Lugo Pontevedra Jaén Toledo Palencia Navarra Cáceres Ciudad Real A Coruña La Coruña Santa Cruz de Tenerife Alicante Cádiz Las Palmas Cantabria Gipuzkoa Vizcaya Asturias Bizkaia Illes Balears .
query
Optional
Filter the facility name, operator and address by a given search term.
operator
Optional
Filter the facility operator by a given search term.
operational
Optional
Allowed values of 0 (facilities that are not operational) or 1 (facilities that are operational).
limit
Optional
The number of results per page (defaults to 30).

Facilities Show

List a single facility.

GET
transparentfarms.org/es/facilities/[slug].json

Path Parameters

slug