Documentation menu
Getting started
QuickstartEndpoints
GET/grant/opportunitiesGET/grant/opportunities/organizationsGET/grant/opportunities/{opportunity_id}GET/department/{name}GET/recipient/{name}GET/grantGET/infrastructure_projectGET/research_grantGET/grant/statsGET/infrastructure_project/statsGET/research_grant/statsGET/grant/{record_id}GET/infrastructure_project/{record_id}GET/research_grant/{record_id}Get one funding program by id
Parameters
| Parameter | Type | Description | |
|---|---|---|---|
opportunity_id | string | required |
Request
curl --request GET \
--url 'https://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID' \
--header 'x-rapidapi-host: grantdata-canadian-government-grants-api.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID"
headers = {"x-rapidapi-host": "grantdata-canadian-government-grants-api.p.rapidapi.com", "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID", {
headers: {
"x-rapidapi-host": "grantdata-canadian-government-grants-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
},
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"x-rapidapi-host: grantdata-canadian-government-grants-api.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
]);
echo curl_exec($ch);require "net/http"
require "uri"
uri = URI("https://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID")
req = Net::HTTP::Get.new(uri)
req["x-rapidapi-host"] = "grantdata-canadian-government-grants-api.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://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID", nil)
req.Header.Add("x-rapidapi-host", "grantdata-canadian-government-grants-api.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://grantdata-canadian-government-grants-api.p.rapidapi.com/grant/opportunities/OPPORTUNITY_ID"))
.header("x-rapidapi-host", "grantdata-canadian-government-grants-api.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
{
"id": "alliance-grants-08ffeeba",
"title_en": "Alliance grants",
"title_fr": "Subventions Alliance",
"short_description_en": "Partnering support for R&D projects",
"long_description_en": "Funding to support collaborative research and development projects.",
"organization_en": "Government of Canada, Natural Sciences and Engineering Research Council",
"organization_url_en": "https://www.nserc-crsng.gc.ca/Innovate-Innover/alliance-alliance/index_eng.asp"
}Ready to build?Subscribe on RapidAPI to get your key and start calling GrantData in minutes.
Get your API key →