Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

StockAnalysis Stock List

API दस्तावेज़
https://api.sandbase.ai/v1/api/stockanalysis/stock-list

Stocks from a curated stock list by URL slug. Returns the list title, description, stock count, and an array of stock entries with symbol, name, market cap, price, change, and revenue.

मूल्य
$0.01USD / कॉल
मेथड
POST
प्रतिक्रिया
Async JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
List slug from the site URL path.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

StockAnalysis Stock List

Returns a list of stocks from a StockAnalysis list page, plus the list's total stock count. It needs one input: the list slug from the site URL, such as biggest-companies.

Use cases

  • Pull the largest companies by market cap into a ranked table.
  • Build a watchlist with ticker symbols, prices, and daily change from a named list.
  • Draw small one-year price charts from spark1y next to each company name.
  • Group listed companies by country or state to see where the biggest names are based.

Request

curl -X POST "https://api.sandbase.ai/v1/api/stockanalysis/stock-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "biggest-companies"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
slugstringYesList slug from the site URL path.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "count": 53518,
    "description": null,
    "slug": "biggest-companies",
    "stocks": [
      {
        "change": -1.83,
        "country": "United States",
        "isPrimaryListing": true,
        "logo": "https://logos.stockanalysis.com/aapl.svg",
        "logoDark": "https://logos.stockanalysis.com/aapl-dark.svg",
        "marketCapUSD": 4937502977600,
        "n": "Apple Inc.",
        "no": 1,
        "price": 338.32,
        "priceCurrency": "USD",
        "priceUSD": 338.32,
        "s": "AAPL"
      }
    ],
    "title": null
  },
  "status": "success"
}

Response fields

FieldMeaning
data.countTotal number of stocks in the list. The response shows only part of them in data.stocks.
data.slugThe list slug that was requested.
data.title / data.descriptionList title and description. Both can be null.
data.stocks[].s / data.stocks[].nTicker symbol (such as AAPL) and company name.
data.stocks[].noRank of the stock within the list, starting at 1.
data.stocks[].price / data.stocks[].priceCurrencyLatest price and the currency it is quoted in.
data.stocks[].priceUSD / data.stocks[].marketCapUSDPrice and market cap converted to US dollars. Use these to compare stocks across currencies.
data.stocks[].changePrice change value for the stock, for example -1.83.
data.stocks[].spark1yArray of prices for a one-year sparkline chart.
data.stocks[].country / data.stocks[].stateCountry and state or region of the company.

Notes

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON
StockAnalysis$0.01 प्रति कॉलअसिंक्रोनस JSON

प्रश्न

FAQ

StockAnalysis Stock List API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/stockanalysis/stock-list पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

StockAnalysis Stock List API की लागत कितनी है?

$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

StockAnalysis Stock List API कौन-से parameters स्वीकार करती है?

आवश्यक: slug (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

StockAnalysis Stock List API क्या लौटाती है?

एक JSON result। यह endpoint asynchronously चलता है, इसलिए response आपको बताता है कि तैयार result कैसे प्राप्त करना है। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक StockAnalysis developer account या API key चाहिए?

नहीं। StockAnalysis Stock List SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से StockAnalysis API access के लिए आवेदन करने की आवश्यकता नहीं है।