Listar provas
curl --request GET \
--url https://api.enem.dev/v1/examsimport requests
url = "https://api.enem.dev/v1/exams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.enem.dev/v1/exams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enem.dev/v1/exams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enem.dev/v1/exams"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enem.dev/v1/exams")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enem.dev/v1/exams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"title": "ENEM 2020",
"year": 2020,
"disciplines": [
{
"label": "Ciências Humanas e suas Tecnologias",
"value": "ciencias-humanas"
},
{
"label": "Ciências da Natureza e suas Tecnologias",
"value": "ciencias-natureza"
},
{
"label": "Linguagens, Códigos e suas Tecnologias",
"value": "linguagens"
},
{
"label": "Matemática e suas Tecnologias",
"value": "matematica"
}
],
"languages": [
{
"label": "Espanhol",
"value": "espanhol"
},
{
"label": "Inglês",
"value": "ingles"
}
]
}
]{
"error": {
"code": "bad_request",
"message": "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).",
"docUrl": "https://enem.dev/docs/errors#bad-request"
}
}{
"error": {
"code": "not_found",
"message": "The server cannot find the requested resource.",
"docUrl": "https://enem.dev/docs/errors#not-found"
}
}{
"error": {
"code": "unprocessable_entity",
"message": "The request was well-formed but was unable to be followed due to semantic errors.",
"docUrl": "https://enem.dev/docs/errors#unprocessable-entity"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "The user has sent too many requests in a given amount of time",
"docUrl": "https://enem.dev/docs/errors#rate-limit_exceeded"
}
}{
"error": {
"code": "internal_server_error",
"message": "The server has encountered a situation it does not know how to handle.",
"docUrl": "https://enem.dev/docs/errors#internal-server_error"
}
}Provas
Listar provas
Listar todas as provas disponíveis
GET
/
exams
Listar provas
curl --request GET \
--url https://api.enem.dev/v1/examsimport requests
url = "https://api.enem.dev/v1/exams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.enem.dev/v1/exams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enem.dev/v1/exams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enem.dev/v1/exams"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enem.dev/v1/exams")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enem.dev/v1/exams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"title": "ENEM 2020",
"year": 2020,
"disciplines": [
{
"label": "Ciências Humanas e suas Tecnologias",
"value": "ciencias-humanas"
},
{
"label": "Ciências da Natureza e suas Tecnologias",
"value": "ciencias-natureza"
},
{
"label": "Linguagens, Códigos e suas Tecnologias",
"value": "linguagens"
},
{
"label": "Matemática e suas Tecnologias",
"value": "matematica"
}
],
"languages": [
{
"label": "Espanhol",
"value": "espanhol"
},
{
"label": "Inglês",
"value": "ingles"
}
]
}
]{
"error": {
"code": "bad_request",
"message": "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).",
"docUrl": "https://enem.dev/docs/errors#bad-request"
}
}{
"error": {
"code": "not_found",
"message": "The server cannot find the requested resource.",
"docUrl": "https://enem.dev/docs/errors#not-found"
}
}{
"error": {
"code": "unprocessable_entity",
"message": "The request was well-formed but was unable to be followed due to semantic errors.",
"docUrl": "https://enem.dev/docs/errors#unprocessable-entity"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "The user has sent too many requests in a given amount of time",
"docUrl": "https://enem.dev/docs/errors#rate-limit_exceeded"
}
}{
"error": {
"code": "internal_server_error",
"message": "The server has encountered a situation it does not know how to handle.",
"docUrl": "https://enem.dev/docs/errors#internal-server_error"
}
}Response
Lista de provas
O título da prova
Example:
"ENEM 2020"
O ano em que a prova foi aplicada
Required range:
x > 0Example:
2020
As disciplinas da prova
Show child attributes
Show child attributes
Example:
[
{
"label": "Ciências Humanas e suas Tecnologias",
"value": "ciencias-humanas"
},
{
"label": "Ciências da Natureza e suas Tecnologias",
"value": "ciencias-natureza"
},
{
"label": "Linguagens, Códigos e suas Tecnologias",
"value": "linguagens"
},
{
"label": "Matemática e suas Tecnologias",
"value": "matematica"
}
]
Os idiomas da prova
Show child attributes
Show child attributes
Example:
[
{ "label": "Espanhol", "value": "espanhol" },
{ "label": "Inglês", "value": "ingles" }
]
Was this page helpful?
⌘I