Get Feed Posts
curl --request GET \
--url https://api.givingcompass.org/insights/feed/posts \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.givingcompass.org/insights/feed/posts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.givingcompass.org/insights/feed/posts', 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.givingcompass.org/insights/feed/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.givingcompass.org/insights/feed/posts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.givingcompass.org/insights/feed/posts")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.givingcompass.org/insights/feed/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"organization_ein": "<string>",
"post_title": "<string>",
"organization_name": "<string>",
"organization_city": "<string>",
"organization_state": "<string>",
"post_id": "<string>",
"post_classification": "<string>",
"post_description": "<string>",
"post_content": "<string>",
"post_url": "<string>",
"post_published_date": "<string>",
"post_author": "<string>",
"post_categories": [
"<string>"
],
"post_tags": [
"<string>"
]
}
],
"total": 123,
"page": 123,
"size": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Feed Endpoints
Get Feed Posts
Get posts from all nonprofits for the global feed, sorted by newest first. Organization names are guaranteed to be populated via SQL lookup. Supports optional filtering by classification and search.
GET
/
feed
/
posts
Get Feed Posts
curl --request GET \
--url https://api.givingcompass.org/insights/feed/posts \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.givingcompass.org/insights/feed/posts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.givingcompass.org/insights/feed/posts', 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.givingcompass.org/insights/feed/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.givingcompass.org/insights/feed/posts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.givingcompass.org/insights/feed/posts")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.givingcompass.org/insights/feed/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"organization_ein": "<string>",
"post_title": "<string>",
"organization_name": "<string>",
"organization_city": "<string>",
"organization_state": "<string>",
"post_id": "<string>",
"post_classification": "<string>",
"post_description": "<string>",
"post_content": "<string>",
"post_url": "<string>",
"post_published_date": "<string>",
"post_author": "<string>",
"post_categories": [
"<string>"
],
"post_tags": [
"<string>"
]
}
],
"total": 123,
"page": 123,
"size": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}