{"__v":0,"_id":"55abdb6b63a6b60d00661706","category":{"__v":21,"_id":"55a7aee94a33f92b00b7a154","pages":["55a7aee94a33f92b00b7a156","55a7ea403efe0c2f0074cb75","55a80eb23ec2ec0d00bd66ea","55a811fc6e61e619004f703e","55a8c513cf45e1390093f18c","55a8d9fa27a17d210052516d","55a8f048cf45e1390093f248","55aba4ba63a6b60d006616e1","55abab0a0685ce0d0049fb8d","55abb04da36ccd0d00fdebc1","55abc1cc63a6b60d006616f4","55abcdbd63a6b60d006616fa","55abd36763a6b60d00661700","55abd50ea36ccd0d00fdebdb","55abd8c3a36ccd0d00fdebdf","55abd9cc0685ce0d0049fbb5","55abdb6b63a6b60d00661706","55abdc9b0685ce0d0049fbb8","55c1f5fca131980d005be95b","55fac407bc972f0d0005f644","569f68e766a5640d00efa52d"],"project":"55a7aee84a33f92b00b7a150","version":"55a7aee84a33f92b00b7a153","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-16T13:17:29.102Z","from_sync":false,"order":2,"slug":"endpoints","title":"Endpoints"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"55a7aee84a33f92b00b7a150","user":"55a7ae50bf1be93100d89df1","version":{"__v":6,"_id":"55a7aee84a33f92b00b7a153","project":"55a7aee84a33f92b00b7a150","createdAt":"2015-07-16T13:17:28.411Z","releaseDate":"2015-07-16T13:17:28.411Z","categories":["55a7aee94a33f92b00b7a154","55a7fefa3efe0c2f0074cbdf","55a8fb10c8bd450d000dd130","55a936b1cf45e1390093f362","55abddeaa36ccd0d00fdebe1","5624db675a86b423009462e1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-19T17:16:27.389Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl https://api.aylien.com/api/v1/hashtags \\\n   -H \"X-AYLIEN-TextAPI-Application-Key: [[app:key]]\" \\\n   -H \"X-AYLIEN-TextAPI-Application-ID: [[app:id]]\" \\\n   -d url=\"http://www.bbc.com/sport/0/football/25912393\"","language":"curl"},{"code":"textapi.hashtags({\n  url: 'http://www.bbc.com/sport/0/football/25912393'\n}, function(error, response) {\n  if (error === null) {\n    console.log(response.hashtags);\n  }\n});","language":"javascript"},{"code":"url = \"http://www.bbc.com/sport/0/football/25912393\"\nhashtags = client.Hashtags({\"url\": url})\nprint ', '.join(hashtags['hashtags'])","language":"python"},{"code":"<?php\n$url = 'http://www.bbc.com/sport/0/football/25912393';\n$hashtags = $textapi->Hashtags(array('url' => $url));\necho implode(', ', $hashtags->hashtags);\n?>","language":"php"},{"code":"HashTagsParams.Builder builder = HashTagsParams.newBuilder();\njava.net.URL url = new java.net.URL(\"http://www.bbc.com/sport/0/football/25912393\");\nbuilder.setUrl(url);\nHashTags hashTags = client.hashtags(builder.build());\nfor (String hashTag: hashTags.getHashtags()) {\n\t\tSystem.out.println(hashTag);\n}","language":"java"},{"code":"url = \"http://www.bbc.com/sport/0/football/25912393\"\n\nresponse = client.hashtags(url: url)\n\nputs response[:hashtags].join(', ')","language":"ruby"},{"code":"url := \"http://www.bbc.com/sport/0/football/25912393\"\nhashtagsParams := &textapi.HashtagsParams{URL: url}\nhashtags, err := client.Hashtags(hashtagsParams)\nif err != nil {\n\t\tpanic(err)\n}\nfor _, h := range hashtags.Hashtags {\n\t\tfmt.Printf(\"%s\\t\", h)\n}","language":"go"},{"code":"string url = \"http://www.bbc.com/sport/0/football/25912393\";\n\nvar hashtags = client.Hashtags(url: url);\n\nConsole.WriteLine(string.Join(\", \", hashtags.HashtagsMember));","language":"csharp"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"language\":\"en\",\n  \"hashtags\":[\n    \"#LionelMessi\",\n    \"#FCBarcelona\",\n    \"#France\",\n    \"#ParisSaintGermainFC\",\n    \"#GerardoMartino\",\n    \"#RAC1\",\n    \"#ArgentinaNationalFootballTeam\",\n    \"#JosepMariaBartomeu\"\n  ],\n  \"text\":\"Messi not for sale - Barca president\\nLionel Messi: Forward is not for sale, says Barcelona president\\n\\nBarcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\\n\\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\\n\\nIn an interview with radio station RAC1, posted on Barcelona's website,  Bartomeu said: \\\"The club will sit down and negotiate a new contract.\\n\\n\\\"We will do what we have to, to ensure he's the best-paid player.\\\"\\n\\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\\n\\nHe has scored 18 goals so far but just eight of those have been in the league.\\n\\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\\n\\n\\\"He can do everything,\\\" said Barca coach Gerardo Martino. \\\"If he succeeds in other facets of his game, it doesn't matter if he scores.\\n\\n\\\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\\n\\n\\\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\\\"\"\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"55abdb6b63a6b60d00661707","ref":"","in":"query","required":false,"desc":"Text to analyze","default":"","type":"string","name":"text"},{"_id":"55a8f048cf45e1390093f24a","ref":"","in":"query","required":false,"desc":"URL to analyze","default":"","type":"string","name":"url"},{"_id":"55a8f18bc8bd450d000dd113","ref":"","in":"query","required":false,"desc":"Language (refer to [Language Support](/docs/language-support))","default":"auto","type":"string","name":"language"}],"url":"/hashtags"},"isReference":false,"order":9,"body":"Hashtags have become a popular way of tagging content on Social Media, and attaching hashtags to a piece of content can dramatically increase its visibility on various Social Networking platforms such as Facebook, Twitter, Google+, Instagram and LinkedIn. Using **Hashtag Suggestion**, you can automatically generate a list of highly-relevant hashtags that will help you get more exposure for your content on Social Media.","excerpt":"/hashtags","slug":"hashtags","type":"endpoint","title":"Hashtag Suggestion"}

getHashtag Suggestion

/hashtags

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

text:
string
Text to analyze
url:
string
URL to analyze
language:
stringauto
Language (refer to [Language Support](/docs/language-support))

Examples


Result Format


Documentation

Hashtags have become a popular way of tagging content on Social Media, and attaching hashtags to a piece of content can dramatically increase its visibility on various Social Networking platforms such as Facebook, Twitter, Google+, Instagram and LinkedIn. Using **Hashtag Suggestion**, you can automatically generate a list of highly-relevant hashtags that will help you get more exposure for your content on Social Media.

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}