[GET] Get source media

Modified on Tue, 11 Feb at 3:50 AM

https://api.s7risk.com

The Incident API provides well constructed high-quality, highly-tailored and scalable threat intelligence data.

GET /source-mediaGet source media

This endpoint gets all available source media. The source media returned can be filtered by adding search parameters to your request.

HTTP Request

curl -X GET 'https://api.s7risk.com/source-media' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{YOUR_AUTHENTICATION_TOKEN}}' \
  -d 'search=saudi' \
  -d 'sort=desc' \
  -d 'page=1' \
  -d 'pageSize=20' \
  --compressed

Headers

NameTypeRequiredDescription
Authorizationstring✔️Your authentication token (see the Auth API section for more information)

Query Parameters

NameTypeDescription
searchstringSearch source media using the given search term
sortstringSort the results by the given properties. Available options name:asc or name:desc, alternatively sort by id with id:asc or id:desc. If no sort order is specified then results are sorted by their relevancy
pageintA paginated result set. Defaults to 1
pageSizeintA limited result set. Defaults to 100

HTTP Response

{
    "data": [
        {
            "id": "f2f5b64b-72bf-4774-8835-1aa72a4caa13",
            "name": "Saudi Gazette"
        },
        {
            "id": "22b3c59a-471a-45b5-a8ea-051f0b031c98",
            "name": "Ministry of Interior of Saudi Arabia"
        },
        {
            "id": "12d94a6c-9cb8-4917-b438-4b2777f816d8",
            "name": "Saudi press association"
        }
    ]
}

Success

CodeStatusDescription
200SuccessReturns a body containing all valid source media

Errors

CodeStatusDescription
401UnauthorizedExpired or Invalid Authentication token
422Unprocessable EntityIncorrect or invalid search parameter

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article