The One Networks offers various API services for pulling Files Data like file size, Links Data like locked link etc and also you can upload files through our API.

Run your own file hosting site with us with our APIs, Contact us for custom API services.

Arguments To Fetch Data via API

API url to fetch the data : https://theonenetworks.com/publisher/api/feed and follow the GET method below.

HTTP Parameter Example Required Description
email https://theonenetworks.com/publisher/api/feed?email={YOUR EMAIL} REQUIRED Your email is required to fetch your data.
key https://theonenetworks.com/publisher/api/feed?key={YOUR API KEY} REQUIRED Your unique API key is required to fetch your data.
format https://theonenetworks.com/publisher/api/feed?format={json or xml} OPTIONAL (xml is default) XML or JSON use any fetched data which is suitable for you.
feed_type https://theonenetworks.com/publisher/api/feed?feed_type={ 1 or 2 or 3 or 4} Required It will fetch according to given data.

1 = File Hosting or File Manager
2 = File Locker
3 = Link Locker
4 = Link Shorten

After this your URL would look like : https://theonenetworks.com/publisher/api/feed?email={YOUR EMAIL}&key={YOUR API KEY}&feed_type={ 1 or 2 or 3 or 4}&format={json or xml}.


Arguments To File Upload via API

API url to upload files in File Manager : https://www.theonenetworks.com/publisher/api/FileManagerAPIUpload and follow the POST method below.

API url to upload files in File Locker : https://www.theonenetworks.com/publisher/api/FileLockerAPIUpload and follow the POST method below.

POST Parameter Example Required Description
email < input type="hidden" value="{YOUR EMAIL}" name="email"> REQUIRED Your email is required to fetch your data.
key < input type="hidden" value="{YOUR API KEY}" name="key"> REQUIRED Your unique API key is required to fetch your data.
format < input type="hidden" value="{XML OR JSON}" name="format"> OPTIONAL (xml is default) XML or JSON use any fetched data which is suitable for you when your file is successfully uploaded.
file < input type="file" name="file"> Required This file will upload in our drive.

Don't forgot to set your html form : action="{API UPLOAD URL}" method="post" enctype="multipart/form-data".


Arguments To Shorten Links via API

API url to shorten links : https://www.theonenetworks.com/publisher/api/shorten and follow the GET method below.

POST Parameter Example Required Description
email https://theonenetworks.com/publisher/api/shorten?email={YOUR EMAIL} REQUIRED Your email is required to fetch your data.
key https://theonenetworks.com/publisher/api/shorten?key={YOUR API KEY} REQUIRED Your unique API key is required to fetch your data.
format https://theonenetworks.com/publisher/api/shorten?format={json or xml} OPTIONAL (xml is default) XML or JSON use any fetched data which is suitable for you.
url https://theonenetworks.com/publisher/api/shorten?url={URL TO BE SHRINKED} Required The passed url will be stored in our database and visitor will send to this link.

ad https://theonenetworks.com/publisher/api/shorten?ad={1 or 2} Required
1 = Interstitial
2 = NO ADS

After this your URL would look like : https://theonenetworks.com/publisher/api/shorten?email={YOUR EMAIL}&key={YOUR API KEY}&ad={ 1 or 2}&format={json or xml}&url={URL TO BE SHRINKED}.

Use Link ID as : https://www.lnksht.co/{link_shrt_id} to make it working.


Arguments To Lock Links via API

API url to shorten links : https://www.theonenetworks.com/publisher/api/lockURL and follow the GET method below.

POST Parameter Example Required Description
email https://theonenetworks.com/publisher/api/lockURL?email={YOUR EMAIL} REQUIRED Your email is required to fetch your data.
key https://theonenetworks.com/publisher/api/lockURL?key={YOUR API KEY} REQUIRED Your unique API key is required to fetch your data.
format https://theonenetworks.com/publisher/api/lockURL?format={json or xml} OPTIONAL (xml is default) XML or JSON use any fetched data which is suitable for you.
url https://theonenetworks.com/publisher/api/lockURL?url={URL TO BE LOCKED} Required The passed url will be stored in our database and visitor will send to this link when visitor complete an offer.

After this your URL would look like : https://theonenetworks.com/publisher/api/lockURL?email={YOUR EMAIL}&key={YOUR API KEY}&format={json or xml}&url={URL TO BE LOCKED}.

Use Link ID as : https://www.theonenetworks.com/link/{link_url_id} to make it working.