# Countries

### Get Countries

## Get a list of countries currently supported

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/trending/countries`

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK Gets a list of countries" %}

```
{
    "countries": [
        "Worldwide",
        "Algeria",
        "Argentina",
        "Australia",
        "Austria",
        "Bahrain",
        "Belarus",
        "Belgium",
        "Brazil",
        "Canada",
        "Chile",
        "Colombia",
        "Denmark",
        "Dominican Republic",
        "Ecuador",
        "Egypt",
        "France",
        "Germany",
        "Ghana",
        "Greece",
        "Guatemala",
        "India",
        "Indonesia",
        "Ireland",
        "Israel",
        "Italy",
        "Japan",
        "Jordan",
        "Kenya",
        "Korea",
        "Kuwait",
        "Latvia",
        "Lebanon",
        "Malaysia",
        "Mexico",
        "Netherlands",
        "New Zealand",
        "Nigeria",
        "Norway",
        "Oman",
        "Pakistan",
        "Panama",
        "Peru",
        "Philippines",
        "Poland",
        "Portugal",
        "Puerto Rico",
        "Qatar",
        "Russia",
        "Saudi Arabia",
        "Singapore",
        "South Africa",
        "Spain",
        "Sweden",
        "Switzerland",
        "Thailand",
        "Turkey",
        "Ukraine",
        "United Arab Emirates",
        "United Kingdom",
        "United States",
        "Venezuela",
        "Vietnam"
    ]
}
```

{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}

```bash
curl --request GET \
--url 'https://hashtag5.p.rapidapi.com/api/v2.1/trending/countries' \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```

{% endtab %}
{% endtabs %}

### Get  trending tags in a country

## Get a list of tags trending in the country

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/trending/:countryName/tags`

#### Path Parameters

| Name                                          | Type  | Description             |
| --------------------------------------------- | ----- | ----------------------- |
| countryName<mark style="color:red;">\*</mark> | India | The name of the country |

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK Gets a list of tags" %}

```json
{
    "tags": [
        "JawaharlalNehru",
        "SSMB28MassStrike",
        "NitinGadkari",
        "MyParliamentMyPride",
        "JiguJiguRail",
        "फर्जी_गौरव_यात्रा",
        "NITIAayog",
        "BeatDepression",
        "KhilafatForPeace",
        "SaturdayVibes",
        "IndiaWantsMamataDi",
        "Arikomban",
        "RajputSamratMihirbhoj",
        "AnushkaSharma",
        "Saturdaythoughts",
        "RamabaiAmbedkar",
        "SaturdayMotivation",
        "DelhiRains",
        "CallDetailsSay",
        "SaturdayMood"
    ]
}
```

{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}

```bash
curl --request GET \
--url 'https://hashtag5.p.rapidapi.com/api/v2.1/trending/india/tags' \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```

{% endtab %}
{% endtabs %}
