Screener API

Lists stocks in the specified region filtered and sorted by financial criteria such as price, P/E, P/B, market cap, and returns.


Screener

Returns a filtered and sorted list of stocks for the specified region. Filters and sort/pagination options are sent in the JSON request body; region is a query parameter and defaults to 'tr' (US is not currently supported). Supports filtering on price, daily change, P/E ratio, P/B ratio, market cap, and returns across 7 time windows. Numeric fields in the response may be null when the upstream has no value.

curl --request POST \
  --url 'https://api.getlaplace.com/api/v1/screener?region=tr' \
  --header 'Authorization: Bearer your-api-key' \
  --header 'Content-Type: application/json' \
  --data '{
  "filters": {
    "price": {
      "max": 500,
      "min": 10.5
    },
    "pbRatio": {
      "max": 3,
      "min": 0.5
    },
    "peRatio": {
      "max": 20,
      "min": 5
    },
    "marketCap": {
      "max": 1000000000000,
      "min": 10000000000
    },
    "ytdReturn": {
      "max": 1,
      "min": 0.1
    },
    "dailyChange": {
      "max": 0.1,
      "min": 0.02
    },
    "weeklyReturn": {
      "max": 0.1,
      "min": 0.01
    },
    "yearlyReturn": {
      "max": 2,
      "min": 0.2
    },
    "monthlyReturn": {
      "max": 0.3,
      "min": 0.05
    },
    "fiveYearReturn": {
      "max": 10,
      "min": 1
    },
    "threeYearReturn": {
      "max": 5,
      "min": 0.5
    },
    "threeMonthReturn": {
      "max": 0.5,
      "min": 0.1
    }
  },
  "sortBy": "marketCap",
  "sortOrder": "desc",
  "page": 1,
  "pageSize": 20
}'

Parameters

NameDescriptionExampleParameter TypeData Type
region
Region code (tr: Turkey, us: United States). Defaults to 'tr' if omitted. 'us' is not currently supported and will return 400 unsupported_region.
querystring
filters
Filter object. Each field accepts an optional `{min, max}` pair; both bounds are optional and inclusive. If both are set, `min` must be <= `max`. Available fields: price, dailyChange, peRatio, pbRatio, marketCap, weeklyReturn, monthlyReturn, threeMonthReturn, yearlyReturn, threeYearReturn, fiveYearReturn, ytdReturn.
{"price":{"max":500,"min":10.5},"pbRatio":{"max":3,"min":0.5},"peRatio":{"max":20,"min":5},"marketCap":{"max":1000000000000,"min":10000000000},"ytdReturn":{"max":1,"min":0.1},"dailyChange":{"max":0.1,"min":0.02},"weeklyReturn":{"max":0.1,"min":0.01},"yearlyReturn":{"max":2,"min":0.2},"monthlyReturn":{"max":0.3,"min":0.05},"fiveYearReturn":{"max":10,"min":1},"threeYearReturn":{"max":5,"min":0.5},"threeMonthReturn":{"max":0.5,"min":0.1}}bodyobject
sortBy
Sort field. Defaults to alphabetical by symbol if not specified.
bodystring
sortOrder
Sort direction (asc: ascending, desc: descending).
bodystring
page
Page number, 1-based (1-10000, default 1).
1bodynumber
pageSize
Number of results per page (1-100, default 20).
20bodynumber

Response

(Note: Actual response can be different length and other fields may be present)

▼"root" : { 2 items … }
▼"items" : [ 1 items … ]
▼0 : { 13 items … }
"price" : float931.5
"symbol" : string"AKBNK"
"pbRatio" : float15.6
"peRatio" : float84.6
"marketCap" : int4841200000000
"ytdReturn" : float27.04
"dailyChange" : float27.12
"weeklyReturn" : float0.417
"yearlyReturn" : float27.47
"monthlyReturn" : float0.552
"fiveYearReturn" : float1589.99
"threeYearReturn" : float423.26
"threeMonthReturn" : float27.04
}
]
"recordCount" : int511
}

© 2024 Laplace API. All rights reserved.