Get move
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://pokeapi.co/api/v2/move/1/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://pokeapi.co/api/v2/move/1/")) .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder() .url("https://pokeapi.co/api/v2/move/1/") .get() .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = {method: 'GET', url: 'https://pokeapi.co/api/v2/move/1/'};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://pokeapi.co/api/v2/move/1/';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://pokeapi.co/api/v2/move/1/";
let client = reqwest::Client::new(); let response = client.get(url) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://pokeapi.co/api/v2/move/1/wget --quiet \ --method GET \ --output-document \ - https://pokeapi.co/api/v2/move/1/Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”This parameter can be a string or an integer.
Examples
1Responses
Section titled “Responses”object
The identifier for this resource.
The name for this resource.
The percent value of how likely this move is to be successful.
The percent value of how likely it is this moves effect will happen.
Power points. The number of times this move can be used.
A value between -8 and 8. Sets the order in which moves are executed during battle. See Bulbapedia for greater detail.
The base power of this move, or null if it has no fixed base power.
A detail of normal and super contest combos that require this move.
object
A detail of moves this move can be used before or after, granting additional appeal points in contests.
object
A list of moves to use before this move.
object
The name of the referenced resource.
The URL of the referenced resource.
A list of moves to use after this move.
object
The name of the referenced resource.
The URL of the referenced resource.
A detail of moves this move can be used before or after, granting additional appeal points in super contests.
object
A list of moves to use before this move.
object
The name of the referenced resource.
The URL of the referenced resource.
A list of moves to use after this move.
object
The name of the referenced resource.
The URL of the referenced resource.
The type of damage the move inflicts on the target, e.g. physical.
object
The name of the referenced resource.
The URL of the referenced resource.
The effect of this move listed in different languages.
object
The localized effect text for an API resource in a specific language.
The localized effect text in brief.
The language this effect is in.
object
The name of the referenced resource.
The URL of the referenced resource.
The list of previous effects this move has had across version groups of the games.
object
The version group in which the previous effect of this ability originated.
object
The name of the referenced resource.
The URL of the referenced resource.
The previous effect of this ability listed in different languages.
object
The localized effect text for an API resource in a specific language.
The language this effect is in.
object
The name of the referenced resource.
The URL of the referenced resource.
The generation in which this move was introduced.
object
The name of the referenced resource.
The URL of the referenced resource.
Metadata about this move
object
The status ailment this move inflicts on its target.
object
The name of the referenced resource.
The URL of the referenced resource.
The category of move this move falls under, e.g. damage or ailment.
object
The name of the referenced resource.
The URL of the referenced resource.
The minimum number of times this move hits. Null if it always only hits once.
The maximum number of times this move hits. Null if it always only hits once.
The minimum number of turns this move continues to take effect. Null if it always only lasts one turn.
The maximum number of turns this move continues to take effect. Null if it always only lasts one turn.
HP drain (if positive) or Recoil damage (if negative), in percent of damage done.
The amount of hp gained by the attacking Pokemon, in percent of it’s maximum HP.
Critical hit rate bonus.
The likelihood this attack will cause an ailment.
The likelihood this attack will cause the target Pokémon to flinch.
The likelihood this attack will cause a stat change in the target Pokémon.
The name of this resource listed in different languages.
object
The localized name for an API resource in a specific language.
The language this name is in.
object
The name of the referenced resource.
The URL of the referenced resource.
A list of move resource value changes across version groups of the game.
object
The percent value of how likely this move is to be successful.
The base power before the listed version group, or null if power did not change.
Power points. The number of times this move can be used.
The percent value of how likely it is this moves effect will take effect.
The effect of this move listed in different languages.
object
The localized effect text for an API resource in a specific language.
The localized effect text in brief.
The language this effect is in.
object
The name of the referenced resource.
The URL of the referenced resource.
The version group in which these move stat values were in effect.
object
The name of the referenced resource.
The URL of the referenced resource.
A list of stats this moves effects and how much it effects them.
object
The amount of change.
The stat being affected.
object
The name of the referenced resource.
The URL of the referenced resource.
The type of target that will receive the effects of the attack.
object
The name of the referenced resource.
The URL of the referenced resource.
The elemental type of this move.
object
The name of the referenced resource.
The URL of the referenced resource.
A list of the machines that teach this move.
object
The machine that teaches a move from an item.
object
The URL of the referenced resource.
The version group of this specific machine.
object
The name of the referenced resource.
The URL of the referenced resource.
The flavor text of this move listed in different languages.
object
The localized flavor text for an api resource in a specific language.
The language this name is in.
object
The name of the referenced resource.
The URL of the referenced resource.
The version group that uses this flavor text.
object
The name of the referenced resource.
The URL of the referenced resource.
List of Pokemon that can learn the move
object
The name of the referenced resource.
The URL of the referenced resource.
Example
{ "id": 1, "name": "pound", "accuracy": 100, "effect_chance": null, "pp": 35, "priority": 0, "power": 40, "contest_combos": { "normal": { "use_before": [ { "name": "double-slap", "url": "https://pokeapi.co/api/v2/move/3/" }, { "name": "slam", "url": "https://pokeapi.co/api/v2/move/21/" } ], "use_after": null }, "super": { "use_before": null, "use_after": null } }, "contest_type": { "name": "tough", "url": "https://pokeapi.co/api/v2/contest-type/5/" }, "contest_effect": { "url": "https://pokeapi.co/api/v2/contest-effect/1/" }, "damage_class": { "name": "physical", "url": "https://pokeapi.co/api/v2/move-damage-class/2/" }, "effect_entries": [ { "effect": "Inflicts regular damage.", "short_effect": "Inflicts regular damage with no additional effect.", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "effect_changes": [], "generation": { "name": "generation-i", "url": "https://pokeapi.co/api/v2/generation/1/" }, "meta": { "ailment": { "name": "none", "url": "https://pokeapi.co/api/v2/move-ailment/0/" }, "category": { "name": "damage", "url": "https://pokeapi.co/api/v2/move-category/0/" }, "min_hits": null, "max_hits": null, "min_turns": null, "max_turns": null, "drain": 0, "healing": 0, "crit_rate": 0, "ailment_chance": 0, "flinch_chance": 0, "stat_chance": 0 }, "names": [ { "name": "Pound", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "past_values": [], "stat_changes": [], "super_contest_effect": { "url": "https://pokeapi.co/api/v2/super-contest-effect/5/" }, "target": { "name": "selected-pokemon", "url": "https://pokeapi.co/api/v2/move-target/10/" }, "type": { "name": "normal", "url": "https://pokeapi.co/api/v2/type/1/" }, "machines": [], "flavor_text_entries": [ { "flavor_text": "Pounds with fore\nlegs or tail.", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" }, "version_group": { "name": "gold-silver", "url": "https://pokeapi.co/api/v2/version-group/3/" } }, { "flavor_text": "Pounds with fore\nlegs or tail.", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" }, "version_group": { "name": "crystal", "url": "https://pokeapi.co/api/v2/version-group/4/" } } ], "learned_by_pokemon": [ { "name": "clefairy", "url": "https://pokeapi.co/api/v2/pokemon/35/" }, { "name": "clefable", "url": "https://pokeapi.co/api/v2/pokemon/36/" } ]}