Blog

  • moz

    import requests
    
    url = "https://moz.com/api/v1/url_metrics"
    querystring = {"url":"example.com"}
    headers = {
        "X-RapidAPI-Key": "5dfcc71254mshfcfd5832da06531p163ef1jsnac1ec757e6bb",
        "X-RapidAPI-Host": "moz.com"
    }
    
    response = requests.get(url, headers=headers, params=querystring)
    print(response.json())

    import requests

    url = “https://moz.com/api/v1/url_metrics”
    querystring = {“url”:”example.com”}
    headers = {
    “X-RapidAPI-Key”: “5dfcc71254mshfcfd5832da06531p163ef1jsnac1ec757e6bb”,
    “X-RapidAPI-Host”: “moz.com”
    }

    response = requests.get(url, headers=headers, params=querystring)
    print(response.json())

  • gggg

    function call_rapidapi() {
    $response = wp_remote_get( ‘https://API-ENDPOINT-HERE’, [
    ‘headers’ => [
    ‘X-RapidAPI-Key’ => ‘আপনার_API_কী’,
    ‘X-RapidAPI-Host’ => ‘API-HOST-NAME’
    ]
    ]);

    if(!is_wp_error($response)) {
    $body = json_decode($response[‘body’], true);
    // ডাটা প্রসেস করুন
    return $body;
    }
    }
    add_shortcode(‘rapidapi_data’, ‘call_rapidapi’);

  • {
    “status”: “success”,
    “srDomain”: “amazon.com”,
    “srRank”: “7”,
    “srKeywords”: “111063682”,
    “srTraffic”: “549194862”,
    “srCosts”: “293408463”,
    “srUrlLinks”: “20148717”,
    “srHostLinks”: “6648567494”,
    “srDomainLinks”: “7387828847”
    }

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!