ForeignAffairs API endpoint
Lists the 19 Foreign Affairs topics accepted by the topic endpoint, such as `economics`, `nato`, `sanctions` and `us-foreign-policy`. Each topic has its `slug`, display name and RSS `feed_url`. It takes no parameters.
/foreignaffairs/topicsNo query parameters. Returns every topic value currently accepted by
foreignaffairs-topic, with its display name and public RSS feed URL.
The current topic slugs 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, us-politics.
| Field | Filled in, of 19 checked | Values in the sample |
|---|---|---|
| slug | 19 | |
| name | 19 | “Business” and 18 other values |
| feed_url | 19 | foreignaffairs.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/foreignaffairs/topics" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"topics": [
{
"slug": "economics",
"name": "Economics",
"feed_url": "https://www.foreignaffairs.com/feeds/topic/Economics/rss.xml"
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/foreignaffairs.topicsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | foreignaffairs.TopicsResponse | No | ||||
| data.topics | array | No | ||||
| data.topics[].feed_url | string | No | ||||
| data.topics[].name | string | No | ||||
| data.topics[].slug | string | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/foreignaffairs/topics" \
-H "x-api-key: $CRAWLORA_API_KEY"