Pakistan Science News API

Get the live top science headlines from Pakistan with our JSON API.

Get API key for the Pakistan Science News API

API Demonstration

This example demonstrates the HTTP request to make and the JSON response you will receive when you use the news api to get the top headlines from Pakistan.

GET
https://gnews.io/api/v4/top-headlines?country=pk&category=science&apikey=API_KEY
{
    "totalArticles": 24582,
    "articles": [
        {
            "id": "6c364bbfe1c0a05fb2bd30b571da7dba",
            "title": "Warty Birch Caterpillars Detect Predatory Ladybeetles Through Leaf Vibrations",
            "description": "Warty birch caterpillars detect the approach of predato […]",
            "content": "Warty birch caterpillars detect the approach of predatory ladybeetles by sensing vibrations transmitted through the leaves they inhabit, according to a study published in the *Journal of Experimental Biology*. Researchers from Carleton University fou... [811 chars]",
            "url": "https://www.geneonline.com/warty-birch-caterpillars-detect-predatory-ladybeetles-through-leaf-vibrations/",
            "image": "https://www.geneonline.com/wp-content/uploads/EN_NEWSFLASH_5-1.png",
            "publishedAt": "2026-06-04T00:20:28Z",
            "lang": "en",
            "source": {
                "id": "e5376462a7128acdb762718aa2daf90e",
                "name": "geneonline.com",
                "url": "https://www.geneonline.com"
            }
        },
        {
            "id": "fe39564613559f9962c87d9cd295b481",
            "title": "ScaHybNet: a scalogram-based hybrid ensemble network for ECG arrhythmia classification",
            "description": "Cardiovascular diseases are the leading cause of death in the world, requiring the accurate and timely detection of arrhythmias to prevent sudden cardiac death. In this work, ScaHybNet, a deep learning ensemble model is proposed for multi-class arrhythmia classification using the widely adopted ECG Heartbeat Categorization Dataset. The dataset comprises 109,446 samples across five heartbeat classes (N, S, V, F, Q), enabling comprehensive arrhythmia analysis. The proposed method first transforms the ECG signals to 224 × 224 RGB-scalogram images using CWT with the Morlet wavelet. Then, a hybrid model is developed, which is composed of (1) a residual block-based CNN with skip connections to learn spatial features, (2) a BiLSTM layer for learning temporal features from the CNN feature maps and (3) a Transformer encoder layer with a custom-built multi-head self-attention mechanism to capture long-term dependencies. Thus, to address the extreme class imbalance within the data, stratified balancing of the data among normal beat, supraventricular ectopic beat, ventricular ectopic beat, fusion beat, and unknown beat, and inverse-frequency class weighting were performed. They assessed model robustness using fivefold cross-validation. Hyperparameters set to final values included a batch size of 2, 150 epochs, and an Adam optimizer. Ensemble train accuracy 99.81% and the mean accuracy on the fivefold cross validation set was 90.42% ± 1.26 (std) for ScaHybNet. On the test set (unseen data), it showed a total ensemble test accuracy of 94.73%, precision of 76.51%, recall of 82.93%, and F1-score of 77.40%. The ablation test proved the joint efficacy of each part of the model, and state-of-the-art analysis revealed better or equal results on current standards regarding ECG data with noise and imbalance. ScaHybNet appears to offer the potential to act as a more patient-centric tool that could offer considerable benefits to the medical field.",
            "content": "Cardiovascular diseases are the leading cause of death in the world, requiring the accurate and timely detection of arrhythmias to prevent sudden cardiac death. In this work, ScaHybNet, a deep learning ensemble model is proposed for multi-class arrhy... [1707 chars]",
            "url": "https://www.nature.com/articles/s41598-026-53755-2?error=cookies_not_supported&code=8eb8b8b3-ac7c-473f-892e-604bac992982",
            "image": "https://www.nature.com/static/images/favicons/nature/favicon-48x48-b52890008c.png",
            "publishedAt": "2026-06-03T22:39:18Z",
            "lang": "en",
            "source": {
                "id": "7abf0df285fbe93cdccffcc7c4088737",
                "name": "Nature",
                "url": "https://www.nature.com"
            }
        },
        {
            "id": "0186810643fc5e9012aae77063363869",
            "title": "Brain’s Internal Disappointment Meter Forces Behavioral Change",
            "description": "New research discovers a lateral habenula cell group acting as a disappointment meter when reality misses expectations.",
            "content": "Summary: A precision developmental neurobiology and behavioral study has identified a dedicated group of brain cells that function as a physical “disappointment meter.” The research isolates a distinct type of neuron located deep within the lateral h... [10757 chars]",
            "url": "https://neurosciencenews.com/habenula-disappointment-meter-neurons-30816/",
            "image": "https://neurosciencenews.com/files/2026/06/disappointment-neurosceince.jpg",
            "publishedAt": "2026-06-03T20:47:38Z",
            "lang": "en",
            "source": {
                "id": "70b4bf2b5b3ca97debe457804c1d46d0",
                "name": "Neuroscience News",
                "url": "https://neurosciencenews.com"
            }
        }
    ]
}

Categories