Get your API key

First, you’ll need your API key. You can find it in the FetchFox app at https://fetchfox.ai/settings/api-keys.

Run a scrape

To run a scrape, we’ll use the /api/scrape endpoint. Let’s scrape some Pokemon using the snippet below.

curl -X POST https://api.fetchfox.ai/api/scrape \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"pattern":"https://pokemondb.net/pokedex/*",
"template": {"name": "Pokemon name", "number": "Pokemon number"}
"max_visits": 10,
"max_extracts": 10
}'

When the scrape finishes, you’ll a response with items will be in the results.items field. These items will have the keys name and number.

Next Steps

Now that you’ve run a simple scrape, learn all the options on the /api/scrape endpoint.

Get your API key

First, you’ll need your API key. You can find it in the FetchFox app at https://fetchfox.ai/settings/api-keys.

Run a scrape

To run a scrape, we’ll use the /api/scrape endpoint. Let’s scrape some Pokemon using the snippet below.

curl -X POST https://api.fetchfox.ai/api/scrape \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"pattern":"https://pokemondb.net/pokedex/*",
"template": {"name": "Pokemon name", "number": "Pokemon number"}
"max_visits": 10,
"max_extracts": 10
}'

When the scrape finishes, you’ll a response with items will be in the results.items field. These items will have the keys name and number.

Next Steps

Now that you’ve run a simple scrape, learn all the options on the /api/scrape endpoint.