---
nav-title: "fetch How-To"
title: "fetch"
environment: nativescript
description: "Examples for using fetch"
previous_url: /ApiReference/fetch/HOW-TO
---
### Get Response from URL
{%snippet fetch-response%}

### Get string from URL
{%snippet fetch-string%}

### Get JSON from URL
{%snippet fetch-json%}

### Get FormData from URL
{%snippet fetch-formdata%}

### Get Response status
{%snippet fetch-status-response%}

### Get response headers
{%snippet fetch-headers-response%}

### Post JSON
{%snippet fetch-post-json%}
