[GET] Get Countries

Modified on Tue, 11 Feb at 3:45 AM

https://api.s7risk.com

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

GET /geography/countriesGet countries

This endpoint gets all available countries. The countries returned can be filtered in scope by adding query parameters to your request.

HTTP Request

curl -X GET 'https://api.s7risk.com/geography/countries' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{YOUR_AUTHENTICATION_TOKEN}}' \
  -d 'search=United States' \
  -d 'area=in:[[[-100.01812173401174,33.81520071685678],[-76.79736397186467,32.46264362887847]]]' \
  -d 'sort=name:asc' \
  -d 'page=1' \
  -d 'pageSize=10' \
  --compressed

Headers

NameTypeRequiredDescription
AuthorizationstringYour authentication token

Query Parameters

NameTypeDescription
searchstringSearch countries using the given search term
areastringFilter by geometry
sortstringSort the results. Available options are name:asc or name:desc.
pageintA paginated result set. Defaults to 1
pageSizeintA limited result set. Defaults to 100

HTTP Response

{
  "status": "success",
  "data": {
    "countries": [
      {
        "code": "UMI",
        "alpha2": "UM",
        "name": "United States Minor Outlying Islands",
        "continent": {
          "code": "NA",
          "name": "North America"
        }
      },
      {
        "code": "USA",
        "alpha2": "US",
        "name": "United States",
        "continent": {
          "code": "NA",
          "name": "North America"
        }
      },
      {
        "code": "VIR",
        "alpha2": "VI",
        "name": "United States Virgin Islands",
        "continent": {
          "code": "NA",
          "name": "North America"
        }
      }
    ]
  }
}

Success

CodeStatusDescription
200SuccessReturns a body containing all valid tags

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