Plataforma de dados abertos da Universidade de São Paulo
USP Aberta — página inicial

USP Aberta · Desenvolvedores

academic-units

Lista as unidades acadêmicas

Todas as unidades da USP presentes na base, ordenadas por sigla.

GET /academic-units{?search,unit_type} · 1 créditos · Desde a versão 2.0

Parâmetros de consulta

NomeTipoDescrição
searchstring
opcional
Texto contido no nome ou na sigla.
unit_typestring
opcional
Tipo da unidade.
valores aceitos: standard, museum, specialized_institute
limitinteger
opcional
Quantidade máxima de itens na página. (padrão: 20)
1–100
cursorstring
opcional
Cursor opaco devolvido em `_links.next` ou `_links.prev`; não o construa.
fieldsstring[]
opcional
Campos de cada item a devolver (lista separada por vírgulas).

Campos da resposta

NomeTipoDescrição
keystringIdentificador imutável da unidade. schema.org/identifier
slugstringSegmento público da URL; acompanha a sigla.
acronymstringSigla de exibição. schema.org/alternateName
namestring | nullNome por extenso. schema.org/name
unitTypestringstandard, museum ou specialized_institute. schema.org/additionalType
singleDepartmentbooleanA unidade tem um único departamento.
descriptionstring | nullDescrição em HTML sanitizado. schema.org/description
websitestring | nullPágina oficial. schema.org/url
directorstring | nullDireção. schema.org/employee
addressstring | nullEndereço. schema.org/address
contactstring | nullContato. schema.org/contactPoint
workingHoursstring | nullHorário de funcionamento. schema.org/openingHours
isVerifiedbooleanDados conferidos pela unidade.
logoUrlstring | nullLogotipo. schema.org/logo
photoUrlstring | nullFoto. schema.org/image

Links que a resposta oferece

NomeDescrição
uspa:departmentsDepartamentos da unidade.

Substitui as rotas legadas: academic-unit

Exemplos de código

curl -s 'https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5' \
  -H 'Authorization: Bearer '"$USPA_API_KEY" \
  -H 'Accept: application/hal+json'

Resposta

Resposta real da API: GET /academic-units?limit=5

HTTP 200
content-type: application/hal+json
etag: W/"g0-6e2c08bb10a44682"
cache-control: private, max-age=300, must-revalidate
content-language: pt-BR
vary: Accept, Accept-Language
ratelimit-policy: "daily";q=4000;w=86400, "burst";q=60;w=60
uspa-credit-cost: 1
{
  "_embedded": {
    "item": [
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar/departments"
          }
        },
        "acronym": "cebimar",
        "address": null,
        "contact": null,
        "description": "O Centro de Biologia Marinha da USP (CEBIMar) tem origem na Fundação Instituto de Biologia Marinha, criada em 14 de fevereiro de 1955, incorporada à USP em 1…",
        "director": null,
        "isVerified": false,
        "key": "cebimar",
        "logoUrl": null,
        "name": "Centro de Biologia Marinha",
        "photoUrl": null,
        "singleDepartment": true,
        "slug": "cebimar",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      },
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena/departments"
          }
        },
        "acronym": "cena",
        "address": null,
        "contact": null,
        "description": "O Centro de Energia Nuclear na Agricultura (CENA) é um instituto especializado da USP, criado pelo Decreto Estadual nº 46.794, de 22 de setembro de 1966, com…",
        "director": null,
        "isVerified": false,
        "key": "cena",
        "logoUrl": null,
        "name": "Centro de Energia Nuclear na Agricultura",
        "photoUrl": null,
        "singleDepartment": false,
        "slug": "cena",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      }
    ]
  },
  "_links": {
    "curies": [
      {
        "href": "https://uspaberta.ime.usp.br/api/v2/rels/{rel}",
        "templated": true,
        "name": "uspa"
      }
    ],
    "first": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    },
    "next": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?cursor=eyJrIjpbIjUiXSwiZiI6ImUzYjBjNDQyOThmYyIsImciOjB9.GxwHBwAlJh7JMpEEo_fAkF&limit=5"
    },
    "self": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    }
  },
  "count": 5,
  "total": 53,
  "totalIsExact": true
}

