Documentation menu
Get recall by ID
Parameters
| Parameter | Type | Description | |
|---|---|---|---|
record_id | string | required | |
lang | string | optional | Return translations for a single language only: en or fr. |
Request
curl --request GET \
--url 'https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID' \
--header 'x-rapidapi-host: recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID"
headers = {"x-rapidapi-host": "recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com", "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID", {
headers: {
"x-rapidapi-host": "recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
},
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"x-rapidapi-host: recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
]);
echo curl_exec($ch);require "net/http"
require "uri"
uri = URI("https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID")
req = Net::HTTP::Get.new(uri)
req["x-rapidapi-host"] = "recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com"
req["x-rapidapi-key"] = "YOUR_RAPIDAPI_KEY"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.bodypackage main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID", nil)
req.Header.Add("x-rapidapi-host", "recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com")
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import java.net.URI;
import java.net.http.*;
HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com/recall/RECORD_ID"))
.header("x-rapidapi-host", "recalltracker-canadian-product-and-vehicle-recalls.p.rapidapi.com")
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.build();
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());Example response
{
"record_id": "hc:77401",
"recall_type": "food",
"agency": "Health Canada",
"hazard_class": "class_1",
"event_date": "2025-03-12",
"recalling_firm": "President's Choice",
"allergens": [
"listeria"
],
"translations": {
"en": {
"title": "President's Choice Spinach recalled due to Listeria",
"hazard_description": "May be contaminated with Listeria.",
"what_to_do": "Do not consume. Return to place of purchase."
},
"fr": {
"title": "Rappel \u00e9pinards President's Choice \u2014 Listeria"
}
}
}Ready to build?Subscribe on RapidAPI to get your key and start calling RecallTracker in minutes.
Get your API key →