# /anuies/programmes/search

`POST /api/anuies/programmes/search`

Price: 10 credits

List study programmes offered in Mexican higher education from the ANUIES statistical yearbook, one row per programme, campus, level and mode of study in a school year, with enrolment, first-year intake, places offered, applications, completers and degrees awarded, by sex

## How to use it

Covers every Mexican higher education institution, ANUIES member or not.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `cycle` (string) — School year (default: "2025-2026"; one of: "2025-2026", "2024-2025", "2023-2024", "2022-2023", "2021-2022", "2020-2021", "2019-2020", "2018-2019", "2017-2018", "2016-2017", "2015-2016", "2014-2015", "2013-2014", "2012-2013", "2011-2012", "2010-2011", "2009-2010", "2008-2009", "2007-2008", "2006-2007", "2005-2006", "2004-2005", "2003-2004", "2002-2003", "2001-2002", "2000-2001"; examples: "2025-2026", "2010-2011")
- `state` (string, nullable) — Mexican state (one of: "Aguascalientes", "Baja California", "Baja California Sur", "Campeche", "Chiapas", "Chihuahua", "Ciudad de México", "Coahuila", "Colima", "Durango", "Guanajuato", "Guerrero", "Hidalgo", "Jalisco", "México", "Michoacán", "Morelos", "Nayarit", "Nuevo León", "Oaxaca", "Puebla", "Querétaro", "Quintana Roo", "San Luis Potosí", "Sinaloa", "Sonora", "Tabasco", "Tamaulipas", "Tlaxcala", "Veracruz", "Yucatán", "Zacatecas"; examples: "Puebla")
- `municipality` (string, nullable) — Municipality name (examples: "Acajete"; minLength: 1)
- `sector` (string, nullable) — Public or private funding (one of: "PÚBLICO", "PARTICULAR"; examples: "PÚBLICO")
- `subsystem` (string, nullable) — Higher education subsystem (examples: "UNIVERSIDADES TECNOLÓGICAS"; minLength: 1)
- `is_anuies_member` (boolean, nullable) — Only ANUIES member institutions, or only non-members
- `level` (string, nullable) — Level of study (one of: "TÉCNICO SUPERIOR", "LICENCIATURA EN EDUCACIÓN NORMAL", "LICENCIATURA UNIVERSITARIA Y TECNOLÓGICA", "ESPECIALIDAD", "MAESTRÍA", "DOCTORADO"; examples: "DOCTORADO")
- `modality` (string, nullable) — Mode of study (one of: "ESCOLARIZADA", "NO ESCOLARIZADA", "MIXTA", "DUAL"; examples: "NO ESCOLARIZADA")
- `is_stem` (boolean, nullable) — Only STEM programmes, or only non-STEM programmes; cycles 2024-2025 and 2025-2026
- `broad_field` (string, nullable) — Broad field of study, as the chosen cycle lists it (one of: "Administración y negocios", "Agronomía y veterinaria", "Artes y humanidades", "Ciencias de la salud", "Ciencias naturales, matemáticas y estadística", "Ciencias sociales y derecho", "Educación", "Ingeniería, manufactura y construcción", "Servicios", "Tecnologías de la información y la comunicación", "Otros inexistentes", "Salud", "Ciencias naturales, exactas y de la computación", "Ciencias sociales, administración y derecho"; examples: "Ciencias de la salud", "Salud")
- `specific_field` (string, nullable) — Specific field of study (examples: "Enfermería"; minLength: 1)
- `detailed_field` (string, nullable) — Detailed field of study (examples: "Medicina general"; minLength: 1)
- `unit_field` (string, nullable) — Unit field of study (examples: "Pediatría"; minLength: 1)
- `offset` (integer) — Number of matching rows to skip (default: 0; examples: 0, 30000; min: 0)
- `count` (integer, required) — Max number of programme rows to return (min: 1; max: 30000)

## Response

### 200 — Successful Response

- `@type` (string) (default: "AnuiesProgramme")
- `cycle` (string, required) — School year of the statistics (examples: "2025-2026")
- `name` (string, nullable) — Programme name (examples: "LICENCIATURA EN DERECHO")
- `institution_name` (string, nullable) — Institution name (examples: "BENEMÉRITA UNIVERSIDAD AUTÓNOMA DE PUEBLA")
- `campus_name` (string, nullable) — School, campus or faculty name (examples: "COMPLEJO REGIONAL CENTRO SEDE ACAJETE")
- `state` (string, nullable) — Mexican state of the campus (examples: "PUEBLA")
- `municipality` (string, nullable) — Municipality of the campus (examples: "Acajete")
- `sector` (string, nullable) — Public or private funding (examples: "PÚBLICO")
- `subsystem` (string, nullable) — Higher education subsystem (examples: "UNIVERSIDADES PÚBLICAS ESTATALES")
- `is_anuies_member` (boolean, nullable) — Whether the institution is an ANUIES member
- `level` (string, nullable) — Level of study (examples: "LICENCIATURA UNIVERSITARIA Y TECNOLÓGICA")
- `modality` (string, nullable) — Mode of study (examples: "ESCOLARIZADA")
- `is_stem` (boolean, nullable) — Whether the programme is classed as STEM
- `broad_field` (string, nullable) — Broad field of study (examples: "Ciencias sociales y derecho")
- `specific_field` (string, nullable) — Specific field of study (examples: "Derecho y criminología")
- `detailed_field` (string, nullable) — Detailed field of study (examples: "Derecho")
- `unit_field` (string, nullable) — Unit field of study (examples: "Medicina interna")
- `enrolled_count` (integer, nullable) — Students enrolled
- `enrolled_women_count` (integer, nullable) — Women enrolled
- `enrolled_men_count` (integer, nullable) — Men enrolled
- `new_entrant_count` (integer, nullable) — First-year intake
- `new_entrant_women_count` (integer, nullable) — Women in the first-year intake
- `new_entrant_men_count` (integer, nullable) — Men in the first-year intake
- `completer_count` (integer, nullable) — Students who completed the programme
- `completer_women_count` (integer, nullable) — Women who completed the programme
- `completer_men_count` (integer, nullable) — Men who completed the programme
- `offered_place_count` (integer, nullable) — First-year places offered
- `degree_awarded_count` (integer, nullable) — Degrees awarded
- `degree_awarded_women_count` (integer, nullable) — Degrees awarded to women
- `degree_awarded_men_count` (integer, nullable) — Degrees awarded to men
- `applicant_count` (integer, nullable) — First-year applications
- `applicant_women_count` (integer, nullable) — First-year applications from women
- `applicant_men_count` (integer, nullable) — First-year applications from men

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

