Skip to main content

IncidentsService

A list of all methods in the IncidentsService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_additionsGet the latest additions.

This endpoint only shows unchanged objects.
get_changesGet the latest updates.

This endpoint only provides the latest change for an object. It does not keep track of previous changes.
get_deletionsGet the latest deleted documents
get_incidentsGet the latest updates and additions.

This endpoint only provides the latest incident for an object. It does not keep track of previous incidents.

get_additions

Get the latest additions.

This endpoint only shows unchanged objects.

  • HTTP Method: GET
  • Endpoint: /additions

Parameters

NameTypeRequiredDescription
filterFilterOverAdditionIncidentsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverAdditionIncidentsOptions to select results within ranges
For more information on ranges, see docs.
sortList[any]Options to sort results
For more information on sorting, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]
type_List[any]Filter by result type(s)
sincestrFilter out older results
videogameList[VideogameIdOrSlug]Filter by videogame(s)

Return Type

List[NonDeletionIncident]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverAdditionIncidents, RangeOverAdditionIncidents

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverAdditionIncidents(
id_=[
9
],
modified_at=[
"labore nul"
],
opponents_filled=False
)
range=RangeOverAdditionIncidents(
id_=[
9
],
modified_at=[
"id a"
]
)
sort=[
""
]
page=1
type_=[
""
]
videogame=[
1
]

result = sdk.incidents.get_additions(
filter=filter,
range=range,
sort=sort,
page=page,
per_page=50,
type_=type_,
since="mollit magna no",
videogame=videogame
)

print(result)

get_changes

Get the latest updates.

This endpoint only provides the latest change for an object. It does not keep track of previous changes.

  • HTTP Method: GET
  • Endpoint: /changes

Parameters

NameTypeRequiredDescription
filterFilterOverChangeIncidentsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverChangeIncidentsOptions to select results within ranges
For more information on ranges, see docs.
sortList[any]Options to sort results
For more information on sorting, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]
type_List[any]Filter by result type(s)
sincestrFilter out older results
videogameList[VideogameIdOrSlug]Filter by videogame(s)

Return Type

List[Incident]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverChangeIncidents, RangeOverChangeIncidents

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverChangeIncidents(
id_=[
9
],
modified_at=[
"id eiusmod"
],
opponents_filled=True
)
range=RangeOverChangeIncidents(
id_=[
9
],
modified_at=[
"adipisici"
]
)
sort=[
""
]
page=1
type_=[
""
]
videogame=[
1
]

result = sdk.incidents.get_changes(
filter=filter,
range=range,
sort=sort,
page=page,
per_page=50,
type_=type_,
since="labori",
videogame=videogame
)

print(result)

get_deletions

Get the latest deleted documents

  • HTTP Method: GET
  • Endpoint: /deletions

Parameters

NameTypeRequiredDescription
filterFilterOverDeletionIncidentsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverDeletionIncidentsOptions to select results within ranges
For more information on ranges, see docs.
sortList[any]Options to sort results
For more information on sorting, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]
type_List[any]Filter by result type(s)
sincestrFilter out older results
videogameList[VideogameIdOrSlug]Filter by videogame(s)

Return Type

List[DeletionIncident]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverDeletionIncidents, RangeOverDeletionIncidents

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverDeletionIncidents(
id_=[
9
],
modified_at=[
"voluptate cu"
]
)
range=RangeOverDeletionIncidents(
id_=[
9
],
modified_at=[
"reprehenderit o"
]
)
sort=[
""
]
page=1
type_=[
""
]
videogame=[
1
]

result = sdk.incidents.get_deletions(
filter=filter,
range=range,
sort=sort,
page=page,
per_page=50,
type_=type_,
since="voluptat",
videogame=videogame
)

print(result)

get_incidents

Get the latest updates and additions.

This endpoint only provides the latest incident for an object. It does not keep track of previous incidents.

  • HTTP Method: GET
  • Endpoint: /incidents

Parameters

NameTypeRequiredDescription
filterFilterOverIncidentsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverIncidentsOptions to select results within ranges
For more information on ranges, see docs.
sortList[any]Options to sort results
For more information on sorting, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
per_pageintEquivalent to page[size]
type_List[any]Filter by result type(s)
sincestrFilter out older results
videogameList[VideogameIdOrSlug]Filter by videogame(s)

Return Type

List[Incident]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverIncidents, RangeOverIncidents

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverIncidents(
id_=[
9
],
modified_at=[
"eu"
],
opponents_filled=True
)
range=RangeOverIncidents(
id_=[
9
],
modified_at=[
"id offici"
]
)
sort=[
""
]
page=1
type_=[
""
]
videogame=[
1
]

result = sdk.incidents.get_incidents(
filter=filter,
range=range,
sort=sort,
page=page,
per_page=50,
type_=type_,
since="dolore adip",
videogame=videogame
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →