| Property | Details |
|---|---|
| URL: | https://www2.swcombine.com/ws/v2.0/news/simnews[/[{category:player|technical|community}[/]]] |
| Method: | GET |
| Description: | Gets a collection of all Sim News items. |
| Pattern Description: |
category (Optional): Category filter |
| Rate Limited: | No |
| Query String: |
start_date (number): The unix timestamp of the earliest posts to include. Cannot be in the future. end_date (number): The unix timestamp of the latest posts to include. Cannot be in the future. search (string): Text to look for in the title or body of posts. author (string): Only include posts whose author's name starts with this text. item_count (number): The number of posts to retrieve (1 to 50, default 50). An invalid value is replaced by the default start_index (number): The first post to retrieve from the list, from 1 onwards (default 1). An invalid value is replaced by the default. Posts are listed most recently posted or edited first |
| Parameters: | N/A |
| Requires Authentication: | No |
| Permissions: | N/A |
| Returns: |
200 OK: Returns a collection of Sim News posts 400 Bad Request: One or more of the provided parameters was invalid |
| Examples: |
GET /ws/v2.0/news/simnews/
JSON{
"version": "2.0",
"timestamp": 1767225600,
"resource": "news",
"request": "/ws/v2.0/news/simnews/",
"swcapi": {
"newsitems": {
"attributes": {
"start": 1,
"total": 1,
"count": 1
},
"newsitem": [
{
"attributes": {
"id": 12,
"href": "https://www.swcombine.com/ws/v2.0/news/simnews/12/"
},
"value": "Title1"
}
]
}
}
}
XML<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="news" request="/ws/v2.0/news/simnews/">
<newsitems count="1" start="1" total="1">
<newsitem id="12" href="https://www.swcombine.com/ws/v2.0/news/simnews/12/">Title1</newsitem>
</newsitems>
</swcapi>
|