sharepoint api link

%3CLINGO-SUB%20id%3D%22lingo-sub-1343078%22%20slang%3D%22en-US%22%3Esharepoint%20api%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1343078%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20need%20sharepoint%20API%20url%20for%20accessing%20sharepoint%20data.%3C%2FP%3E%3CP%3EPlease%20suggest%20the%20the%20list%20of%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%2C%3C%2FP%3E%3CP%3ENitin%20chauhan%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1343078%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1343697%22%20slang%3D%22en-US%22%3ERe%3A%20sharepoint%20api%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1343697%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F639500%22%20target%3D%22_blank%22%3E%40hcl_nitin%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fget-to-know-the-sharepoint-rest-service%3Ftabs%3Dcsom%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsp-add-ins%2Fget-to-know-the-sharepoint-rest-service%3Ftabs%3Dcsom%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1343738%22%20slang%3D%22en-US%22%3ERe%3A%20sharepoint%20api%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1343738%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20getting%20result%20when%20posting%20the%20request%20like%26nbsp%3B%3CSPAN%3Ehttp%3A%2F%2F%3CSITE%20url%3D%22%22%3E%2F_api%2Fweb%2Flists%20in%20postman%3C%2FSITE%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewhre%26nbsp%3B%3CSPAN%3Esite%20url%20%3D%3C%2FSPAN%3E%20%3CA%20href%3D%22https%3A%2F%2Fhclo365.sharepoint.com%2FSites%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhclo365.sharepoint.com%2FSites%2F%3C%2FA%3E%3C%2FP%3E%3CP%3Ethe%20full%20url%20is%20%3CA%20href%3D%22https%3A%2F%2Fhclo365.sharepoint.com%2FSites%2F_api%2Fweb%2Flists%2FgetByTitle('SPlist')%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhclo365.sharepoint.com%2FSites%2F_api%2Fweb%2Flists%2FgetByTitle('SPlist')%3C%2FA%3E.%3C%2FP%3E%3CP%3EAm%20I%20missing%20anything.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1343778%22%20slang%3D%22en-US%22%3ERe%3A%20sharepoint%20api%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1343778%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F639500%22%20target%3D%22_blank%22%3E%40hcl_nitin%3C%2FA%3E%26nbsp%3B%20your%20url%20is%20not%20correct%2C%20%2FSites%2F%20its%20causing%20the%20problem.%20It%20needs%20to%20be%20the%20site%20url%20plus%20%2F_api%2F...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20using%20the%20root%20site%20collection%3A%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3Ehttps%3A%2F%2Fhclo365.sharepoint.com%2F_api%2Fweb%2Flists%2FgetByTitle('SPlist')%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20using%20a%20different%20site%20collection%3A%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CA%20href%3D%22https%3A%2F%2Fhclo365.sharepoint.com%2Fsites%2FTestSite%2F_api%2Fweb%2Flists%2FgetByTitle('SPlist')%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhclo365.sharepoint.com%2Fsites%2FTestSite%2F_api%2Fweb%2Flists%2FgetByTitle('SPlist')%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

I need sharepoint API url for accessing sharepoint data.

Please suggest the the list of API.

 

regards,

Nitin chauhan 

8 Replies
Highlighted
Highlighted

@Beau Cameron 

 

I am not getting result when posting the request like http://<site url>/_api/web/lists in postman

whre site url = https://hclo365.sharepoint.com/Sites/

the full url is https://hclo365.sharepoint.com/Sites/_api/web/lists/getByTitle('SPlist').

Am I missing anything.

Highlighted

@hcl_nitin  your url is not correct, /Sites/ its causing the problem. It needs to be the site url plus /_api/...

 

If using the root site collection:

https://hclo365.sharepoint.com/_api/web/lists/getByTitle('SPlist') 

 

If using a different site collection:

https://hclo365.sharepoint.com/sites/TestSite/_api/web/lists/getByTitle('SPlist') 

 

 

Highlighted

@Joel Rodrigues  Please help me. As I am new in usinf web api

 

while using https://hclo365.sharepoint.com/_api/web/lists/getByTitle('SPlist') i am getting 

{
    "odata.error": {
        "code""-2147024891, System.UnauthorizedAccessException",
        "message": {
            "lang""en-US",
            "value""Access denied. You do not have permission to perform this action or access this resource."
        how to get permission .
Highlighted

@Joel Rodrigues 

 

even when I am using 

https://hclo365.sharepoint.com/sites/Deployment Tracker/_api/web/lists/ 

I am not getting anything. where "Deployment Tracker" is my site name

Highlighted

@Joel Rodrigues 

 

Please help

Highlighted

@hcl_nitin 

 

Open a browser and access the 'SPList' list on that site. If you have permissions to see the list, you can also query it's data via the REST API. Ensure that the url is correct.

Highlighted

@hcl_nitin  regarding the Deployment Site, ensure that the url to the site is correct. You have a space in the URL, which is not valid. Open that site and copy the url from the browser.

 

Perhaps it's better that you follow the link that @Beau Cameron  shared initially as it will help you a lot with the fundamentals