Live
get_medicine_widgets
1mg.comRetrieves related-product widget sections, substitutes, and medicine Q&A from https://1mg.com for a medicine slug ID.
Parameters3
Runs9
Updated10d ago
Operational9 runs · 100% succeeded
30 days ago90 days agoranfailednot checkedtoday
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_medicine_widgets?
Retrieves related-product widget sections, substitutes, and medicine Q&A from https://1mg.com for a medicine slug ID. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass slug_id, city, locale and get the result back without maintaining a scraper.
Response
{
"slug_id": "<string>",
"questions": [
{
"answer": "<string>",
"question": "<string>",
"source_fields": {}
}
],
"numeric_id": "<string>",
"substitutes": {
"type": "<string>",
"header": "<string>",
"records": [
{
"url": "<string>",
"name": "<string>",
"price": {},
"rating": {},
"identity": "<string>",
"available": true,
"source_type": "<string>",
"source_fields": {}
}
]
},
"medicine_url": "<string>",
"q_and_a_type": "<string>",
"medicine_name": "<string>",
"q_and_a_header": "<string>",
"question_count": 0,
"widget_sections": [
{
"type": "<string>",
"header": "<string>",
"records": [
{
"url": "<string>",
"name": "<string>",
"price": {},
"rating": {},
"identity": "<string>",
"available": true,
"source_type": "<string>",
"source_fields": {}
}
],
"sub_type": "<string>",
"sub_header": "<string>",
"widget_type": "<string>"
}
],
"substitute_count": 0,
"widget_record_count": 0,
"widget_section_count": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/4dad8345-155f-44d7-bea0-38ca029ecf2d/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "4dad8345-155f-44d7-bea0-38ca029ecf2d",
"variables": {
"slug_id": "dolo-650-tablet-74467",
"city": "Gurgaon",
"locale": "en"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="4dad8345-155f-44d7-bea0-38ca029ecf2d") — the "get_medicine_widgets" function, which retrieves related-product widget sections, substitutes, and medicine Q&A from https://1mg.com for a medicine slug ID.. It takes slug_id (str), city (str), locale (str). Return the result as structured JSON.