[VBA] Loop API

steefq

New Member
Joined
Oct 17, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi!

I need some help with API where i need to extract the data to an excel sheet called "Query" and wants the data to start at cell "A1".

Its a website that allows people to extract items for an game called "Albion online" The items that will get extracted are marketplace values "Item: and Price: and Location:"

The link for API


Its searching for "T6_RUNE" and retrieving that item

I got around 6000 requests/items i need to pull, i got them in JSON format/Text format and also in cells in Excel.

Is there by any chance i can manipulate the string/api to retrieve everything in one request instead of looping through the cells and use the cells as "ITEM" eg. "T6_rune"
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Not sure if this is what you want but seems you can add more seperated by a comma

T4_BAG,T5_BAG,T6_RUNE.json?locations=Fort%20Sterling&time-scale=6
Hi, thanks for the input and its working great!

My next question, could i input an .text(RAW) from githup file so the api could read from it instead of having to put all 6000 items in the link?

Or is it better to make the API dynamic with VBA?
The VBA loops through cells and input the value in the api string?

API
Heres the link: Swagger UI

ITEMS:
 
Upvote 0
will defer on this to someone with more experience as it is getting more complicated
 
Upvote 0

Forum statistics

Threads
1,215,842
Messages
6,127,235
Members
449,372
Latest member
charlottedv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top