Track the Real Estate Market
Combine construction, property development and REITs with industry.id to follow real estate news. Use facets to compare coverage by country and sentiment.
Step 1: Build the sector feed
Three IDs cover most of the market: 216 (Real Estate and Construction — development, sales, management, brokers, architects), 226 (Property Development) and 230 (Real Estate Investment Trusts).
curl "https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sort.by=published_at&sort.order=desc&per_page=20&api_key=YOUR_API_KEY"
import requests
response = requests.get(
"https://api.apitube.io/v1/news/everything",
params={
"industry.id": "216,226,230",
"sort.by": "published_at",
"sort.order": "desc",
"per_page": "20",
"api_key": "YOUR_API_KEY",
},
)
print(response.json())
const params = new URLSearchParams({ "industry.id": "216,226,230", "sort.by": "published_at", "sort.order": "desc", "per_page": "20", "api_key": "YOUR_API_KEY" });
const response = await fetch(`https://api.apitube.io/v1/news/everything?${params}`);
const data = await response.json();
console.log(data);
$query = http_build_query(["industry.id" => "216,226,230", "sort.by" => "published_at", "sort.order" => "desc", "per_page" => "20", "api_key" => "YOUR_API_KEY"]);
$response = file_get_contents("https://api.apitube.io/v1/news/everything?$query");
$data = json_decode($response, true);
print_r($data);
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
u, _ := url.Parse("https://api.apitube.io/v1/news/everything")
q := u.Query()
q.Set("industry.id", "216,226,230")
q.Set("sort.by", "published_at")
q.Set("sort.order", "desc")
q.Set("per_page", "20")
q.Set("api_key", "YOUR_API_KEY")
u.RawQuery = q.Encode()
resp, _ := http.Get(u.String())
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var data map[string]any
json.Unmarshal(body, &data)
fmt.Println(data)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sort.by=published_at&sort.order=desc&per_page=20&api_key=YOUR_API_KEY"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Write a script in your preferred language that calls the APITube News API:
GET https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sort.by=published_at&sort.order=desc&per_page=20
Read the API key from an environment variable (do not hardcode it), handle request
errors, and print the key fields of each result.
Docs: https://docs.apitube.io/platform/news-api/everything
- Which part of the market —
industrieson each article separates brokerage news from development and REIT news. - Where the property is —
locations_mentioned, extracted from the body. - Which press covered it —
source.domainandsource.country.code.
Step 2: Compare coverage by publisher country
Use a facet on source.country.id to count coverage by publisher country.
curl "https://api.apitube.io/v1/news/everything?industry.id=216,226,230&facet=true&facet.field=source.country.id&facet.limit=15&per_page=1&api_key=YOUR_API_KEY"
import requests
response = requests.get(
"https://api.apitube.io/v1/news/everything",
params={
"industry.id": "216,226,230",
"facet": "true",
"facet.field": "source.country.id",
"facet.limit": "15",
"per_page": "1",
"api_key": "YOUR_API_KEY",
},
)
print(response.json())
const params = new URLSearchParams({ "industry.id": "216,226,230", "facet": "true", "facet.field": "source.country.id", "facet.limit": "15", "per_page": "1", "api_key": "YOUR_API_KEY" });
const response = await fetch(`https://api.apitube.io/v1/news/everything?${params}`);
const data = await response.json();
console.log(data);
$query = http_build_query(["industry.id" => "216,226,230", "facet" => "true", "facet.field" => "source.country.id", "facet.limit" => "15", "per_page" => "1", "api_key" => "YOUR_API_KEY"]);
$response = file_get_contents("https://api.apitube.io/v1/news/everything?$query");
$data = json_decode($response, true);
print_r($data);
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
u, _ := url.Parse("https://api.apitube.io/v1/news/everything")
q := u.Query()
q.Set("industry.id", "216,226,230")
q.Set("facet", "true")
q.Set("facet.field", "source.country.id")
q.Set("facet.limit", "15")
q.Set("per_page", "1")
q.Set("api_key", "YOUR_API_KEY")
u.RawQuery = q.Encode()
resp, _ := http.Get(u.String())
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var data map[string]any
json.Unmarshal(body, &data)
fmt.Println(data)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.apitube.io/v1/news/everything?industry.id=216,226,230&facet=true&facet.field=source.country.id&facet.limit=15&per_page=1&api_key=YOUR_API_KEY"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Write a script in your preferred language that calls the APITube News API:
GET https://api.apitube.io/v1/news/everything?industry.id=216,226,230&facet=true&facet.field=source.country.id&facet.limit=15&per_page=1
Read the API key from an environment variable (do not hardcode it), handle request
errors, and print the key fields of each result.
Docs: https://docs.apitube.io/platform/news-api/everything
Add source.country.code=us to select US-based publishers. This filters the publisher's country, so it does not include foreign outlets reporting on US property.
Step 3: Follow negative coverage
Filter for negative articles to track changes in the tone of real estate coverage.
curl "https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sentiment.overall.polarity=negative&published_at.start=2026-07-01&per_page=20&api_key=YOUR_API_KEY"
import requests
response = requests.get(
"https://api.apitube.io/v1/news/everything",
params={
"industry.id": "216,226,230",
"sentiment.overall.polarity": "negative",
"published_at.start": "2026-07-01",
"per_page": "20",
"api_key": "YOUR_API_KEY",
},
)
print(response.json())
const params = new URLSearchParams({ "industry.id": "216,226,230", "sentiment.overall.polarity": "negative", "published_at.start": "2026-07-01", "per_page": "20", "api_key": "YOUR_API_KEY" });
const response = await fetch(`https://api.apitube.io/v1/news/everything?${params}`);
const data = await response.json();
console.log(data);
$query = http_build_query(["industry.id" => "216,226,230", "sentiment.overall.polarity" => "negative", "published_at.start" => "2026-07-01", "per_page" => "20", "api_key" => "YOUR_API_KEY"]);
$response = file_get_contents("https://api.apitube.io/v1/news/everything?$query");
$data = json_decode($response, true);
print_r($data);
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
u, _ := url.Parse("https://api.apitube.io/v1/news/everything")
q := u.Query()
q.Set("industry.id", "216,226,230")
q.Set("sentiment.overall.polarity", "negative")
q.Set("published_at.start", "2026-07-01")
q.Set("per_page", "20")
q.Set("api_key", "YOUR_API_KEY")
u.RawQuery = q.Encode()
resp, _ := http.Get(u.String())
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var data map[string]any
json.Unmarshal(body, &data)
fmt.Println(data)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sentiment.overall.polarity=negative&published_at.start=2026-07-01&per_page=20&api_key=YOUR_API_KEY"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Write a script in your preferred language that calls the APITube News API:
GET https://api.apitube.io/v1/news/everything?industry.id=216,226,230&sentiment.overall.polarity=negative&published_at.start=2026-07-01&per_page=20
Read the API key from an environment variable (do not hardcode it), handle request
errors, and print the key fields of each result.
Docs: https://docs.apitube.io/platform/news-api/everything
To calculate the share of negative coverage, use /v1/news/count twice: once for all matching articles and once with a negative-sentiment filter:
import requests
REAL_ESTATE = "216,226,230"
def negativity(api_key, country="us", since="2026-07-01"):
def count(**extra):
params = {
"industry.id": REAL_ESTATE,
"source.country.code": country,
"published_at.start": since,
"api_key": api_key,
**extra,
}
return requests.get("https://api.apitube.io/v1/news/count", params=params).json()["count"]
total = count()
negative = count(**{"sentiment.overall.polarity": "negative"})
return {"total": total, "negative": negative, "share": round(negative / total, 3) if total else 0}Tip: add
title=mortgageto focus on mortgage coverage before comparing sentiment.