Hi, i want to develop a new fun, but how to get sql text’s value. For example, select * from some_table limit n, now i want to get limit value. Some api can be used in redash? Thanks.

Not sure what you mean. But you can get the full query text through the API at api/queries/<query id>.