Skip to main content
GET
/
api
/
public
/
recommendations
Recomendações anônimas
curl --request GET \
  --url https://services.staging.app.dados.rio/catalogo/api/public/recommendations
import requests

url = "https://services.staging.app.dados.rio/catalogo/api/public/recommendations"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://services.staging.app.dados.rio/catalogo/api/public/recommendations', 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/recommendations",
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/recommendations"

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/recommendations")
.asString();
require 'uri'
require 'net/http'

url = URI("https://services.staging.app.dados.rio/catalogo/api/public/recommendations")

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
{
  "items": [
    {
      "bairros": [
        "<string>"
      ],
      "id": "<string>",
      "image_url": "<string>",
      "modalidade": "<string>",
      "organization": "<string>",
      "score": 123,
      "score_breakdown": {},
      "short_desc": "<string>",
      "tags": [
        "<string>"
      ],
      "title": "<string>",
      "url": "<string>"
    }
  ],
  "personalized": true
}
{}

Query Parameters

cluster_hint
string

Bairro ou faixa etária (ex: Tijuca, 25-34)

types
string[]

Tipos: service, course, job, mei_opportunity

limit
integer

Máximo de itens, max 50 (default: 10)

context
string

Contexto: homepage, after_search, profile

Response

OK

context
enum<string>
Available options:
homepage,
after_search,
profile
items
object[]
personalized
boolean