Detalhe de um serviço da Carta
curl --request GET \
--url https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}import requests
url = "https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}', 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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}",
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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}"
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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}")
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{
"data": {
"articleId": "<string>",
"articleStatus": "<string>",
"articleVersion": 123,
"buttons": [
{
"description": "<string>",
"enabled": true,
"order": 123,
"title": "<string>",
"url": "<string>"
}
],
"channels": [
{
"channelType": "<string>",
"enabled": true,
"endereco": "<string>",
"mapUrl": "<string>",
"order": 123,
"titulo": "<string>",
"type": "<string>",
"value": "<string>",
"whatsappLink": "<string>"
}
],
"createdDate": "<string>",
"flags": {
"activeCategoryConfigId": "<string>",
"activeCategoryName": "<string>",
"allowTicketSubmission": true,
"allowsAnonymity": true
},
"howToRequest": {
"exclusions": "<string>",
"instructions": "<string>",
"requiredDocs": [
"<string>"
],
"serviceResult": "<string>"
},
"info": {
"cost": "<string>",
"costNotes": "<string>",
"costValue": 123,
"fullDescription": "<string>",
"isFree": true,
"serviceDeadline": "<string>",
"serviceDeadlineNotes": "<string>",
"summary": "<string>",
"targetAudience": [
"<string>"
]
},
"lastModifiedDate": "<string>",
"lastPublishedDate": "<string>",
"legislation": [
{
"order": 123,
"titulo": "<string>"
}
],
"name": "<string>",
"responsibleOrgUnit": "<string>",
"responsibleOrgUnitShortName": "<string>",
"serviceCatalogId": "<string>",
"servicePoints": [
{}
],
"slug": "<string>",
"slugHistory": [
"<string>"
],
"subthemeName": "<string>",
"subthemeSlug": "<string>",
"themeName": "<string>",
"themeSlug": "<string>"
}
}{
"redirect": "iptu-2026"
}{}{}{}{}carta
Detalhe de um serviço da Carta
Retorna o payload completo do serviço publicado a partir de catalog_items.source_data. Slugs antigos respondem 301 com {"redirect":"<slug-canonico>"} (sem header Location).
GET
/
api
/
public
/
services
/
{slug}
Detalhe de um serviço da Carta
curl --request GET \
--url https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}import requests
url = "https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}', 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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}",
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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}"
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://services.staging.app.dados.rio/catalogo/api/public/services/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/catalogo/api/public/services/{slug}")
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{
"data": {
"articleId": "<string>",
"articleStatus": "<string>",
"articleVersion": 123,
"buttons": [
{
"description": "<string>",
"enabled": true,
"order": 123,
"title": "<string>",
"url": "<string>"
}
],
"channels": [
{
"channelType": "<string>",
"enabled": true,
"endereco": "<string>",
"mapUrl": "<string>",
"order": 123,
"titulo": "<string>",
"type": "<string>",
"value": "<string>",
"whatsappLink": "<string>"
}
],
"createdDate": "<string>",
"flags": {
"activeCategoryConfigId": "<string>",
"activeCategoryName": "<string>",
"allowTicketSubmission": true,
"allowsAnonymity": true
},
"howToRequest": {
"exclusions": "<string>",
"instructions": "<string>",
"requiredDocs": [
"<string>"
],
"serviceResult": "<string>"
},
"info": {
"cost": "<string>",
"costNotes": "<string>",
"costValue": 123,
"fullDescription": "<string>",
"isFree": true,
"serviceDeadline": "<string>",
"serviceDeadlineNotes": "<string>",
"summary": "<string>",
"targetAudience": [
"<string>"
]
},
"lastModifiedDate": "<string>",
"lastPublishedDate": "<string>",
"legislation": [
{
"order": 123,
"titulo": "<string>"
}
],
"name": "<string>",
"responsibleOrgUnit": "<string>",
"responsibleOrgUnitShortName": "<string>",
"serviceCatalogId": "<string>",
"servicePoints": [
{}
],
"slug": "<string>",
"slugHistory": [
"<string>"
],
"subthemeName": "<string>",
"subthemeSlug": "<string>",
"themeName": "<string>",
"themeSlug": "<string>"
}
}{
"redirect": "iptu-2026"
}{}{}{}{}