Get item fling effect
GET
/api/v2/item-fling-effect/{id}/
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://pokeapi.co/api/v2/item-fling-effect/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/item-fling-effect/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/item-fling-effect/1/") .get() .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = {method: 'GET', url: 'https://pokeapi.co/api/v2/item-fling-effect/1/'};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://pokeapi.co/api/v2/item-fling-effect/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/item-fling-effect/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/item-fling-effect/1/wget --quiet \ --method GET \ --output-document \ - https://pokeapi.co/api/v2/item-fling-effect/1/The various effects of the move“Fling” when used with different items.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
This parameter can be a string or an integer.
Examples
Example1
1Responses
Section titled “Responses”Media typeapplication/json
object
id
required
The identifier for this resource.
integer
name
required
The name for this resource.
string
effect_entries
required
The result of this fling effect listed in different languages.
Array<object>
object
effect
required
The localized effect text for an API resource in a specific language.
string
language
required
The language this effect is in.
object
name
required
The name of the referenced resource.
string
url
required
The URL of the referenced resource.
string format: uri
items
required
A list of items that have this fling effect.
Array<object>
object
name
required
The name of the referenced resource.
string
url
required
The URL of the referenced resource.
string format: uri
Example
{ "id": 1, "name": "badly-poison", "effect_entries": [ { "effect": "Badly poisons the target.", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "items": [ { "name": "toxic-orb", "url": "https://pokeapi.co/api/v2/item/249/" } ]}