Docs

Sharlife API

Generate your API key in the developer portal and use it to access Shariah-screened market data through the Sharlife API.

Introduction

The Sharlife API is organized around REST. Our API uses predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Current API scope

The current API provides read-only access to Shariah-screened crypto and stock data, depending on your plan access.

Base URL

All API requests are made against https://api.sharlife.my.

Authentication

The Sharlife API uses API keys to authenticate requests. You can view and manage your API keys in the Sharlife Developer Portal.

API key format

Current API keys use the prefix shl_api_.

Keep your key secure

Do not share your API key in public repositories, client-side code, or any publicly accessible area.

Accepted authentication headers

Authentication can be performed with x-api-key. The API also accepts Authorization: Bearer <api_key>.

HTTPS required

All API requests must be made over HTTPS. Requests made without authentication will fail.

API Reference

List Crypto Assets

Returns a lightweight summary list of crypto assets ordered by market cap.

GET /crypto/v1/list

Availability

Plan Access Notes
Free Trial Yes Limit to top 50 market cap.

Authorizations

x-api-key
string header required

Get API key via https://dev.sharlife.my/api-keys

Query Parameters

This endpoint does not require any query parameters.

Response

This endpoint is intentionally lightweight. Use /crypto/v1/info for the full screening record.

Field Type Description
name string Asset display name.
name_id string Stable asset identifier.
ticker string Asset symbol.
shariah_status string Current Shariah status label.
quote object Price, market cap, volume, and 24h change.
API Reference

Get Crypto Info

Returns the detailed Shariah screening document for a single asset using name_id.

GET /crypto/v1/info

Availability

Plan Access Notes
Free Trial Yes Limit to top 50 market cap.

Authorizations

x-api-key
string header required

Get API key via https://dev.sharlife.my/api-keys

Query Parameters

Query Type Required Description
name_id string Yes The asset identifier, for example ethereum.

Response

This endpoint returns the full screening record, including analysis blocks and deep project metadata.

Field Type Description
name string Asset display name.
name_id string Stable asset identifier.
ticker string Asset symbol.
shariah_status string Current Shariah status label.
consensus_mechanism string | null Consensus mechanism metadata.
analysis string Primary Shariah screening explanation.
whitepaper_link string | null Whitepaper URL from the source record.
in_depth_analysis object Detailed legitimacy, project, token, and reward analysis.
last_screening object Latest screening quarter and year.
about string | null Project background and source summary.
others_document array Additional related source documents.
overview string | null Human-readable project summary.
quote object Current market metrics subset from the source record.
API Reference

List Stocks

Returns a lightweight summary list of stocks ordered by market cap.

GET /stock/v1/list

Availability

Plan Access Notes
Free Trial No

Authorizations

x-api-key
string header required

Get API key via https://dev.sharlife.my/api-keys

Query Parameters

This endpoint does not require any query parameters.

Response

This endpoint returns a lighter stock summary. Use /stock/v1/info for the full screening record.

Field Type Description
ticker string Stock ticker symbol.
stock_id string Stable stock identifier.
name string Company display name.
exchange object Exchange name metadata.
sector array Assigned sector labels from the source record.
shariah object Latest final Shariah outcome summary.
API Reference

Get Stock Info

Returns the detailed Shariah screening document for a single stock using stock_id.

GET /stock/v1/info

Availability

Plan Access Notes
Free Trial No

Authorizations

x-api-key
string header required

Get API key via https://dev.sharlife.my/api-keys

Query Parameters

Query Type Required Description
stock_id string Yes The stock identifier, for example apple-inc.

Response

This endpoint returns a structured stock screening record with selected financial and Shariah fields.

Field Type Description
ticker string Stock ticker symbol.
country string Country code.
exchange object Exchange name metadata.
market string Market code.
name string Company display name.
sector array Assigned sector labels.
stock_id string Stable stock identifier.
revenue_breakdown object Revenue screening data with ai sections removed.
industry object Industry classification and non-compliant industry markers.
main_business string Main business summary.
type string Security type.
financial object Yearly financial screening data, including liabilities and cash ratios.
final_shariah object Final Shariah decision by fiscal year. Years without shariah_status are excluded.