USP Aberta · Developers

academic-units

List academic units

Every USP unit in the dataset, ordered by acronym.

GET /academic-units{?search,unit_type} · 1 credits · Since version 2.0

Query parameters

NameTypeDescription
searchstring
optional
Text contained in the name or acronym.
unit_typestring
optional
Unit type.
accepted values: standard, museum, specialized_institute
limitinteger
optional
Maximum number of items in the page. (default: 20)
1–100
cursorstring
optional
Opaque cursor returned in `_links.next` or `_links.prev`; never build one.
fieldsstring[]
optional
Item fields to return (comma separated list).

Response fields

NameTypeDescription
keystringImmutable unit identifier. schema.org/identifier
slugstringPublic URL segment; follows the acronym.
acronymstringDisplay acronym. schema.org/alternateName
namestring | nullFull name. schema.org/name
unitTypestringstandard, museum or specialized_institute. schema.org/additionalType
singleDepartmentbooleanThe unit has a single department.
descriptionstring | nullDescription as sanitized HTML. schema.org/description
websitestring | nullOfficial website. schema.org/url
directorstring | nullHead of the unit. schema.org/employee
addressstring | nullAddress. schema.org/address
contactstring | nullContact. schema.org/contactPoint
workingHoursstring | nullWorking hours. schema.org/openingHours
isVerifiedbooleanData verified by the unit.
logoUrlstring | nullLogo. schema.org/logo
photoUrlstring | nullPhoto. schema.org/image

Links the response offers

NameDescription
uspa:departmentsThe unit's departments.

Replaces legacy routes: academic-unit

Code samples

curl -s 'https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5' \
  -H 'Authorization: Bearer '"$USPA_API_KEY" \
  -H 'Accept: application/hal+json'

Response

Real response from the API: GET /academic-units?limit=5

HTTP 200
content-type: application/hal+json
etag: W/"g0-058210fce7a79d55"
cache-control: private, max-age=300, must-revalidate
content-language: en
vary: Accept, Accept-Language
ratelimit-policy: "daily";q=4000;w=86400, "burst";q=60;w=60
uspa-credit-cost: 1
{
  "_embedded": {
    "item": [
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar/departments"
          }
        },
        "acronym": "cebimar",
        "address": null,
        "contact": null,
        "description": "O Centro de Biologia Marinha da USP (CEBIMar) tem origem na Fundação Instituto de Biologia Marinha, criada em 14 de fevereiro de 1955, incorporada à USP em 1…",
        "director": null,
        "isVerified": false,
        "key": "cebimar",
        "logoUrl": null,
        "name": "Centro de Biologia Marinha",
        "photoUrl": null,
        "singleDepartment": true,
        "slug": "cebimar",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      },
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena/departments"
          }
        },
        "acronym": "cena",
        "address": null,
        "contact": null,
        "description": "O Centro de Energia Nuclear na Agricultura (CENA) é um instituto especializado da USP, criado pelo Decreto Estadual nº 46.794, de 22 de setembro de 1966, com…",
        "director": null,
        "isVerified": false,
        "key": "cena",
        "logoUrl": null,
        "name": "Centro de Energia Nuclear na Agricultura",
        "photoUrl": null,
        "singleDepartment": false,
        "slug": "cena",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      }
    ]
  },
  "_links": {
    "curies": [
      {
        "href": "https://uspaberta.ime.usp.br/api/v2/rels/{rel}",
        "templated": true,
        "name": "uspa"
      }
    ],
    "first": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    },
    "next": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?cursor=eyJrIjpbIjUiXSwiZiI6ImUzYjBjNDQyOThmYyIsImciOjB9.GxwHBwAlJh7JMpEEo_fAkF&limit=5"
    },
    "self": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    }
  },
  "count": 5,
  "total": 53,
  "totalIsExact": true
}

USP Aberta · Desarrolladores

academic-units

Lista las unidades académicas

Todas las unidades de la USP presentes en la base, ordenadas por sigla.

GET /academic-units{?search,unit_type} · 1 créditos · Desde la versión 2.0

Parámetros de consulta

