ForeignAffairs API endpoint
Returns the newest items from one Foreign Affairs topic RSS feed. Discover accepted values with foreignaffairs-topics; unknown topic values are rejected before upstream I/O.
/foreignaffairs/topicQuery parameter: required topic, one of the slugs returned by
foreignaffairs-topics. Accepted values are business, defense-military,
diplomacy, economic-development, economics, energy, geopolitics,
globalization, ideology, nato, political-development,
politics-society, sanctions, science-technology, security, trade,
trump-administration, us-foreign-policy, and us-politics.
Returns the newest entries from Foreign Affairs' public topic RSS feed. An
unknown topic is rejected before an upstream request is made. A valid topic
feed may temporarily return an empty items array.
| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| title | 20 | “The Case for Economic Espionage” and 19 other values |
| url | 20 | foreignaffairs.com |
| summary | 20 | “America should spy on foreign companies to help its own.” and 19 other values |
| published_at | 20 | 2026-03-31 to 2026-10-08 |
| author | 20 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| topic | string | Yes | Foreign Affairs topic slug from foreignaffairs-topics | economics | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/foreignaffairs/topic?topic=economics" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"topic": {
"slug": "economics",
"name": "Economics",
"feed_url": "https://www.foreignaffairs.com/feeds/topic/Economics/rss.xml"
},
"items": [
{
"title": "Example story",
"url": "https://www.foreignaffairs.com/economics/example-story"
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/foreignaffairs.topicResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | foreignaffairs.TopicResponse | No | ||||
| data.items | array | No | ||||
| data.items[].author | string | No | ||||
| data.items[].categories | array | No | ||||
| data.items[].image_url | string | No | ||||
| data.items[].published_at | string | No | ||||
| data.items[].summary | string | No | ||||
| data.items[].title | string | No | ||||
| data.items[].url | string | No | ||||
| data.topic | foreignaffairs.Topic | No | ||||
| data.topic.feed_url | string | No | ||||
| data.topic.name | string | No | ||||
| data.topic.slug | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/foreignaffairs/topic?topic=economics" \
-H "x-api-key: $CRAWLORA_API_KEY"