Requires read_products access scope.
For more info, refer to:
GET https://{handle}.myshopline.com/admin/openapi/v20261201/markets/:markets_id/products.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Get a list of published product details for a specified market.
Path Parameters
  • markets_id string required
    The unique identifier for a market.
    Maximum length:64
    Example: 2805879435494983497000
Query Parameters
  • limit string
    The maximum number of product IDs to be returned in the query.
    Value range: 1-250
    Default value: 50
  • page_info string
    The unique identifier for pagination queries, used to locate a specific page.
    This parameter value is obtained from the link value in the response header of this API after you have queried the pagination information.
    For example, if the link value you obtained is <https://{handle}.myshopline.com/admin/openapi/{version}/markets/:markets_id/products.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next" , the value of page_info is eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9 .
    For more information on how to use pagination, refer to Paging Mechanism.
Request Headers
  • Content-Type string required
    The field must be set to the fixed value application/json; charset=utf-8.
  • Authorization string required
    The access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
For the complete list of codes and messages, see Http status code.

Response Headers
  • link
    The URL link that provides the pagination data. You can obtain page_info from this parameter for subsequent pagination requests.
    This parameter is returned when the requested page has a previous or next page.
    For more information on how to use pagination, refer to Paging Mechanism.
  • traceId
    A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
  • product_ids array
    A list of product IDs published in the market.
    Example: ["16057850264845250791280282","16057850264845250333280282"]
  • products_count integer
    The number of products published in the market.
    Example: 50
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20261201

ParamOptions

path required
header required
query
query

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20261201/markets/markets_id/products.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
Get the list of published products in the market
Response
{
"product_ids": [
"16065793365869904616712340",
"16065793323425393631512340",
"16065690901535908341382340",
"16065690895797261611862340",
"16064130513208279099762340",
"16064130513114830006072340",
"16063827081911638501372340",
"16063827068327294480742340",
"16063826695322974362142340",
"16063826691183699652712340",
"16063824173154264755072340",
"16063434376948322207362340",
"16063434197904221869752340",
"16061634995776701135972340",
"16061246306308668863802340",
"16060405504526209790962788",
"16060405487448010311972788",
"16060405479426320035142788",
"16060405465922339097612788",
"16060389009008390587282788",
"16060388517788618662442788",
"16060388466424500983352788",
"16060168249162080005412788",
"16060138163779023693422788",
"16060128949221969178472788",
"16060128836758418310932788",
"16060128823883918292452788",
"16060128351674074473402788",
"16060128291745020059602788",
"16060128252554617897002788",
"16059678845260925524882788",
"16059678778391472401032788",
"16059677572514140705172788",
"16059625605167943573222788",
"16059625605010405484432788",
"16059358474019188528132788",
"16059211472066521570672788",
"16057660312387633863902788",
"16057660305330297953112788",
"16057660223136032411232788",
"16057660172527392801092788",
"16057590153890829521112788"
],
"products_count": 42
}
Was this article helpful to you?