NombreTipoDescripción
searchstring
opcional
Texto contenido en el nombre o en la sigla.
unit_typestring
opcional
Tipo de unidad.
valores aceptados: standard, museum, specialized_institute
limitinteger
opcional
Número máximo de elementos por página. (predeterminado: 20)
1–100
cursorstring
opcional
Cursor opaco devuelto en `_links.next` o `_links.prev`; nunca lo construya.
fieldsstring[]
opcional
Campos de cada elemento a devolver (lista separada por comas).

Campos de la respuesta

NombreTipoDescripción
keystringIdentificador inmutable de la unidad. schema.org/identifier
slugstringSegmento público de la URL; sigue a la sigla.
acronymstringSigla mostrada. schema.org/alternateName
namestring | nullNombre completo. schema.org/name
unitTypestringstandard, museum o specialized_institute. schema.org/additionalType
singleDepartmentbooleanLa unidad tiene un único departamento.
descriptionstring | nullDescripción en HTML saneado. schema.org/description
websitestring | nullSitio web oficial. schema.org/url
directorstring | nullResponsable de la unidad. schema.org/employee
addressstring | nullDirección. schema.org/address
contactstring | nullContacto. schema.org/contactPoint
workingHoursstring | nullHorario de atención. schema.org/openingHours
isVerifiedbooleanDatos verificados por la unidad.
logoUrlstring | nullLogotipo. schema.org/logo
photoUrlstring | nullFoto. schema.org/image

Enlaces que ofrece la respuesta

NombreDescripción
uspa:departmentsDepartamentos de la unidad.

Reemplaza rutas heredadas: academic-unit

Ejemplos de código

curl -s 'https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5' \
  -H 'Authorization: Bearer '"$USPA_API_KEY" \
  -H 'Accept: application/hal+json'

Respuesta

Respuesta real de la API: GET /academic-units?limit=5

HTTP 200
content-type: application/hal+json
etag: W/"g0-e4561666079ffc0e"
cache-control: private, max-age=300, must-revalidate
content-language: es
vary: Accept, Accept-Language
ratelimit-policy: "daily";q=4000;w=86400, "burst";q=60;w=60
uspa-credit-cost: 1
{
  "_embedded": {
    "item": [
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cebimar/departments"
          }
        },
        "acronym": "cebimar",
        "address": null,
        "contact": null,
        "description": "O Centro de Biologia Marinha da USP (CEBIMar) tem origem na Fundação Instituto de Biologia Marinha, criada em 14 de fevereiro de 1955, incorporada à USP em 1…",
        "director": null,
        "isVerified": false,
        "key": "cebimar",
        "logoUrl": null,
        "name": "Centro de Biologia Marinha",
        "photoUrl": null,
        "singleDepartment": true,
        "slug": "cebimar",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      },
      {
        "_links": {
          "collection": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units"
          },
          "self": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena"
          },
          "uspa:departments": {
            "href": "https://uspaberta.ime.usp.br/api/v2/academic-units/cena/departments"
          }
        },
        "acronym": "cena",
        "address": null,
        "contact": null,
        "description": "O Centro de Energia Nuclear na Agricultura (CENA) é um instituto especializado da USP, criado pelo Decreto Estadual nº 46.794, de 22 de setembro de 1966, com…",
        "director": null,
        "isVerified": false,
        "key": "cena",
        "logoUrl": null,
        "name": "Centro de Energia Nuclear na Agricultura",
        "photoUrl": null,
        "singleDepartment": false,
        "slug": "cena",
        "unitType": "specialized_institute",
        "website": null,
        "workingHours": null
      }
    ]
  },
  "_links": {
    "curies": [
      {
        "href": "https://uspaberta.ime.usp.br/api/v2/rels/{rel}",
        "templated": true,
        "name": "uspa"
      }
    ],
    "first": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    },
    "next": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?cursor=eyJrIjpbIjUiXSwiZiI6ImUzYjBjNDQyOThmYyIsImciOjB9.GxwHBwAlJh7JMpEEo_fAkF&limit=5"
    },
    "self": {
      "href": "https://uspaberta.ime.usp.br/api/v2/academic-units?limit=5"
    }
  },
  "count": 5,
  "total": 53,
  "totalIsExact": true
}