Endpoint (example) https://blogger.jmcstore.in/comics/mangadass/gettrendingpost.php Purpose Scrape the target page passed via the url parameter and return structured JSON with these sections under results: trending, page_items, pagination, main_menu, second_menu, order_nav_tabs. Each subsection provides its own success boolean and either data or error. HTTP Method: POST (the host only accepts POST — do not use GET) Content-Type: application/x-www-form-urlencoded (or multipart/form-data) Required form field: url — full target page URL (must be http or https, < 2048 chars) Validation applied by the API url required and must be a valid http or https URL with a host. Maximum length: 2048 characters. On invalid input the endpoint returns HTTP 400 with a JSON error message. Example Requests curl — POST (form-encoded) curl -sS -X POST "https://blogger.jmcstore.in/comics/mangadass/gettrendingpost.php" \ -H "Accept: application/json" \ -d "url=https://mangadass.com/" JavaScript (fetch) — POST const api = 'https://blogger.jmcstore.in/comics/mangadass/gettrendingpost.php'; const body = new URLSearchParams({ url: 'https://mangadass.com/' }); fetch(api, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', Accept: 'application/json' }, body: body.toString() }) .then(r => { if (!r.ok) throw new Error(r.status); return r.json(); }) .then(json => console.log(json)) .catch(err => console.error('API error', err)); Exact JSON Example Format — Response A (shortened, same keys/nesting as your original) { "success": true, "source": "https://mangadass.com/", "results": { "trending": { "success": true, "data": [ { "thumb_page": "https://mangadass.com/manga/example-series-1", "thumb_title_attr": "Example Series One", "thumb_image": "https://mangadass.com/webtoon/example-series-1m.jpg", "meta": "Chapter 12", "title": "Example Series One", "title_link": "https://mangadass.com/manga/example-series-1" }, { "thumb_page": "https://mangadass.com/manga/example-series-2", "thumb_title_attr": "Example Series Two", "thumb_image": "https://mangadass.com/webtoon/example-series-2m.jpg", "meta": "Chapter 5", "title": "Example Series Two", "title_link": "https://mangadass.com/manga/example-series-2" }, { "thumb_page": "https://mangadass.com/manga/example-series-3", "thumb_title_attr": "Example Series Three", "thumb_image": "https://mangadass.com/webtoon/example-series-3m.jpg", "meta": "Chapter 1", "title": "Example Series Three", "title_link": "https://mangadass.com/manga/example-series-3" } ] }, "page_items": { "success": true, "data": [ { "thumb_page": "https://mangadass.com/manga/dungeon-odyssey", "thumb_image": "https://mangadass.com/webtoon/dungeon-odysseym.jpg", "title": "Dungeon Odyssey", "title_link": "https://mangadass.com/manga/dungeon-odyssey", "rate": "3.57", "chapters": [ { "chapter_text": "Chapter 137", "chapter_link": "https://mangadass.com/manga/dungeon-odyssey/chapter-137", "post_on_img": "https://mangadass.com/images/new.gif" }, { "chapter_text": "Chapter 136", "chapter_link": "https://mangadass.com/manga/dungeon-odyssey/chapter-136", "post_on_img": null } ] }, { "thumb_page": "https://mangadass.com/manga/example-short", "thumb_image": "https://mangadass.com/webtoon/example-shortm.jpg", "title": "Example Short", "title_link": "https://mangadass.com/manga/example-short", "rate": "4.00", "chapters": [ { "chapter_text": "Chapter 10", "chapter_link": "https://mangadass.com/manga/example-short/chapter-10", "post_on_img": "https://mangadass.com/images/new.gif" } ] } ] }, "pagination": { "success": true, "data": { "links": [ { "type": "span", "text": "«", "href": null, "data_page": null, "class": "prev disabled", "is_active": false, "is_disabled": true }, { "type": "link", "text": "1", "href": "https://mangadass.com/page/1", "data_page": "0", "class": "active", "is_active": true, "is_disabled": false }, { "type": "link", "text": "2", "href": "https://mangadass.com/page/2", "data_page": "1", "class": null, "is_active": false, "is_disabled": false }, { "type": "link", "text": "»", "href": "https://mangadass.com/page/2", "data_page": "1", "class": "next", "is_active": false, "is_disabled": false } ], "active": { "type": "link", "text": "1", "href": "https://mangadass.com/page/1", "data_page": "0", "class": "active", "is_active": true, "is_disabled": false } } }, "main_menu": { "success": true, "data": [ { "text": "Home", "href": "https://mangadass.com/" }, { "text": "Manga List", "href": "https://mangadass.com/manga" }, { "text": "Completed", "href": "https://mangadass.com/completed" } ] }, "second_menu": { "success": true, "data": [ { "li_class": null, "text": "Manhwa", "href": "https://mangadass.com/manga-genre/manhwa", "has_submenu": false, "submenu": [] }, { "li_class": "more-genres", "text": "More", "href": null, "has_submenu": true, "submenu": [ { "text": "Action", "href": "https://mangadass.com/manga-genre/action", "title_attr": "Read Action Manga Online" }, { "text": "Romance", "href": "https://mangadass.com/manga-genre/romance", "title_attr": "Read Romance Manga Online" } ] } ] }, "order_nav_tabs": { "success": true, "data": { "found": false, "message": "order-nav-tabs not found" } } } } The JSON above uses exactly the same key names and nesting as your original payload; repeated lists are shortened and values changed for clarity. Exact JSON Example Format — Response B (genre page) (matches the second response you supplied, trimmed) { "success": true, "source": "https://mangadass.com/manga-genre/manhua", "results": { "trending": { "success": true, "data": [] }, "page_items": { "success": true, "data": [ { "thumb_page": "https://mangadass.com/manga/i-am-the-fated-villain", "thumb_image": "https://mangadass.com/webtoon/i-am-the-fated-villainm.jpg", "title": "I Am the Fated Villain", "title_link": "https://mangadass.com/manga/i-am-the-fated-villain", "rate": "4.3", "chapters": [ { "chapter_text": "Chapter 293", "chapter_link": "https://mangadass.com/manga/i-am-the-fated-villain/chapter-293", "post_on_img": null }, { "chapter_text": "Chapter 292", "chapter_link": "https://mangadass.com/manga/i-am-the-fated-villain/chapter-292", "post_on_img": null } ] }, { "thumb_page": "https://mangadass.com/manga/soul-land-iv-the-ultimate-combat", "thumb_image": "https://mangadass.com/webtoon/soul-land-iv-the-ultimate-combatm.jpg", "title": "Soul Land IV - The Ultimate Combat", "title_link": "https://mangadass.com/manga/soul-land-iv-the-ultimate-combat", "rate": "4", "chapters": [ { "chapter_text": "Chapter 590", "chapter_link": "https://mangadass.com/manga/soul-land-iv-the-ultimate-combat/chapter-590", "post_on_img": null }, { "chapter_text": "Chapter 589", "chapter_link": "https://mangadass.com/manga/soul-land-iv-the-ultimate-combat/chapter-589", "post_on_img": null } ] }, { "thumb_page": "https://mangadass.com/manga/demonic-emperor", "thumb_image": "https://mangadass.com/webtoon/demonic-emperorm.jpg", "title": "Demonic Emperor", "title_link": "https://mangadass.com/manga/demonic-emperor", "rate": "4.4", "chapters": [ { "chapter_text": "Chapter 781", "chapter_link": "https://mangadass.com/manga/demonic-emperor/chapter-781", "post_on_img": null }, { "chapter_text": "Chapter 780", "chapter_link": "https://mangadass.com/manga/demonic-emperor/chapter-780", "post_on_img": null } ] } ] }, "pagination": { "success": true, "data": { "links": [], "active": null } }, "main_menu": { "success": true, "data": [ { "text": "Home", "href": "https://mangadass.com/" }, { "text": "Manga List", "href": "https://mangadass.com/manga" }, { "text": "Completed", "href": "https://mangadass.com/completed" }, { "text": "Raw Manhwa", "href": "https://mangadass.com/raw-manhwa" } ] }, "second_menu": { "success": true, "data": [ { "li_class": null, "text": "Manhwa", "href": "https://mangadass.com/manga-genre/manhwa", "has_submenu": false, "submenu": [] } ] }, "order_nav_tabs": { "success": true, "data": { "found": true, "tabs": [ { "text": "Latest", "href": "https://mangadass.com/manga-genre/manhua?orderby=latest", "title_attr": "Latest", "class": null }, { "text": "A-Z", "href": "https://mangadass.com/manga-genre/manhua?orderby=alphabet", "title_attr": "Alphabet", "class": null }, { "text": "Rating", "href": "https://mangadass.com/manga-genre/manhua?orderby=rating", "title_attr": "Rating", "class": null }, { "text": "Trending", "href": "https://mangadass.com/manga-genre/manhua?orderby=trending", "title_attr": "Trending", "class": null } ] } } } } This example preserves the exact keys and nesting of your original payload for the genre page — values trimmed for readability. Error responses Missing url param (HTTP 400): { "success": false, "error": "Missing \"url\" parameter." } Invalid URL (HTTP 400): { "success": false, "error": "Invalid URL format." } Function-level failure (partial success): { "success": true, "source": "https://mangadass.com/", "results": { "trending": { "success": false, "error": "Failed to fetch trending: timeout" }, "page_items": { "success": true, "data": [ /* ... */ ] }, "pagination": { "success": true, "data": { "links": [], "active": null } }, "...": "..." } }