OpenSea API returning null when i want to fetch my data - api

when i go to this link
https://api.opensea.io/api/v1/assets?asset_contract_address=0x892848074ddea461a15f337250da3ce55580ca85
It returns me some data i can use. But when i tried to fetch MY assets its not return any data from this link.
https://api.opensea.io/api/v1/assets?owner=0xA48Db0a225703b25ef95B863C1aa44929bBA7FDe
You can see my assets from this link
https://opensea.io/M1croNFT
How can i fetch my assets data with opensea api?

Most likely, your problem is that to use the api/v1/assets method. For this request you need to use the api key. This is written in the description of the method in the documentation.
GET api/v1/assets
Please Note: This API endpoint requires an API key to use. Please fill
out the API request form to obtain one. Request an API key
So, I think that if you get the key, you will be able to fulfill any request
Another option is to use queries in the test network - OPENSEA TESTNETS API. I tried to run a query there and got the correct response.

Related

How to make api get requests from dukascopy?

I have an api key but i'm not sure on how to make an get request using their api.
The documentation is a bit vague on how to format the url, any help is appreciated!
Documentation:
https://www.dukascopy.com/trading-tools/api/documentation/quotes
To use the API you just need to append your key in the URL like,
https://freeserv.dukascopy.com/2.0/?path=api/lastOneMinuteCandles&key={you_api_key}
Another example,
https://freeserv.dukascopy.com/2.0/?path=api/currentPrices&key={api_key}&instruments=EUR/USD,USD/JPY
You can use Postman, and should see some values come back (since my key is not valid, I got 401).

Can I have any way (such as an API) to count the like and react on my post in my page and use that count to store in my database to use it?

I want to create a post in my website and post/share it in my Facebook page. This can be live/video/image etc. The amount likes and reaction my post get in Facebook will need to be fetched and stored in my post related database of my website.
Is it somehow possible to do?
If it is possible then what tools or guideline I need to follow?
The easiest solution would be to save the post ID when you create a post (Which you will get if the post was successfully created via the API) docs
And when you want to get the likes, use that post ID and fetch the API for the information. docs

How to test an API with filters

I've received a documentation from a developer for an API i have to test.
I have the API URL: https://something/get-list
As per the documentation, the accepted paremeters are:
token (required)
filters[is_true] – 0 or 1
I'm trying to figure it out how to input the filters[is_true] in query params in postman. No matter what i do the response is not filtered, and i want to test the api.
I've tried with key filters[is_true], $filter=filters[is_true] etc, but doesn't work.
I do not have much experience with APIs and I didn't test before with filters so not sure what to do.
Thanks!

Pinterest API get statistic for URL

I am trying to find a way to get statistic for the URL from Pinterest API.
Like facebook graph API: URL Object
Or linked in countserv endpoint:
https://www.linkedin.com/countserv/count/share?format=json&url=https://www.linkedin.com/pulse/breaking-5-major-boolean-syntax-changes-irina-shamaeva
I know it is possible because this site is returning the number of pins for given url:
https://www.sharedcount.com/#url=https%3A%2F%2Fwww.facebook.com%2F
Does anyone know how to get these data from Pinterest API?
There is no officially supported way to do this with the developer API. That said, the widgets use this for the count bubbles using this API
https://widgets.pinterest.com/v1/urls/count.json?url=<url>.
I wouldn't depend on it for anything important tho since it is unsupported and can change/be removed at any time.
You can get the number of pins calling this url
http://api.pinterest.com/v1/urls/count.json?callback=&url=http://stylehatch.co
It will return an object like this:
({"count": 0, "url": "http://stylehatch.co"})

Twitter GET statuses/mentions not returning anything

I'm trying to get a user's mentions using the Twitter REST API, but I'm not getting any response when I call.
I'm basically just trying to hit the URL they specify in the link I provided. I'm trying to get mentions by a specific user.
Here are the URLs I've tried, and none of them work (they all return blank pages):
https://api.twitter.com/1/statuses/mentions.json
https://api.twitter.com/1/statuses/mentions.json?screen_name=ludjanio
https://api.twitter.com/1/statuses/mentions.json?screen_name=ludjanio&include_entities=true
This API end-point requires authorization through OAuth. Besides all that, this API end-point doesn't accept the parameter screen_name. Full documentation of this API end point can be found here, https://dev.twitter.com/docs/api/1/get/statuses/mentions
If you want to get the mentions of an entirely different person, there is no direct API for this. But you can do a search for #, this is how most apps do this.