c
After 2020-05-14 all API request will require api_key parameter. Please register to get your key
Šī funkcija atgriež informāciju par gfycat.com attēlu. Šis API atgriež tiešās saites uz videoklipiem un sīktēliem, sākot ar https. Lai gan https iesaka gfycat, tā ir lēnāka nekā http. Tāpēc jūs varētu apsvērt iespēju izmantot http.
Pieprasījumus var veikt, izmantojot HTTP GET vai HTTP POST metodes. Atbilde vienmēr ir JSON formātā.
pieprasījums
atbilde
Lai skatītu atbildi, noklikšķiniet uz POST vai GET
iespējamās kļūdas
R7ERR_NOTFOUND
Attēls nav atrasts
koda paraugi
Zemāk minētie koda paraugi tiek automātiski mainīti, mainot iepriekš norādītos parametrus
curl
wget
aria2
php
javascript
curl, method POST
curl, method GET
wget, method POST
wget, method GET
php, method GET
php, method GET, using curl
php, method POST, using curl
javascript, method GET, using XMLHttpRequest
javascript, method GET, using jquery